diff --git a/pom.xml b/pom.xml index b3325229240f6a74c2e382f4df9d1f5bf874f05b..907d0e76ad27687fd061f19c1c6239a4cf4afd75 100644 --- a/pom.xml +++ b/pom.xml @@ -18,6 +18,10 @@ 8 8 + 1.8 + + UTF-8 + UTF-8 diff --git a/springcloud-service-goods/pom.xml b/springcloud-service-goods/pom.xml index 9a6117d8adf4d992e95e73f36cc9eca7bdb9546a..cc32e19c7588ceba7c312fae162f12fe50fe8ec4 100644 --- a/springcloud-service-goods/pom.xml +++ b/springcloud-service-goods/pom.xml @@ -3,19 +3,13 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - org.springframework.boot - spring-boot-starter-parent - 3.0.1 - + com.kwan.springcloud + springcloud-service-parent + 1.0.0 - com.kwan.springcloud springcloud-service-goods 0.0.1-SNAPSHOT springcloud-service-goods - Demo project for Spring Boot - - 17 - org.springframework.boot @@ -27,6 +21,37 @@ spring-boot-starter-test test + + + + com.baomidou + mybatis-plus-boot-starter + 3.4.3 + + + + mysql + mysql-connector-java + 8.0.11 + + + + com.baomidou + mybatis-plus-extension + 3.5.1 + + + + org.projectlombok + lombok + + + + org.springframework.boot + spring-boot-devtools + true + + diff --git a/springcloud-service-goods/src/main/resources/application.properties b/springcloud-service-goods/src/main/resources/application.properties deleted file mode 100644 index 8b137891791fe96927ad78e64b0aad7bded08bdc..0000000000000000000000000000000000000000 --- a/springcloud-service-goods/src/main/resources/application.properties +++ /dev/null @@ -1 +0,0 @@ - diff --git a/springcloud-service-goods/src/main/resources/application.yaml b/springcloud-service-goods/src/main/resources/application.yaml new file mode 100644 index 0000000000000000000000000000000000000000..ccf1d706e0eff0a0e3c8f7b742fa344311f72074 --- /dev/null +++ b/springcloud-service-goods/src/main/resources/application.yaml @@ -0,0 +1,30 @@ +#端口号 +server: + port: 9100 + +#兼容swagger配置 +spring: + # mysql + datasource: + driver-class-name: com.mysql.cj.jdbc.Driver + url: jdbc:mysql://localhost:3306/kwan?useSSL=false&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai + username: root + password: 716288qwe + +#mybatis-plus配置 +mybatis-plus: + configuration: + map-underscore-to-camel-case: true + call-setters-on-nulls: true + auto-mapping-behavior: full + log-impl: org.apache.ibatis.logging.stdout.StdOutImpl + mapper-locations: classpath*:mapper/**/*Mapper.xml + global-config: + banner: false + # 逻辑删除配置 + db-config: + id-type: AUTO + logic-delete-field: delFlag + logic-delete-value: 1 + logic-not-delete-value: 0 + table-underline: true \ No newline at end of file