万达换票券 发表于 2017-2-8 11:48:26

eclipse启动tomcat一直在starting的状态,直到timeout

  看了下console里面的启动log,发现反复重复这样的一段:

Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file '; nested exception is java.lang.RuntimeException: Error parsing Mapper XML. Cause: org.apache.ibatis.builder.BuilderException: Error resolving class . Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'BaseResultMap'.Cause: java.lang.ClassNotFoundException: Cannot find class: BaseResultMap
  去KuCunMapper.xml里面查找跟“BaseResultMap”有关的内容,发现:


<select id="getExistingKucun" resultType="BaseResultMap" parameterType="com.erpbase.model.KuCun">
  将resultType改成resultMap就可以了。
页: [1]
查看完整版本: eclipse启动tomcat一直在starting的状态,直到timeout