《springboot》JndiTemplate-Looking up JNDI object with name [java:xxx

SpringBoot+jpa+hibernate+druid,使用logback作日志处理,打war包放进tomcat里启动的时候,控制台不停的打印JNDI的相关信息, 启动超慢,浪费时间.

解决方案:

https://stackoverflow.com/questions/42446013/spring-jndi-logging-before-logback-is-initialized

只需两步:

第一步: 创建spring.properties, 再说一遍spring.properties.

第二步: 添加属性spring.jndi.ignore=true


# Disable the JNDIPropertySource. This avoids dozens of spurious DEBUG messages
# when starting up with a custom logback-spring.xml. We're not alone:
# http://stackoverflow.com/questions/42446013/spring-jndi-logging-before-logback-is-initialized
spring.jndi.ignore=true

猜你喜欢

转载自blog.csdn.net/kaige8312/article/details/84982776
今日推荐