commit 457c5dcb394fdc22201a82969ce5a1e2851a2494 Author: zmliuk Date: Tue Mar 10 16:12:49 2026 +0800 上传文件至 src diff --git a/src/application.yml b/src/application.yml new file mode 100644 index 0000000..fee42a1 --- /dev/null +++ b/src/application.yml @@ -0,0 +1,33 @@ +server: + port: 8080 + +spring: + application: + name: jinshan-mybatis-test + datasource: + type: com.zaxxer.hikari.HikariDataSource + driver-class-name: com.mysql.cj.jdbc.Driver + url: jdbc:mysql://127.0.0.1:13360/jinshan?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true + username: jinshan + password: jinshan@1234A. + hikari: + connection-timeout: 30000 + validation-timeout: 5000 + minimum-idle: 10 + maximum-pool-size: 20 + idle-timeout: 600000 + max-lifetime: 900000 + keepaliveTime: 30000 + +# MyBatis-Plus配置 +mybatis-plus: + configuration: + map-underscore-to-camel-case: true + log-impl: org.apache.ibatis.logging.stdout.StdOutImpl + global-config: + db-config: + id-type: auto + table-underline: true + mapper-locations: classpath*:mapper/**/*.xml + type-aliases-package: com.jinshan.mybatistest.entity + diff --git a/src/pom.xml b/src/pom.xml new file mode 100644 index 0000000..4244e94 --- /dev/null +++ b/src/pom.xml @@ -0,0 +1,104 @@ + + + 4.0.0 + com.csg + ai-china-southern-power-grid + 1.0.0 + jar + ai-china-southern-power-grid + ai-china-southern-power-grid + + + 1.8 + UTF-8 + 2.7.18 + 3.5.12 + 1.18.36 + + + + + + org.springframework.boot + spring-boot-dependencies + ${spring-boot.version} + pom + import + + + + + + + + org.springframework.boot + spring-boot-starter-web + + + + + com.baomidou + mybatis-plus-boot-starter + ${mybatis-plus.version} + + + + + com.mysql + mysql-connector-j + + + + + org.projectlombok + lombok + ${lombok.version} + true + + + + + org.springframework.boot + spring-boot-starter-test + test + + + + + + + org.springframework.boot + spring-boot-maven-plugin + ${spring-boot.version} + + + + + repackage + + + + + + + org.projectlombok + lombok + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.14.0 + + 8 + UTF-8 + true + + + + + \ No newline at end of file