启动报错如下:
rg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'scheduleJobController' defined in file [/Users/zhouxiongxin/Desktop/21312312/stressTestSystem/target/classes/io/renren/modules/job/controller/ScheduleJobController.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [io.renren.modules.job.controller.ScheduleJobController]: Constructor threw exception; nested exception is java.lang.IllegalStateException: java.io.FileNotFoundException: class path resource [application.yml] cannot be opened because it does not exist
解决方法:
maven里选择clean+install,然后运行正常。
运行一段时间好像还是会出现,win下好像没出现。
clean+package,然后去target里运行java -jar renren-fast.jar跑项目就没事。
直接代码运行,好像mapper里的所有Dao.xml隔一段时间会更新一个,然后就会出上面的问题,导致重新运行项目还是无法拉起。
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
登录 后才可以发表评论