发表于: 2016-10-05 20:12:21

2 2221


今天完成的事情:找到了项目无法启动成功的问题,因为我改了某些实体类路径,导致xml找不到映射的实体类,最后卡在preparing launch delegate

明天计划的事情:完成对项目代码的整理,写假数据。

遇到的问题:

1.关于昨天卡在preparing launch delegate的问题


今天我在查看spring的配置文件applicationContext.xml发现

<bean id="sqlSessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean">

<property name="dataSource" ref="dataSource" />

<property name="typeAliasesPackage" value="com.cqhealth.webservice.base.entity" />

<property name="mapperLocations" value="classpath*:com/cqhealth/webservice/base/xml/*.xml" />

</bean>

这里typeAliasesPackage 的value限制在了com.cqhealth.webservice.base.entity这个路径下,但是我有

些mapper返回的对象被我转移到了别的目录下,我将这些对象都放到entity路径下就可以启动了,我想找到

问题的根本原因,


就去日志里面看发现执行到这里然后才卡在preparing launch delegate的

Bean 'qbScheduler' of type [class org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler] 

is not eligible for getting processed by all BeanPostProcessors 

(for example: not eligible for auto-proxying)

不适合自动代理?


这句话log输出的时候使用info级别,说明这个错误没有太大的影响

他的下一句是

2016-10-05 10:02:45  [ localhost-startStop-1:1612 ] -[org.hibernate.validator.internal.util.Version.

<clinit>(Version.java:27)]- [ INFO ]  HV000001: Hibernate Validator 5.0.3.Final

Hibernate Validator是一个校验框架,http://blog.csdn.net/liuchuanhong1/article/details/52042294


后来才恍然大悟我的xml里的resultMap中的type的路径错误了,导致了这个问题



返回列表 返回列表
评论

    分享到