首页 >数据库 >mysql教程 >druid+Atomikos+mysql+tomcat启动无响应也不报错

druid+Atomikos+mysql+tomcat启动无响应也不报错

WBOY
WBOY原创
2016-06-06 09:33:211704浏览

mysqltomcat

日志停在这然后就没然后了

2016-03-22 21:55:00,850 [// - - ] INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'formAuthenticationFilter' of type [class org.apache.shiro.web.filter.authc.FormAuthenticationFilter] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2016-03-22 21:55:01,136 [// - - ] INFO com.alibaba.druid.pool.DruidDataSource - {dataSource-1} inited
2016-03-22 21:55:01,137 [// - - ] INFO org.springframework.context.support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'xaDataSource1' of type [class com.alibaba.druid.pool.xa.DruidXADataSource] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

配置文件如下







































select 1

<code><bean id="sqlSessionFactory1" class="org.mybatis.spring.SqlSessionFactoryBean"></bean></code>







<code><bean class="org.mybatis.spring.mapper.MapperScannerConfigurer"></bean></code>







<code><bean id="jdbcTemplate" class="org.springframework.jdbc.core.JdbcTemplate">      <property name="dataSource" ref="dataSourceOne"></property>  </bean> <bean id="atomikosTransactionManager" class="com.atomikos.icatch.jta.UserTransactionManager" init-method="init" destroy-method="close">    <property name="forceShutdown">        <value>true</value>    </property></bean><bean id="atomikosUserTransaction" class="com.atomikos.icatch.jta.UserTransactionImp">    <property name="transactionTimeout" value="300"></property></bean><bean id="transactionManager" class="org.springframework.transaction.jta.JtaTransactionManager">    <property name="transactionManager">        <ref bean="atomikosTransactionManager"></ref>    </property>    <property name="userTransaction">        <ref bean="atomikosUserTransaction"></ref>    </property>    <!-- 必须设置,否则程序出现异常 JtaTransactionManager does not support custom isolation levels by default -->    <property name="allowCustomIsolationLevels" value="true"></property></bean></code>

声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn