From 49985fa87cd09da3133c192c9729309e66147656 Mon Sep 17 00:00:00 2001 From: qinyingjie Date: Sun, 8 Jan 2023 10:10:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BA=A7=E5=93=81=E6=9C=8D=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 4 ++ springcloud-service-goods/pom.xml | 43 +++++++++++++++---- .../src/main/resources/application.properties | 1 - .../src/main/resources/application.yaml | 30 +++++++++++++ 4 files changed, 68 insertions(+), 10 deletions(-) delete mode 100644 springcloud-service-goods/src/main/resources/application.properties create mode 100644 springcloud-service-goods/src/main/resources/application.yaml diff --git a/pom.xml b/pom.xml index b332522..907d0e7 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 9a6117d..cc32e19 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 8b13789..0000000 --- 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 0000000..ccf1d70 --- /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 -- GitLab