Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sv-springboot
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bsoft
sv-springboot
Commits
13a28394
Commit
13a28394
authored
Jul 07, 2020
by
Suvalue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
日志路径读取配置文件
parent
bf9e6e1c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletions
+2
-1
bsoft-api/src/main/resources/application-test.properties
+1
-0
bsoft-api/src/main/resources/logback-spring.xml
+1
-1
No files found.
bsoft-api/src/main/resources/application-test.properties
View file @
13a28394
...
...
@@ -4,6 +4,7 @@ spring.datasource.username=root
spring.datasource.password
=
Suvalue2016
spring.datasource.driver-class-name
=
com.mysql.jdbc.Driver
project.path
=
sy_test/test
#spring.datasource.driver-class-name=oracle.jdbc.driver.OracleDriver
#spring.datasource.username=scml_zp_cs
#spring.datasource.password=123
...
...
bsoft-api/src/main/resources/logback-spring.xml
View file @
13a28394
...
...
@@ -7,7 +7,7 @@
<property
name=
"log.test.level"
value=
"DEBUG"
/>
<property
name=
"log.prod.level"
value=
"DEBUG"
/>
<property
name=
"log.max.size"
value=
"10MB"
/>
<!-- 日志文件大小 -->
<springProperty
scope=
"context"
name=
"log.profile"
source=
"
spring.profiles.active
"
defaultValue=
"app"
/>
<springProperty
scope=
"context"
name=
"log.profile"
source=
"
project.path
"
defaultValue=
"app"
/>
<property
name=
"log.base"
value=
"/logs/${log.profile}"
/>
<springProperty
scope=
"context"
name=
"log.moduleName"
source=
"spring.application.name"
defaultValue=
"app"
/>
...
...
Write
Preview
Markdown
is supported
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