diff --git a/fit2cloud-system/src/main/java/com/fit2cloud/SystemApp.java b/fit2cloud-system/src/main/java/com/fit2cloud/SystemApp.java index b893cc534e..e44cf87c8a 100644 --- a/fit2cloud-system/src/main/java/com/fit2cloud/SystemApp.java +++ b/fit2cloud-system/src/main/java/com/fit2cloud/SystemApp.java @@ -4,10 +4,12 @@ package com.fit2cloud; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.cache.annotation.EnableCaching; +import org.springframework.context.annotation.PropertySource; @EnableCaching @SpringBootApplication +@PropertySource(value = {"file:/opt/dataease/conf/dataease.properties"}, encoding = "UTF-8", ignoreResourceNotFound = true) public class SystemApp { public static void main(String[] args) { diff --git a/fit2cloud-system/src/main/resources/application.properties b/fit2cloud-system/src/main/resources/application.properties index 71c0a89eb5..3ea899d4bd 100644 --- a/fit2cloud-system/src/main/resources/application.properties +++ b/fit2cloud-system/src/main/resources/application.properties @@ -1,6 +1,7 @@ +spring.application.name=dataease + +server.port=8081 + spring.datasource.type=com.alibaba.druid.pool.DruidDataSource -spring.datasource.url=jdbc:mysql://106.15.239.57:3306/data_ease?autoReconnect=false&useUnicode=true&characterEncoding=UTF-8&characterSetResults=UTF-8&zeroDateTimeBehavior=convertToNull&useSSL=false -spring.datasource.username=root -spring.datasource.password=Password123@mysql spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver -mybatis.mapper-locations=classpath:mapper/*.xml \ No newline at end of file +mybatis.mapper-locations=classpath:mapper/*.xml