项目打包部署时错误

来源:13-13 项目的打包与部署

辰木Cc

2020-03-19

我的转成springboot框架后项目可以正常启动和访问,但是一旦打包过后访问就404
war包启动过程报了一个错误不理解(没打包前项目一切正常啊),已经好几天没解决了,老师帮忙看看吧图片描述

写回答

1回答

翔仔

2020-03-20

同学好,估计是打包的方式不对?pom里面有没有改成war,并且同学启动不是放到tomcat下去启动的吧?视频里面切换成springboot之后,都是通过java -jar 来启动的呢

0
4
辰木Cc
老师确定了,不缺少文件,还是打包运行后出错 Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2020-03-23 20:031:50.916 [main] ERROR org.springframework.boot.SpringApplication-Application run failed org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'productManagementController': Unsatisfied dependency expressed through field 'productService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'productServiceImpl': Unsatisfied dependency expressed through field 'productDao'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyExce
2020-03-23
共4条回复

Java双版本(SSM到SpringBoot)校园商铺全栈开发

SSM商铺V1.0,解决毕设痛点;SpringBoot商铺V2.0,满足工作刚需

5113 学习 · 8144 问题

查看课程