mysql spring 整合日志_springboot与nutz整合,日志样式出现异常。

曹子平
2023-12-01

在springboot项目中,引入了下面这个pom

com.ean.common

ean-cloud-nutz-starter

日志配置如下

logging:

level:

root: info

org.nutz: debug

出现以下格式问题,希望能帮忙解决一下啦

2018-11-16 11:08:00.898 INFO 31152 --- [ost-startStop-1] .s.DelegatingFilterProxyRegistrationBean : Mapping filter: 'springSecurityFilterChain' to: [/*]

2018-11-16 11:08:00.898 INFO 31152 --- [ost-startStop-1] o.s.b.w.servlet.ServletRegistrationBean : Servlet dispatcherServlet mapped to [/]

2018-11-16 11:08:01.207 INFO 31152 --- [ main] com.zaxxer.hikari.HikariDataSource : cp_manager - Starting...

2018-11-16 11:08:01.373 INFO 31152 --- [ main] com.zaxxer.hikari.HikariDataSource : cp_manager - Start completed.

18-11-16 11:08:02.160 INFO [main] Select SystemLog as Nutz.Log implement

18-11-16 11:08:02.306 DEBUG [main] Locations count=156 time use 122ms

18-11-16 11:08:02.492 DEBUG [main] Using 95 castor for Castors

18-11-16 11:08:02.574 DEBUG [main] Jdbcs init complete

18-11-16 11:08:02.575 INFO [main] Get Connection from DataSource for JdbcExpert, if you lock at here, check your database server and configure

18-11-16 11:08:02.576 DEBUG [main] select expert : org.nutz.dao.impl.jdbc.mysql.MysqlJdbcExpert

18-11-16 11:08:02.581 DEBUG [main] JDBC Driver --> mysql-connector-java-5.1.46 ( Revision: 9cc87a48e75c2d2e87c1a293b2862ce651cb256e )

18-11-16 11:08:02.581 DEBUG [main] JDBC Name --> MySQL Connector Java

18-11-16 11:08:02.582 DEBUG [main] JDBC URL --> jdbc:mysql://localhost:3306/***?characterEncoding=UTF-8&useSSL=false

18-11-16 11:08:02.587 DEBUG [main] Mysql : character_set_client=utf8

18-11-16 11:08:02.587 DEBUG [main] Mysql : character_set_connection=utf8

18-11-16 11:08:02.587 DEBUG [main] Mysql : character_set_database=utf8

18-11-16 11:08:02.587 DEBUG [main] Mysql : character_set_filesystem=binary

18-11-16 11:08:02.587 DEBUG [main] Mysql : character_set_results=

18-11-16 11:08:02.587 DEBUG [main] Mysql : character_set_server=utf8

18-11-16 11:08:02.588 DEBUG [main] Mysql : character_set_system=utf8

18-11-16 11:08:02.588 DEBUG [main] Mysql : character_sets_dir=C:\Program Files\MySQL\MySQL Server 5.5\share\charsets\

18-11-16 11:08:02.590 DEBUG [main] Mysql : binlog_format=STATEMENT

18-11-16 11:08:02.591 DEBUG [main] Mysql : database=***

18-11-16 11:08:02.592 DEBUG [main] Mysql : user=root@localhost

18-11-16 11:08:02.601 DEBUG [main] Database info --> MYSQL:[MySQL - 5.5.27]

18-11-16 11:08:02.614 DEBUG [main] Found 0 resource by src( sqls ) , regex( .(sql|sqlx|sqls)$ )

18-11-16 11:08:02.615 DEBUG [main] SqlManager Sql count=0

18-11-16 11:08:02.627 DEBUG [main] Get TypeParams for self : com.ean.security.server.model.TMemUser

2018-11-16 11:08:03.122 DEBUG 31152 --- [ main] .s.o.p.e.FrameworkEndpointHandlerMapping : Looking for request mappings in application context: org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@4372b9b6: startup date [Fri Nov 16 11:07:58 GMT+08:00 2018]; root of context hierarchy

2018-11-16 11:08:03.142 DEBUG 31152 --- [ main] .s.o.p.e.FrameworkEndpointHandlerMapping : 2 request handler methods found on class org.springframework.security.oauth2.provider.endpoint.AuthorizationEndpoint: {public org.springframework.web.servlet.ModelAndView org.springframework.security.oauth2.provider.endpoint.AuthorizationEndpoint.authorize(java.util.Map,java.util.Map,org.springframework.web.bind.support.SessionStatus,java.security.Principal)={[/oauth/authorize]}, public org.springframework.web.servlet.View org.springframework.security.oauth2.provider.endpoint.AuthorizationEndpoint.approveOrDeny(java.util.Map,java.util.Map,org.springframework.web.bind.support.SessionStatus,java.security.Principal)={[/oauth/authorize],methods=[POST],params=[user_oauth_approval]}}

2018-11-16 11:08:03.146 INFO 31152 --- [ main] .s.o.p.e.FrameworkEndpointHandlerMapping : Mapped "{[/oauth/authorize]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.security.oauth2.provider.endpoint.AuthorizationEndpoint.authorize(java.util.Map,java.util.Map,org.springframework.web.bind.support.SessionStatus,java.security.Principal)

2018-11-16 11:08:03.147 INFO 31152 --- [ main] .s.o.p.e.FrameworkEndpointHandlerMapping : Mapped "{[/oauth/authorize],methods=[POST],params=[user_oauth_approval]}" onto public org.springframework.web.servlet.View org.springframework.security.oauth2.provider.endpoint.AuthorizationEndpoint.approveOrDeny(java.util.Map,java.util.Map,org.springframework.web.bind.support.SessionStatus,java.security.Principal)

2018-11-16 11:08:03.149 DEBUG 31152 --- [ main] .s.o.p.e.FrameworkEndpointHandlerMapping : 2 request handler methods found on class org.springframework.security.oauth2.provider.endpoint.TokenEndpoint: {public org.springframework.http.ResponseEntity org.springframework.security.oauth2.provider.endpoint.TokenEndpoint.getAccessToken(java.security.Principal,java.util.Map) throws org.springframework.web.HttpRequestMethodNotSupportedException={[/oauth/token],methods=[GET]}, public org.springframework.http.ResponseEntity org.springframework.security.oauth2.provider.endpoint.TokenEndpoint.postAccessToken(java.security.Principal,java.util.Map) throws org.springframework.web.HttpRequestMethodNotSupportedException={[/oauth/token],methods=[POST]}}

2018-11-16 11:08:03.150 INFO 31152 --- [ main] .s.o.p.e.FrameworkEndpointHandlerMapping : Mapped "{[/oauth/token],methods=[GET]}" onto public org.springframework.http.ResponseEntity org.springframework.security.oauth2.provider.endpoint.TokenEndpoint.getAccessToken(java.security.Principal,java.util.Map) throws org.springframework.web.HttpRequestMethodNotSupportedException

2018-11-16 11:08:03.150 INFO 31152 --- [ main] .s.o.p.e.FrameworkEndpointHandlerMapping : Mapped "{[/oauth/token],methods=[POST]}" onto public org.springframework.http.ResponseEntity org.springframework.security.oauth2.provider.endpoint.TokenEndpoint.postAccessToken(java.security.Principal,java.util.Map) throws org.springframework.web.HttpRequestMethodNotSupportedException

2018-11-16 11:08:03.152 DEBUG 31152 --- [ main] .s.o.p.e.FrameworkEndpointHandlerMapping : 1 request handler methods found on class org.springframework.security.oauth2.provider.endpoint.CheckTokenEndpoint: {public java.util.Map org.springframework.security.oauth2.provider.endpoint.CheckTokenEndpoint.checkToken(java.lang.String)={[/oauth/check_token]}}

 类似资料: