启动
1) 启动zookeeper
2)启用redis
启动命令
redis-server.exe --maxheap 1024000000
3)启用servermain
4讲项目添加到tomcat中 点甲壳虫按钮
-----------------------------------------遇到的问题----------------------------------------
Caused by: org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [G:Java_ytip_newBIP_ModelinmybatisyxptCpxtMatterMapper.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error creating document instance. Cause: org.xml.sax.SAXParseException; lineNumber: 2; columnNumber: 61; 文档根元素 "mapper" 必须匹配 DOCTYPE 根 "null"。
原因:漏了这一行
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
----------------------------------
Could not autowire field: private com.sapinfo.bip.bo.yxpt.impl.CpxtUserBO com.sapinfo.controller.CpxtController.cpxtUserBO; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.sapinfo.bip.bo.yxpt.impl.CpxtUserBO] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)
原因:cpxtUserBO 是ICpxtUserBO的实现类,为什么不能调用,抱这种错我也不知道。
以前遇到的问题s (undo:整理before乱七八糟日志):
查看problem,解决problem
1)项目引用 √
2)版本——重装jdk1.8
特别的,zookeeper和redis的配置位置记录如下:
zookeeper:
redis: