下载源码后,idea运行报错

下载源码后,idea运行报错

\Git源码\阶段一(第1-5周):单体架构源码及相关配套资料\architect-stage-1-monolith\第1阶段单体架构\天天吃货后端源码

下载该目录源码后,改了数据库密码,Tomcat打war的配置也还原了,idea运行报错:

INFO  Application:679 - The following profiles are active: dev

WARN  ClassPathMapperScanner:44 - No MyBatis mapper was found in '[com.imooc]' package. Please check your configuration.

INFO  PostProcessorRegistrationDelegate$BeanPostProcessorChecker:330 - Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$f873366c] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

WARN  AnnotationConfigServletWebServerApplicationContext:557 - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.context.ApplicationContextException: Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean.

ERROR SpringApplication:858 - Application run failed

org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.context.ApplicationContextException: Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean.

at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:157)

at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543)

at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:142)

at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:775)

at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397)

at org.springframework.boot.SpringApplication.run(SpringApplication.java:316)

at org.springframework.boot.SpringApplication.run(SpringApplication.java:1260)

at org.springframework.boot.SpringApplication.run(SpringApplication.java:1248)

at com.imooc.Application.main(Application.java:19)

Caused by: org.springframework.context.ApplicationContextException: Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean.

at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.getWebServerFactory(ServletWebServerApplicationContext.java:206)

at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.createWebServer(ServletWebServerApplicationContext.java:180)

at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:154)

... 8 more


正在回答 回答被采纳积分+1

登陆购买课程后可参与讨论,去登陆

1回答
风间影月 2020-07-31 16:48:45

源码无法直接运行。请跟着视频做吧~~

  • 提问者 慕粉1828186427 #1
    源码可以打包成功部署在Tomcat上,直接在idea运行的话,需要再修改什么配置吗
    2020-07-31 17:03:00
  • 风间影月 回复 提问者 慕粉1828186427 #2
    部署成功不代表可以直接运行,数据库,图片服务,中间件等都需要配置。这并不是一个j2se直接右键就能运行的哈。请跟着视频做吧?
    2020-07-31 17:05:35
  • 老师好  请问有没有可以直接运行的代码。我想跟着视频看,系统学习下,增删改查之类的写了太多了,而且初期的代码很简单,现在重新弄要浪费很多时间

    2021-06-21 15:16:03
问题已解决,确定采纳
还有疑问,暂不采纳

恭喜解决一个难题,获得1积分~

来为老师/同学的回答评分吧

0 星
请稍等 ...
意见反馈 帮助中心 APP下载
官方微信

在线咨询

领取优惠

免费试听

领取大纲

扫描二维码,添加
你的专属老师