![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
spring
jack_zhs
这个作者很懒,什么都没留下…
展开
-
因为sprintboot配置文件的问题,springboot可以在idea运行,打成war包放到服务器,配置文件一直无法加载,困扰了一整天
可以看图片,最开始我的配置文件时自己创建的,就是自己new一个file,文件格式时yml,创建的文件就是第三种这种(名字当然是application.yml,这里是为了方便演示)。这种方式创建的配置文件就是可以在idea上面正常运行,打成war包放到服务器就报错了,报错如下:Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defin原创 2021-09-13 13:37:54 · 407 阅读 · 0 评论 -
Spring构造注入时参数异常Could not resolve matching constructor (hint: specify index/type/name arguments for s
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'student' defined in class path resource [ApplicationContext.xml]: Could not resolve matching constructor (hint: ...原创 2018-11-16 09:34:33 · 6772 阅读 · 0 评论 -
java.lang.ClassNotFoundException: org.eclipse.jdt.internal.compiler.env.INameEnvironment
最近使用IDEA使用springboot整合jsp时遇到一个错误java.lang.ClassNotFoundException: org.eclipse.jdt.internal.compiler.env.INameEnvironment at java.net.URLClassLoader.findClass(URLClassLoader.java:382) ~[na:1.8.0_20...原创 2019-02-26 11:36:54 · 3918 阅读 · 0 评论