关于初始化时ibatis包下的Slf4jImpl adapter时等待时间过久问题!

奕溟 2017-07-21 04:29:17
信息: No Spring WebApplicationInitializer types detected on classpath
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/WEB-INF/lib/log4j-slf4j-impl-2.4.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/WEB-INF/lib/slf4j-log4j12-1.7.21.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]
2017-07-21 16:14:02.525 [localhost-startStop-1] DEBUG [MutablePropertySources:109] - Adding [servletContextInitParams] PropertySource with lowest search precedence
2017-07-21 16:14:02.533 [localhost-startStop-1] DEBUG [MutablePropertySources:109] - Adding [jndiProperties] PropertySource with lowest search precedence
2017-07-21 16:14:02.534 [localhost-startStop-1] DEBUG [MutablePropertySources:109] - Adding [systemProperties] PropertySource with lowest search precedence
2017-07-21 16:14:02.534 [localhost-startStop-1] DEBUG [MutablePropertySources:109] - Adding [systemEnvironment] PropertySource with lowest search precedence
2017-07-21 16:14:02.535 [localhost-startStop-1] DEBUG [AbstractEnvironment:127] - Initialized StandardServletEnvironment with PropertySources [servletConfigInitParams,servletContextInitParams,jndiProperties,systemProperties,systemEnvironment]
2017-07-21 16:14:02.540 [localhost-startStop-1] DEBUG [MutablePropertySources:174] - Replacing [servletContextInitParams] PropertySource with [servletContextInitParams]
2017-07-21 16:14:02.541 [localhost-startStop-1] INFO [AbstractApplicationContext:581] - Refreshing Root WebApplicationContext: startup date [Fri Jul 21 16:14:02 CST 2017]; root of context hierarchy
2017-07-21 16:14:02.584 [localhost-startStop-1] INFO [XmlBeanDefinitionReader:317] - Loading XML bean definitions from class path resource [spring-config.xml]
2017-07-21 16:14:02.815 [localhost-startStop-1] INFO [XmlBeanDefinitionReader:317] - Loading XML bean definitions from class path resource [motan-server.xml]
2017-07-21 16:14:02.857 [localhost-startStop-1] INFO [DefaultLogService:55] - AllSpiInitialization init.
2017-07-21 16:14:02.861 [localhost-startStop-1] INFO [DefaultLogService:55] - AllSpiInitialization init finish.
2017-07-21 16:14:02.905 [localhost-startStop-1] INFO [XmlBeanDefinitionReader:317] - Loading XML bean definitions from class path resource [spring/dataSource.xml]
2017-07-21 16:14:02.923 [localhost-startStop-1] INFO [XmlBeanDefinitionReader:317] - Loading XML bean definitions from class path resource [spring/mybatis.xml]
2017-07-21 16:14:02.947 [localhost-startStop-1] DEBUG [AbstractApplicationContext:615] - Bean factory for Root WebApplicationContext: org.springframework.beans.factory.support.DefaultListableBeanFactory@127321ee: defining beans [com.ifengchao.core.util.PropertiesUtil#0,accountProviderImpl,helloProviderImpl,userAdvertsProviderImpl,userCenterProviderImpl,userProviderImpl,userSessionProviderImpl,userSupplyProviderImpl,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.event.internalEventListenerProcessor,org.springframework.context.event.internalEventListenerFactory,registry,userMotan,userServiceBasicConfig,com.weibo.api.motan.config.springsupport.AnnotationBean,stat-filter,readDataSource,writeDataSource,dataSource,com.ifengchao.core.aspect.DataSourceAspect#0,org.springframework.jdbc.core.JdbcTemplate#0,sqlSessionFactory,org.mybatis.spring.mapper.MapperScannerConfigurer#0,transactionManager,org.springframework.transaction.config.internalTransactionalEventListenerFactory,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor]; root of factory hierarchy
2017-07-21 16:14:03.154 [localhost-startStop-1] DEBUG [ClassPathScanningCandidateComponentProvider:286] - Identified candidate component class: file [/Users/yiming/Documents/work/iFengChao/iFengChao-User-Service/target/iFengChao-User-Service/WEB-INF/classes/com/ifengchao/dao/user/AccountMapper.class]
2017-07-21 16:14:03.155 [localhost-startStop-1] DEBUG [ClassPathScanningCandidateComponentProvider:286] - Identified candidate component class: file [/Users/yiming/Documents/work/iFengChao/iFengChao-User-Service/target/iFengChao-User-Service/WEB-INF/classes/com/ifengchao/dao/user/HelloMapper.class]
2017-07-21 16:14:03.155 [localhost-startStop-1] DEBUG [ClassPathScanningCandidateComponentProvider:286] - Identified candidate component class: file [/Users/yiming/Documents/work/iFengChao/iFengChao-User-Service/target/iFengChao-User-Service/WEB-INF/classes/com/ifengchao/dao/user/UserAdvertsMapper.class]
2017-07-21 16:14:03.155 [localhost-startStop-1] DEBUG [ClassPathScanningCandidateComponentProvider:286] - Identified candidate component class: file [/Users/yiming/Documents/work/iFengChao/iFengChao-User-Service/target/iFengChao-User-Service/WEB-INF/classes/com/ifengchao/dao/user/UserCenterMapper.class]
2017-07-21 16:14:03.156 [localhost-startStop-1] DEBUG [ClassPathScanningCandidateComponentProvider:286] - Identified candidate component class: file [/Users/yiming/Documents/work/iFengChao/iFengChao-User-Service/target/iFengChao-User-Service/WEB-INF/classes/com/ifengchao/dao/user/UserInfoMapper.class]
2017-07-21 16:14:03.156 [localhost-startStop-1] DEBUG [ClassPathScanningCandidateComponentProvider:286] - Identified candidate component class: file [/Users/yiming/Documents/work/iFengChao/iFengChao-User-Service/target/iFengChao-User-Service/WEB-INF/classes/com/ifengchao/dao/user/UserSessionMapper.class]
2017-07-21 16:14:03.156 [localhost-startStop-1] DEBUG [ClassPathScanningCandidateComponentProvider:286] - Identified candidate component class: file [/Users/yiming/Documents/work/iFengChao/iFengChao-User-Service/target/iFengChao-User-Service/WEB-INF/classes/com/ifengchao/dao/user/UserSupplyMapper.class]
2017-07-21 16:14:03.156 [localhost-startStop-1] DEBUG [ClassPathMapperScanner:181] - Creating MapperFactoryBean with name 'accountMapper' and 'com.ifengchao.dao.user.AccountMapper' mapperInterface
2017-07-21 16:14:03.157 [localhost-startStop-1] DEBUG [ClassPathMapperScanner:181] - Creating MapperFactoryBean with name 'helloMapper' and 'com.ifengchao.dao.user.HelloMapper' mapperInterface
2017-07-21 16:14:03.157 [localhost-startStop-1] DEBUG [ClassPathMapperScanner:181] - Creating MapperFactoryBean with name 'userAdvertsMapper' and 'com.ifengchao.dao.user.UserAdvertsMapper' mapperInterface
2017-07-21 16:14:03.157 [localhost-startStop-1] DEBUG [ClassPathMapperScanner:181] - Creating MapperFactoryBean with name 'userCenterMapper' and 'com.ifengchao.dao.user.UserCenterMapper' mapperInterface
2017-07-21 16:14:03.157 [localhost-startStop-1] DEBUG [ClassPathMapperScanner:181] - Creating MapperFactoryBean with name 'userInfoMapper' and 'com.ifengchao.dao.user.UserInfoMapper' mapperInterface
2017-07-21 16:14:03.157 [localhost-startStop-1] DEBUG [ClassPathMapperScanner:181] - Creating MapperFactoryBean with name 'userSessionMapper' and 'com.ifengchao.dao.user.UserSessionMapper' mapperInterface
2017-07-21 16:14:03.157 [localhost-startStop-1] DEBUG [ClassPathMapperScanner:181] - Creating MapperFactoryBean with name 'userSupplyMapper' and 'com.ifengchao.dao.user.UserSupplyMapper' mapperInterface
2017-07-21 16:14:03.196 [localhost-startStop-1] INFO [PropertiesLoaderSupport:172] - Loading properties file from class path resource [config/jdbc-local.properties]
2017-07-21 16:14:03.197 [localhost-startStop-1] INFO [PropertiesLoaderSupport:172] - Loading properties file from class path resource [config/system-local.properties]
2017-07-21 16:14:08.276 [localhost-startStop-1] INFO [PropertiesUtil:37] -
2017-07-21 16:14:08.290 [localhost-startStop-1] INFO [AutowiredAnnotationBeanPostProcessor:156] - JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2017-07-21 16:14:08.333 [localhost-startStop-1] DEBUG [AbstractApplicationContext:728] - Unable to locate MessageSource with name 'messageSource': using default [org.springframework.context.support.DelegatingMessageSource@3a618864]
2017-07-21 16:14:08.335 [localhost-startStop-1] DEBUG [AbstractApplicationContext:752] - Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.SimpleApplicationEventMulticaster@53c2d650]
2017-07-21 16:14:08.520 [localhost-startStop-1] DEBUG [LogFactory:135] - Logging initialized using 'class org.apache.ibatis.logging.slf4j.Slf4jImpl' adapter.
mybatis-plus init success.
2017-07-21 16:17:53.902 [localhost-startStop-1] DEBUG [VFS:109] - Class not found: org.jboss.vfs.VFS
2017-07-21 16:17:53.903 [localhost-startStop-1] DEBUG [JBoss6VFS:142] - JBoss 6 VFS API is not available in this environment.
2017-07-21 16:17:53.904 [localhost-startStop-1] DEBUG [VFS:109] - Class not found: org.jboss.vfs.VirtualFile
2017-07-21 16:17:53.905 [localhost-startStop-1] DEBUG [VFS:70] - VFS implementation org.apache.ibatis.io.JBoss6VFS is not valid in this environment.
2017-07-21 16:17:53.906 [localhost-startStop-1] DEBUG [VFS:84] - Using VFS adapter org.apache.ibatis.io.DefaultVFS

如图,在Logging initialized using 'class org.apache.ibatis.logging.slf4j.Slf4jImpl' adapter.这里卡了3分钟不知道什么原因。同样在windows下跑只要等10几秒,在MAC下要等3分钟。能正常运行就是启动太慢了。
...全文
747 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
Shaoytsh 2020-04-30
  • 打赏
  • 举报
回复
同样问题,关注中,求解决方案和造成这个的原因。
静心事成 2017-11-02
  • 打赏
  • 举报
回复
同样问题,关注中,求解决方案和造成这个的原因。
weixin_40655934 2017-10-16
  • 打赏
  • 举报
回复
请问这个问题找到解决方式了吗?
奕溟 2017-07-21
  • 打赏
  • 举报
回复
引用 2 楼 zxqdzwxswm 的回复:
.........
算了也不是啥大问题。留到以后解决吧。。
奕溟 2017-07-21
  • 打赏
  • 举报
回复
引用 3 楼 u013305864 的回复:
检查看看是否是因为配置文件路径的原因!
不过还是谢谢你了。
奕溟 2017-07-21
  • 打赏
  • 举报
回复
嗯,配置文件方面我也检查过了。没什么大的问题的。
一念永恒 2017-07-21
  • 打赏
  • 举报
回复
检查看看是否是因为配置文件路径的原因!
奕溟 2017-07-21
  • 打赏
  • 举报
回复
.........
奕溟 2017-07-21
  • 打赏
  • 举报
回复
麻烦各位大神帮忙看看。。。。

81,095

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧