解决eclipse卡在Initializing Spring root WebApplicationContext

项目框架:SSM

异常:

在eclipse中用maven build 启动项目卡在Initializing Spring root WebApplicationContext

且javaw.exe进程占用内存急剧增加

解决:

在我这个项目中原来是Mapper.xml文件中把实体的类名路径写错误导致,修改成正确路径即可解决


Standard Commons Logging discovery in action with spring-jcl: please remove commons-logging.jar from classpath in order to avoid potential conflicts . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/  :: Spring Boot ::   (v3.5.3) 07-28 17:36:29 INFO StartupInfoLogger.java:53 Starting Mb3Application using Java 21.0.7 with PID 16460 (D:\Eclipse\mb3\target\classes started by Administrator in D:\Eclipse\mb3) 07-28 17:36:29 INFO SpringApplication.java:652 No active profile set, falling back to 1 default profile: "default" 07-28 17:36:30 INFO TomcatWebServer.java:111 Tomcat initialized with port 80 (http) 07-28 17:36:30 INFO DirectJDKLog.java:168 Starting service [Tomcat] 07-28 17:36:30 INFO DirectJDKLog.java:168 Starting Servlet engine: [Apache Tomcat/10.1.42] 07-28 17:36:30 INFO DirectJDKLog.java:168 Initializing Spring embedded WebApplicationContext 07-28 17:36:30 INFO ServletWebServerApplicationContext.java:301 Root WebApplicationContext: initialization completed in 798 ms Standard Commons Logging discovery in action with spring-jcl: please remove commons-logging.jar from classpath in order to avoid potential conflicts 07-28 17:36:31 INFO DruidDataSource.java:1002 {dataSource-1} inited 07-28 17:36:31 INFO AbstractImageCaptchaGenerator.java:67 图片验证码[SpringMultiImageCaptchaGenerator]初始化... 07-28 17:36:31 INFO OptionalValidatorFactoryBean.java:48 Failed to set up a Bean Validation provider: jakarta.validation.NoProviderFoundException: Unable to create a Configuration, because no Jakarta Bean Validation provider could be found. Add a provider like Hibernate Validator (RI) to your classpath. 07-28 17:36:31 WARN ThymeleafAutoConfiguration.java:102 Cannot find template location: classpath:/templates/page/ (please add some templates, check your Thymeleaf configuration, or set spring.thymeleaf.check-template-location=false) 07-28 17:36:31 INFO TomcatWebServer.java:243 Tomcat started on port 80 (http) with context path '/' 07-28 17:36:31 INFO StartupInfoLogger.java:59 Started Mb3Application in 1.924 seconds (process running for 2.431)
最新发布
07-29
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值