From bd09ee403caf594b512832731c8a84f322483b5f Mon Sep 17 00:00:00 2001 From: lihengming <89921218@qq.com> Date: Fri, 23 Jun 2017 18:04:47 +0800 Subject: [PATCH] =?UTF-8?q?add=20>=20=E5=BC=80=E5=8F=91=E3=80=81=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E3=80=81=E7=94=9F=E4=BA=A7=E7=8E=AF=E5=A2=83=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/application-dev.properties | 6 ++++++ src/main/resources/application-pro.properties | 1 + src/main/resources/application-test.properties | 1 + src/main/resources/application.properties | 6 ++++++ 4 files changed, 14 insertions(+) create mode 100644 src/main/resources/application-dev.properties create mode 100644 src/main/resources/application-pro.properties create mode 100644 src/main/resources/application-test.properties create mode 100644 src/main/resources/application.properties diff --git a/src/main/resources/application-dev.properties b/src/main/resources/application-dev.properties new file mode 100644 index 0000000..0fc00e7 --- /dev/null +++ b/src/main/resources/application-dev.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 diff --git a/src/main/resources/application-pro.properties b/src/main/resources/application-pro.properties new file mode 100644 index 0000000..bf66340 --- /dev/null +++ b/src/main/resources/application-pro.properties @@ -0,0 +1 @@ +# \u751F\u4EA7\u73AF\u5883\u914D\u7F6E \ No newline at end of file diff --git a/src/main/resources/application-test.properties b/src/main/resources/application-test.properties new file mode 100644 index 0000000..0a8a99c --- /dev/null +++ b/src/main/resources/application-test.properties @@ -0,0 +1 @@ +# \u6D4B\u8BD5\u73AF\u5883\u914D\u7F6E \ No newline at end of file diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties new file mode 100644 index 0000000..882d0f0 --- /dev/null +++ b/src/main/resources/application.properties @@ -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 \ No newline at end of file