|
@@ -1,10 +1,10 @@
|
|
|
spring.application.name=gen
|
|
|
server.port=6969
|
|
|
|
|
|
-#spring.datasource.driver-class-name=org.sqlite.JDBC
|
|
|
-#spring.datasource.url=jdbc:sqlite:gen.db
|
|
|
-#spring.datasource.username=
|
|
|
-#spring.datasource.password=
|
|
|
+spring.datasource.driver-class-name=org.sqlite.JDBC
|
|
|
+spring.datasource.url=jdbc:sqlite:gen.db
|
|
|
+spring.datasource.username=
|
|
|
+spring.datasource.password=
|
|
|
|
|
|
# ==========================================
|
|
|
# 默认使用sqlite数据库,如果要改成mysql,步骤如下:
|
|
@@ -13,10 +13,10 @@ server.port=6969
|
|
|
# 3. 执行mysql.sql中的内容
|
|
|
# ==========================================
|
|
|
# mysql
|
|
|
-spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
|
|
|
-spring.datasource.url=jdbc:mysql://localhost:3306/gen?useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&serverTimezone=Asia/Shanghai
|
|
|
-spring.datasource.username=root
|
|
|
-spring.datasource.password=123456
|
|
|
+#spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
|
|
|
+#spring.datasource.url=jdbc:mysql://localhost:3306/gen?useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&serverTimezone=Asia/Shanghai
|
|
|
+#spring.datasource.username=root
|
|
|
+#spring.datasource.password=123456
|
|
|
|
|
|
mybatis.mapper-locations=classpath:mybatis/*.xml
|
|
|
# 下划线格式转换成驼峰格式
|
|
@@ -24,6 +24,6 @@ mybatis.configuration.map-underscore-to-camel-case=true
|
|
|
|
|
|
# 格式化xml代码,默认false
|
|
|
# 开启后生成速度会稍微慢一点
|
|
|
-gen.format-xml=true
|
|
|
+gen.format-xml=false
|
|
|
|
|
|
logging.file.path=log
|