![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
spring
Vilen7
focus on the star and you will be the star
展开
-
spring的bean.xml文件p标签使用报错
The prefix "p" for attribute "p:某属性" associated with an element type "bean" is not bound.某元素属性未捆绑,需要在<beans>里面添加一行约束xmlns:p="http://www.springframework.org/schema/p"...原创 2018-05-30 11:26:54 · 1638 阅读 · 0 评论 -
Unexpected exception parsing XML document from class path resource
运行报错Unexpected exception parsing XML document from class path resource,是因为使用spring注解装配bean需要导入spring-aop-4.0.0.RELEASE.jar包原创 2018-05-30 17:45:01 · 2802 阅读 · 0 评论 -
类添加注解@RequestMapping报错HTTP Status 404
为类添加了@RequestMapping注解后,运行报错404,路径不对,找了半天才发现原来是我的视图解析器的前缀没有写正确在WEB-INF前面少加了一个/,加上之后运行ok...原创 2018-06-06 14:49:37 · 3052 阅读 · 1 评论 -
java.lang.ClassCastException: com.sun.proxy.$Proxy7 cannot be cast to com
写spring切面方法运行后报错Exception in thread "main" java.lang.ClassCastException: com.sun.proxy.$Proxy7 cannot be cast to com.wwn.spring.mylove.CalculatorImpl错误显示类转换异常:我的代码是写了一个Calculator接口定义了一个add方法,然后写了一个Cal...原创 2018-05-31 15:05:29 · 2053 阅读 · 1 评论 -
eclipse中下了spring插件,新建spring的xml文件仍然无命名空间
我在eclipse中安装了spring的插件,但是在新建spring bean configuration file的时候发现选择命名空间的地方时空白的 其实只需要在Window→Preferences→Spring→Beans Support→Namespace中 将图中箭头指向的勾去掉就可以了。 去掉勾后效果如下: ...原创 2018-09-04 14:53:16 · 2930 阅读 · 4 评论