配置文件改写为yml形式
This commit is contained in:
@@ -1,32 +0,0 @@
|
||||
#===server start===
|
||||
server.port=8082
|
||||
#===server end===
|
||||
|
||||
#\u6570\u636E\u5E93\u8FDE\u63A5\u6C60\u914D\u7F6E
|
||||
spring.datasource.url=jdbc:mysql://localhost:3306/mall?useUnicode=true&characterEncoding=utf-8&serverTimezone=GMT%2B8
|
||||
spring.datasource.username=root
|
||||
spring.datasource.password=root
|
||||
|
||||
#mybatis\u914D\u7F6E
|
||||
mybatis.mapper-locations=classpath:mapper/*.xml,classpath*:com/**/mapper/*.xml
|
||||
|
||||
#\u65E5\u5FD7\u914D\u7F6EDEBUG,INFO,WARN,ERROR
|
||||
logging.level.root=warn
|
||||
#\u5355\u72EC\u914D\u7F6E\u65E5\u5FD7\u7EA7\u522B
|
||||
logging.level.com.macro.mall=debug
|
||||
#\u914D\u7F6E\u65E5\u5FD7\u751F\u6210\u8DEF\u5F84
|
||||
#logging.path=/var/logs
|
||||
#\u914D\u7F6E\u65E5\u5FD7\u6587\u4EF6\u540D\u79F0
|
||||
#logging.file=demo_log.log
|
||||
|
||||
#thymeleaf start
|
||||
spring.thymeleaf.mode=HTML5
|
||||
spring.thymeleaf.encoding=UTF-8
|
||||
spring.thymeleaf.servlet.content-type=text/html
|
||||
#\u5F00\u53D1\u65F6\u5173\u95ED\u7F13\u5B58,\u4E0D\u7136\u6CA1\u6CD5\u770B\u5230\u5B9E\u65F6\u9875\u9762
|
||||
spring.thymeleaf.cache=false
|
||||
#thymeleaf end
|
||||
|
||||
#host \u914D\u7F6E start
|
||||
host.mall.admin=http://localhost:8080
|
||||
#host \u914D\u7F6E end
|
||||
30
mall-demo/src/main/resources/application.yml
Normal file
30
mall-demo/src/main/resources/application.yml
Normal file
@@ -0,0 +1,30 @@
|
||||
server:
|
||||
port: 8082
|
||||
|
||||
spring:
|
||||
datasource:
|
||||
url: jdbc:mysql://localhost:3306/mall?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai
|
||||
username: root
|
||||
password: root
|
||||
thymeleaf:
|
||||
mode: HTML5
|
||||
encoding: utf-8
|
||||
servlet:
|
||||
content-type: text/html
|
||||
cache: false #开发时关闭缓存,不然没法看到实时页面
|
||||
|
||||
mybatis:
|
||||
mapper-locations:
|
||||
- classpath:mapper/*.xml
|
||||
- classpath*:com/**/mapper/*.xml
|
||||
|
||||
logging:
|
||||
level:
|
||||
root: info #日志配置DEBUG,INFO,WARN,ERROR
|
||||
com.macro.mall: debug
|
||||
# file: demo_log.log #配置日志生成路径
|
||||
# path: /var/logs #配置日志文件名称
|
||||
|
||||
host:
|
||||
mall:
|
||||
admin: http://localhost:8080
|
||||
Reference in New Issue
Block a user