• bip项目的启用/调试+ 问题记录


    启动 

    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:

  • 相关阅读:
    Javascript操纵Cookie--转
    java使用jsp servlet来防止csrf 攻击的实现方法
    Creating a CSRF protection with Spring 3.x--reference
    Preventing CSRF in Java web apps---reference
    Linux服务器集群系统(四)--转
    Linux服务器集群系统(三)--转
    UVA 10529 Dumb Bones 可能性dp 需求预期
    android 渐变drawable
    定义你自己ViewGroup
    Android系统关机或几种方式重启
  • 原文地址:https://www.cnblogs.com/tldxh/p/12482015.html
Copyright © 2020-2023  润新知