From 457c5dcb394fdc22201a82969ce5a1e2851a2494 Mon Sep 17 00:00:00 2001 From: zmliuk Date: Tue, 10 Mar 2026 16:12:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=96=87=E4=BB=B6=E8=87=B3?= =?UTF-8?q?=20src?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/application.yml | 33 ++++++++++++++ src/pom.xml | 104 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 137 insertions(+) create mode 100644 src/application.yml create mode 100644 src/pom.xml 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