在springboot日志打印的过程中,大量打印JndiPropertySource信息

在springboot日志打印的过程中,大量打印JndiPropertySource信息

2017-07-01 15:20:55.725 DEBUG 46784 --- [on(3)-127.0.0.1] o.s.jndi.JndiPropertySource              : JNDI lookup for name [mybatis.config] threw NamingException with message: Name [mybatis.config] is not bound in this Context. Unable to find [mybatis.config].. Returning null.
2017-07-01 15:20:55.725 DEBUG 46784 --- [on(3)-127.0.0.1] org.springframework.jndi.JndiTemplate    : Looking up JNDI object with name [java:comp/env/mybatis_config]
2017-07-01 15:20:55.726 DEBUG 46784 --- [on(3)-127.0.0.1] o.s.jndi.JndiLocatorDelegate             : Converted JNDI name [java:comp/env/mybatis_config] not found - trying original name [mybatis_config]. javax.naming.NameNotFoundException: Name [mybatis_config] is not bound in this Context. Unable to find [mybatis_config].
2017-07-01 15:20:55.726 DEBUG 46784 --- [on(3)-127.0.0.1] org.springframework.jndi.JndiTemplate    : Looking up JNDI object with name [mybatis_config]

解决方法 请参考 https://stackoverflow.com/questions/42446013/spring-jndi-logging-before-logback-is-initialized

转载于:https://my.oschina.net/dylw/blog/1544890