forked from github/dataease
feat: 配置文件
This commit is contained in:
parent
665cbd9b1e
commit
5c2912d9db
@ -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) {
|
||||
|
@ -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
|
||||
mybatis.mapper-locations=classpath:mapper/*.xml
|
||||
|
Loading…
Reference in New Issue
Block a user