diff --git a/sky-server/src/main/resources/application-dev.properties b/sky-server/src/main/resources/application-dev.properties new file mode 100644 index 0000000..0663e08 --- /dev/null +++ b/sky-server/src/main/resources/application-dev.properties @@ -0,0 +1,6 @@ +sky.datasource.driver-class-name=com.mysql.cj.jdbc.Driver +sky.datasource.host=localhost +sky.datasource.port=3306 +sky.datasource.database=sky_take_out +sky.datasource.username=root +sky.datasource.password=Slhaf20041205 diff --git a/sky-server/src/main/resources/application.properties b/sky-server/src/main/resources/application.properties new file mode 100644 index 0000000..c781ef0 --- /dev/null +++ b/sky-server/src/main/resources/application.properties @@ -0,0 +1,16 @@ +server.port=8080 +spring.profiles.active=dev +spring.main.allow-circular-references=true +spring.datasource.druid.driver-class-name=${sky.datasource.driver-class-name} +spring.datasource.druid.url=jdbc:mysql://${sky.datasource.host}:${sky.datasource.port}/${sky.datasource.database}?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowPublicKeyRetrieval=true +spring.datasource.druid.username=${sky.datasource.username} +spring.datasource.druid.password=${sky.datasource.password} +mybatis.mapper-locations=classpath:mapper/*.xml +mybatis.type-aliases-package=com.sky.entity +mybatis.configuration.map-underscore-to-camel-case=true +logging.level.com.sky.mapper=debug +logging.level.com.sky.service=info +logging.level.com.sky.controller=info +sky.jwt.admin-secret-key=itcast +sky.jwt.admin-ttl=7200000 +sky.jwt.admin-token-name=token