diff --git a/src/main/resources/application-debug.properties b/src/main/resources/application-debug.properties new file mode 100644 index 0000000..469c3f7 --- /dev/null +++ b/src/main/resources/application-debug.properties @@ -0,0 +1,36 @@ +spring.application.name=Mir4Updater +server.port=65533 +server.address=0.0.0.0 +## \u6570\u636E\u8FDE\u63A5\u4FE1\u606F +spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver +spring.datasource.url=jdbc:mysql://127.0.0.1:3305/spring_boot?useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true +spring.datasource.username=tt +spring.datasource.password=fanhuitong +# Hibernate\u914D\u7F6E +spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MariaDBDialect +#spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL8Dialect +# \u542F\u7528 SQL \u65E5\u5FD7 +spring.jpa.show-sql=true +# \u683C\u5F0F\u5316 SQL +#spring.jpa.properties.hibernate.format_sql=true +# \u663E\u793A\u7ED1\u5B9A\u53C2\u6570\u7684\u5177\u4F53\u503C\uFF08\u5173\u952E\u914D\u7F6E\uFF09 +logging.level.org.hibernate.type.descriptor.sql=TRACE +# \u6587\u4EF6\u5927\u5C0F +spring.servlet.multipart.max-file-size=2GB +spring.servlet.multipart.max-request-size=2GB +mybatis.type-aliases-package=com.mir4updater.backend.entity +mybatis.mapperLocations=classpath:mapper/*.xml +# redis\u57FA\u7840\u914D\u7F6E +# 0\u4E5F\u662F\u9ED8\u8BA4\u503C\uFF0C\u8868\u793A\u4F60\u8981\u64CD\u63A7\u7684 Redis \u4E0A\u7684\u54EA\u4E2A\u6570\u636E\u5E93 +spring.data.redis.database=0 +# 6379\u4E5F\u662F\u9ED8\u8BA4\u503C\uFF0C\u8868\u793A Redis \u7AEF\u53E3 +spring.data.redis.port=6379 +# \u8FD9\u91CC\u586B\u5199\u4F60\u7684\u670D\u52A1\u5668\u5730\u5740 +spring.data.redis.host=127.0.0.1 +spring.data.redis.password=fanhuitong +# \u53EF\u7701\u7565 +spring.data.redis.lettuce.pool.min-idle=5 +spring.data.redis.lettuce.pool.max-idle=10 +spring.data.redis.lettuce.pool.max-active=8 +spring.data.redis.lettuce.pool.max-wait=1ms +spring.data.redis.lettuce.shutdown-timeout=100ms \ No newline at end of file diff --git a/src/main/resources/application-prod.properties b/src/main/resources/application-prod.properties new file mode 100644 index 0000000..131d1e5 --- /dev/null +++ b/src/main/resources/application-prod.properties @@ -0,0 +1,36 @@ +spring.application.name=Mir4Updater +server.port=65534 +server.address=0.0.0.0 +## \u6570\u636E\u8FDE\u63A5\u4FE1\u606F +spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver +spring.datasource.url=jdbc:mysql://127.0.0.1:3305/spring_boot?useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true +spring.datasource.username=tt +spring.datasource.password=fanhuitong +# Hibernate\u914D\u7F6E +spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MariaDBDialect +#spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL8Dialect +# \u542F\u7528 SQL \u65E5\u5FD7 +spring.jpa.show-sql=true +# \u683C\u5F0F\u5316 SQL +#spring.jpa.properties.hibernate.format_sql=true +# \u663E\u793A\u7ED1\u5B9A\u53C2\u6570\u7684\u5177\u4F53\u503C\uFF08\u5173\u952E\u914D\u7F6E\uFF09 +logging.level.org.hibernate.type.descriptor.sql=TRACE +# \u6587\u4EF6\u5927\u5C0F +spring.servlet.multipart.max-file-size=2GB +spring.servlet.multipart.max-request-size=2GB +mybatis.type-aliases-package=com.mir4updater.backend.entity +mybatis.mapperLocations=classpath:mapper/*.xml +# redis\u57FA\u7840\u914D\u7F6E +# 0\u4E5F\u662F\u9ED8\u8BA4\u503C\uFF0C\u8868\u793A\u4F60\u8981\u64CD\u63A7\u7684 Redis \u4E0A\u7684\u54EA\u4E2A\u6570\u636E\u5E93 +spring.data.redis.database=0 +# 6379\u4E5F\u662F\u9ED8\u8BA4\u503C\uFF0C\u8868\u793A Redis \u7AEF\u53E3 +spring.data.redis.port=6379 +# \u8FD9\u91CC\u586B\u5199\u4F60\u7684\u670D\u52A1\u5668\u5730\u5740 +spring.data.redis.host=127.0.0.1 +spring.data.redis.password=fanhuitong +# \u53EF\u7701\u7565 +spring.data.redis.lettuce.pool.min-idle=5 +spring.data.redis.lettuce.pool.max-idle=10 +spring.data.redis.lettuce.pool.max-active=8 +spring.data.redis.lettuce.pool.max-wait=1ms +spring.data.redis.lettuce.shutdown-timeout=100ms \ 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..c765d04 --- /dev/null +++ b/src/main/resources/application-test.properties @@ -0,0 +1,36 @@ +spring.application.name=Mir4Updater +server.port=65532 +server.address=0.0.0.0 +## \u6570\u636E\u8FDE\u63A5\u4FE1\u606F +spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver +spring.datasource.url=jdbc:mysql://127.0.0.1:3305/spring_boot?useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true +spring.datasource.username=tt +spring.datasource.password=fanhuitong +# Hibernate\u914D\u7F6E +spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MariaDBDialect +#spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL8Dialect +# \u542F\u7528 SQL \u65E5\u5FD7 +spring.jpa.show-sql=true +# \u683C\u5F0F\u5316 SQL +#spring.jpa.properties.hibernate.format_sql=true +# \u663E\u793A\u7ED1\u5B9A\u53C2\u6570\u7684\u5177\u4F53\u503C\uFF08\u5173\u952E\u914D\u7F6E\uFF09 +logging.level.org.hibernate.type.descriptor.sql=TRACE +# \u6587\u4EF6\u5927\u5C0F +spring.servlet.multipart.max-file-size=2GB +spring.servlet.multipart.max-request-size=2GB +mybatis.type-aliases-package=com.mir4updater.backend.entity +mybatis.mapperLocations=classpath:mapper/*.xml +# redis\u57FA\u7840\u914D\u7F6E +# 0\u4E5F\u662F\u9ED8\u8BA4\u503C\uFF0C\u8868\u793A\u4F60\u8981\u64CD\u63A7\u7684 Redis \u4E0A\u7684\u54EA\u4E2A\u6570\u636E\u5E93 +spring.data.redis.database=0 +# 6379\u4E5F\u662F\u9ED8\u8BA4\u503C\uFF0C\u8868\u793A Redis \u7AEF\u53E3 +spring.data.redis.port=6379 +# \u8FD9\u91CC\u586B\u5199\u4F60\u7684\u670D\u52A1\u5668\u5730\u5740 +spring.data.redis.host=127.0.0.1 +spring.data.redis.password=fanhuitong +# \u53EF\u7701\u7565 +spring.data.redis.lettuce.pool.min-idle=5 +spring.data.redis.lettuce.pool.max-idle=10 +spring.data.redis.lettuce.pool.max-active=8 +spring.data.redis.lettuce.pool.max-wait=1ms +spring.data.redis.lettuce.shutdown-timeout=100ms \ No newline at end of file diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 8a90b7d..bf114cc 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -1,39 +1,3 @@ -spring.application.name=Mir4Updater -server.port=65534 -server.address=0.0.0.0 -## \u6570\u636E\u8FDE\u63A5\u4FE1\u606F -spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver -spring.datasource.url=jdbc:mysql://127.0.0.1:3305/spring_boot?useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true -spring.datasource.username=tt -spring.datasource.password=fanhuitong - -# Hibernate\u914D\u7F6E -spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MariaDBDialect -#spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL8Dialect -# \u542F\u7528 SQL \u65E5\u5FD7 -spring.jpa.show-sql=true -# \u683C\u5F0F\u5316 SQL -#spring.jpa.properties.hibernate.format_sql=true -# \u663E\u793A\u7ED1\u5B9A\u53C2\u6570\u7684\u5177\u4F53\u503C\uFF08\u5173\u952E\u914D\u7F6E\uFF09 -logging.level.org.hibernate.type.descriptor.sql=TRACE - -# \u6587\u4EF6\u5927\u5C0F -spring.servlet.multipart.max-file-size=2GB -spring.servlet.multipart.max-request-size=2GB - -mybatis.type-aliases-package=com.mir4updater.backend.entity -mybatis.mapperLocations=classpath:mapper/*.xml -# redis\u57FA\u7840\u914D\u7F6E -# 0\u4E5F\u662F\u9ED8\u8BA4\u503C\uFF0C\u8868\u793A\u4F60\u8981\u64CD\u63A7\u7684 Redis \u4E0A\u7684\u54EA\u4E2A\u6570\u636E\u5E93 -spring.data.redis.database=0 -# 6379\u4E5F\u662F\u9ED8\u8BA4\u503C\uFF0C\u8868\u793A Redis \u7AEF\u53E3 -spring.data.redis.port=6379 -# \u8FD9\u91CC\u586B\u5199\u4F60\u7684\u670D\u52A1\u5668\u5730\u5740 -spring.data.redis.host=127.0.0.1 -spring.data.redis.password=fanhuitong -# \u53EF\u7701\u7565 -spring.data.redis.lettuce.pool.min-idle=5 -spring.data.redis.lettuce.pool.max-idle=10 -spring.data.redis.lettuce.pool.max-active=8 -spring.data.redis.lettuce.pool.max-wait=1ms -spring.data.redis.lettuce.shutdown-timeout=100ms \ No newline at end of file +# application.properties +# \u9ED8\u8BA4\u6FC0\u6D3B\u751F\u4EA7\u73AF\u5883 +spring.profiles.active=prod