Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
1e1e5f6e
Commit
1e1e5f6e
authored
Jan 15, 2019
by
cjl
Browse files
修改配置信息
parent
36139e26
Changes
5
Hide whitespace changes
Inline
Side-by-side
pom.xml
View file @
1e1e5f6e
...
@@ -17,7 +17,6 @@
...
@@ -17,7 +17,6 @@
<properties>
<properties>
<activatedProperties>
test
</activatedProperties>
<activatedProperties>
test
</activatedProperties>
</properties>
</properties>
</profile>
</profile>
<profile>
<profile>
<id>
prod
</id>
<id>
prod
</id>
...
...
src/main/java/com/jsh/erp/ErpApplication.java
View file @
1e1e5f6e
package
com.jsh.erp
;
package
com.jsh.erp
;
import
org.mybatis.spring.annotation.MapperScan
;
import
org.mybatis.spring.annotation.MapperScan
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.scheduling.annotation.EnableScheduling
;
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
);
}
}
}
}
src/main/resources/application-test.properties
View file @
1e1e5f6e
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
\ No newline at end of file
src/main/resources/application.properties
View file @
1e1e5f6e
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=/**
...
...
src/main/resources/application.yml
0 → 100644
View file @
1e1e5f6e
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment