feat: 配置文件

This commit is contained in:
taojinlong 2021-02-19 11:16:25 +08:00
parent 665cbd9b1e
commit 5c2912d9db
2 changed files with 7 additions and 4 deletions

View File

@ -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) {

View File

@ -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