Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
荆蔚杰
/
java.archive
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
1dbb1b9a
authored
2021-11-16 10:11:29 +0800
by
荆蔚杰
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
控制台sql日志输出
1 parent
0161de33
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
src/main/resources/application-dev.yaml
src/main/resources/logback-spring.xml
src/main/resources/application-dev.yaml
View file @
1dbb1b9
...
...
@@ -25,7 +25,7 @@ spring:
mybatis-plus
:
mapper-locations
:
classpath:mapper/**/*.xml
typeAliasesPackage
:
archive
typeAliasesPackage
:
com.pashanhoo
global-config
:
#主键类型 0:"数据库ID自增", 1:"用户输入ID",2:"全局唯一ID (数字类型唯一ID)", 3:"全局唯一ID UUID";
id-type
:
2
...
...
@@ -60,9 +60,7 @@ management:
logging
:
level
:
root
:
debug
com
:
mapper
:
com.pashanhoo
:
debug
config
:
"
classpath:logback-spring.xml"
minio
:
...
...
src/main/resources/logback-spring.xml
View file @
1dbb1b9
...
...
@@ -115,7 +115,7 @@
<onMismatch>
DENY
</onMismatch>
</filter>
</appender>
<logger
name=
"com.pashanhoo.
mapper
"
level=
"DEBUG"
/>
<logger
name=
"com.pashanhoo.
*
"
level=
"DEBUG"
/>
<!-- 时间滚动输出 level为 ERROR 日志 -->
<appender
name=
"ERROR_FILE"
class=
"ch.qos.logback.core.rolling.RollingFileAppender"
>
...
...
@@ -171,7 +171,7 @@
<!--开发环境:打印控制台-->
<springProfile
name=
"dev"
>
<logger
name=
"com.pashanhoo
"
level=
"info
"
/>
<logger
name=
"com.pashanhoo
.*"
level=
"debug
"
/>
</springProfile>
<root
level=
"INFO"
>
...
...
Please
register
or
sign in
to post a comment