修改配置信息

This commit is contained in:
cjl
2019-01-15 11:07:22 +08:00
parent 36139e26a4
commit 1e1e5f6ed5
5 changed files with 22 additions and 38 deletions

View File

@@ -17,7 +17,6 @@
<properties> <properties>
<activatedProperties>test</activatedProperties> <activatedProperties>test</activatedProperties>
</properties> </properties>
</profile> </profile>
<profile> <profile>
<id>prod</id> <id>prod</id>

View File

@@ -8,8 +8,11 @@ import org.springframework.scheduling.annotation.EnableScheduling;
@SpringBootApplication @SpringBootApplication
@MapperScan(basePackages = {"com.jsh.erp.datasource.mappers"}) @MapperScan(basePackages = {"com.jsh.erp.datasource.mappers"})
@EnableScheduling @EnableScheduling
public class ErpApplication { public class ErpApplication{
public static void main(String[] args) { public static void main(String[] args) {
SpringApplication.run(ErpApplication.class, args); SpringApplication.run(ErpApplication.class, args);
} }
} }

View File

@@ -0,0 +1,4 @@
spring.datasource.url=jdbc:mysql://127.0.0.1:3306/jsh_erp?useUnicode=true&characterEncoding=utf8&useCursorFetch=true&defaultFetchSize=500&allowMultiQueries=true&rewriteBatchedStatements=true&useSSL=false
spring.datasource.driverClassName=com.mysql.jdbc.Driver
spring.datasource.username=root
spring.datasource.password=123456

View File

@@ -1,35 +1,13 @@
server.port=8080 server.port=8080
#spring.application.name=erp
#eureka.client.service-url.defaultZone=http://sinldo-eureka:8001/eureka/
#eureka.client.service-url.defaultZone=http://localhost:8001/eureka/
#eureka.instance.instance-id=${spring.application.name}-instance-${random.value}
#eureka.instance.prefer-ip-address=true
spring.profiles.active=@activatedProperties@ spring.profiles.active=@activatedProperties@
#generatorConfig专用属性 #generatorConfig专用属性
project=src/main/java project=src/main/java
resource=src/main/resources resource=src/main/resources
web.front.baseDir=erp_web web.front.baseDir=erp_web
#web.front.baseDir=erp_web
mybatis.type-aliases-package=com.chinamobile.model.* mybatis.type-aliases-package=com.chinamobile.model.*
mybatis.mapper-locations=classpath:./mapper_xml/*.xml mybatis.mapper-locations=classpath:./mapper_xml/*.xml
spring.cas.sign-out-filters=/logout
spring.cas.auth-filters=/*
spring.cas.validate-filters=/*
spring.cas.request-wrapper-filters=/*
spring.cas.assertion-filters=/*
spring.cas.cas-server-login-url=http://localhost:8080/login
spring.cas.cas-server-url-prefix=http://localhost:8080
spring.cas.redirect-after-validation=true
spring.cas.use-session=true
spring.cas.server-name=http://localhost:9000
##静态资源路径
#spring.mvc.view.prefix=/templates/
#spring.mvc.view.suffix=.html
#spring.mvc.static-path-pattern=/**

View File