diff --git a/src/main/java/com/subsidy/controller/OssController.java b/src/main/java/com/subsidy/controller/OssController.java index 36bc907..8d49441 100644 --- a/src/main/java/com/subsidy/controller/OssController.java +++ b/src/main/java/com/subsidy/controller/OssController.java @@ -50,7 +50,8 @@ public class OssController { if (env.equals("test")) { env = "ykhl-bigger-test"; - } else { + } + if (env.equals("prod")) { env = "ykhl-bigger"; } diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 9ce1e86..3287aa3 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -1,5 +1,5 @@ # 环境配置 -spring.profiles.active=prod +spring.profiles.active=dev #和CPU数 spring.server.acceptorThreadCount=600 spring.server.minSpareThreads=100