![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
SpringMVC
Firend丶
这个作者很懒,什么都没留下…
展开
-
Spring5集成log4j2
之前配置log4j错误,一直报错ERROR StatusLogger No log4j2 configuration file found. Using default configuration查了许多总算配置成功了。记录1,添加maven依赖 org.apache.logging.log4j log4j-core 2.7原创 2017-12-11 14:31:37 · 6407 阅读 · 0 评论 -
@RequestBody不能映射到对象
1,在配置SpringMVC的时候在配置文件中配置了mvc:annotation-driven>但是在前后端交互的时候传输JSON在controller中接受参数的时候不能映射到对象中script type="text/javascript"> $(document).ready(function(){ $('#submitForm').click(fu原创 2017-12-08 10:48:34 · 8458 阅读 · 0 评论 -
<mvc:annotation-driven />
是一种简写形式,完全可以手动配置替代这种简写形式,简写形式可以让初学都快速应用默认配置方案。 会自动注册DefaultAnnotationHandlerMapping与AnnotationMethodHandlerAdapter 两个bean,是spring MVC为@Controllers分发请求所必须的。并提供了:数据绑定支持,@NumberFormatannotation支持,@Date转载 2017-12-07 14:10:54 · 231 阅读 · 0 评论