FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

多环境配置 · JavaCodeMood/SpringBootUnity@cabc33d · GitHub

Repository navigation

Commit cabc33d

Browse files
committed
多环境配置
1 parent 65b7658 commit cabc33d

2 files changed

Lines changed: 30 additions & 0 deletions

File tree

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
logging.config=classpath:config/logback-dev.xml
2+
server.port=8080
3+
server.session.timeout=1800
4+
server.max-http-header-size=20971520
5+
6+
#datasource
7+
spring.datasource.url=jdbc:mysql://115.29.137.34/xiaomo
8+
# ?useUnicode=true&characterEncoding=UTF-8
9+
spring.datasource.username=xiaomo
10+
spring.datasource.password=123456
11+
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
12+
# \u914D\u7F6E\u8FD9\u4E2A\u503C\u5C31\u53EF\u4EE5\u683C\u5F0F\u5316\u65F6\u95F4
13+
#spring.jackson.date-format=yyyy-MM-dd HH:mm:ss
14+
#spring.jackson.time-zone=GMT+8
15+
16+
#jpa
17+
spring.jpa.database-platform=org.hibernate.dialect.MySQL5Dialect
18+
spring.jpa.hibernate.ddl-auto=update
19+
spring.jpa.show-sql=true
20+
21+
#other
22+
banner.location=config/banner-girl.txt
23+
24+
25+
# \u591A\u73AF\u5883\u914D\u7F6E\u6587\u4EF6\u6FC0\u6D3B\u5C5E\u6027
26+
spring.profiles.active=dev

‎website/src/main/resources/config/application.properties‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,7 @@ spring.jpa.show-sql=true
2020

2121
#other
2222
banner.location=config/banner-girl.txt
23+
24+
25+
26+
spring.profiles.active=dev

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL