add > 开发、测试、生产环境配置文件

master
lihengming 8 years ago
parent 8416665ce3
commit bd09ee403c
  1. 6
      src/main/resources/application-dev.properties
  2. 1
      src/main/resources/application-pro.properties
  3. 1
      src/main/resources/application-test.properties
  4. 6
      src/main/resources/application.properties

@ -0,0 +1,6 @@
# \u5F00\u53D1\u73AF\u5883\u914D\u7F6E
# \u6570\u636E\u6E90\u914D\u7F6E\uFF0C\u8BF7\u4FEE\u6539\u4E3A\u4F60\u9879\u76EE\u7684\u5B9E\u9645\u914D\u7F6E
spring.datasource.url=jdbc:mysql://localhost:3306/test
spring.datasource.username=root
spring.datasource.password=123456
spring.datasource.driver-class-name=com.mysql.jdbc.Driver

@ -0,0 +1 @@
# \u751F\u4EA7\u73AF\u5883\u914D\u7F6E

@ -0,0 +1 @@
# \u6D4B\u8BD5\u73AF\u5883\u914D\u7F6E

@ -0,0 +1,6 @@
spring.profiles.active=dev
# \u6240\u6709\u73AF\u5883\u901A\u7528\u7684\u914D\u7F6E\uFF0C\u653E\u5728\u8FD9\u91CC
# 404 \u4EA4\u7ED9\u5F02\u5E38\u5904\u7406\u5668\u5904\u7406
spring.mvc.throw-exception-if-no-handler-found=true
spring.resources.add-mappings=false
Loading…
Cancel
Save