• Artifact XXX exploded: Error during artifact deployment. See server log for details.


        前排提醒,这只是篇排错日记,可能解决不了你的问题。

      

      点击右侧查看tomcat日志

      看这个报错信息,知道是映射文件路径出错了。

      改一下

    然后又报新错误:

    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'employeeController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.figsprite.Service.EmployeeService com.figsprite.Controller.EmployeeController.employeeService; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.figsprite.Service.EmployeeService] 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)}

      可以知道是扫描包出现问题, = =这里因为懒,直接复制了SpringMVC的配置文件,导致Spring扫描不到包了

      = =还是错

       在控制层加点料

     = =好熟悉的错误,刚学习SpringMVC时令人抓疯的错误

    = = 途中又碰到新问题

    log4j:WARN No appenders could be found for logger

    在web.xml里改一改

    <context-param>
       <param-name>log4jConfigLocation</param-name>
       <param-value>/WEB-INF/config/log4j.properties</param-value>
    </context-param>

    ······

    <!-- 定义LOG4J监听器 -->
    <listener>
       <listener-class>
    org.springframework.web.util.Log4jConfigListener
       </listener-class>
    </listener>

    至此,整合SSM宣告成功!!!万里长征,刚刚开始

     

  • 相关阅读:
    git cherrypick
    【系统设计】OA需求分析,OA系统选型及各供应商对比。
    .NET MD5加密 16位/32位
    手机端网页苹果/安卓滑动翻页,未触发事件解决办法
    k3s 私有仓库问题
    NeoVimByLua格式化代码
    RestTemplate 设置超时时间
    广告电商系统开发功能模块分析
    涂游易享系统开发和涂游易享app模式制度介绍
    广告电商系统开发新功能迭代目录
  • 原文地址:https://www.cnblogs.com/figsprite/p/10886885.html
Copyright © 2020-2023  润新知