MappingJackson2HttpMessageConverter配置导致声明式事务不启动
来源:互联网 发布:编程培训周末班 编辑:程序博客网 时间:2024/06/05 07:46
今天在处理SpringMVC日期传递问题时,找到一个解决方案,即在spring-mvc.xml中添加一下内容来处理日期输出格式问题:
<mvc:annotation-driven validator="validator">
<!-- 处理responseBody 里面日期类型 ,避免返回long类型--><mvc:message-converters>
<bean class="org.springframework.http.converter.json.MappingJackson2HttpMessageConverter">
<property name="objectMapper">
<bean class="com.fasterxml.jackson.databind.ObjectMapper">
<property name="dateFormat">
<bean class="java.text.SimpleDateFormat">
<constructor-arg type="java.lang.String" value="yyyy-MM-dd HH:mm:ss" />
</bean>
</property>
</bean>
</property>
</bean>
</mvc:message-converters>
</mvc:annotation-driven>
结果:日期格式得到了控制,但此配置却导致spring的声明式事务不启动,原因尚未查明,记录下现象以免再次遇到
0 0
- MappingJackson2HttpMessageConverter配置导致声明式事务不启动
- spring 配置声明式事务
- spring声明式事务配置
- spring声明式事务配置
- spirng声明式事务配置
- spring声明式事务配置
- Spring3配置声明式事务
- spring声明式事务配置
- spring声明式事务配置
- sping配置声明式事务
- Spring配置声明式事务
- spring 声明式事务各种配置解析
- spring 声明式事务配置简洁法
- Spring结合Hibernate声明式事务配置
- Spring注解声明式事务配置
- Spring使用TransactionProxyFactoryBean声明式事务配置
- 配置Spring2.0声明式事务
- Spring 的声明式事务配置
- Hive格式各种格式下不同压缩算法的比较
- SQL常用的内置函数
- cocoapods repo切换至镜像
- Spark学习笔记
- ZStack 修改云主机模板
- MappingJackson2HttpMessageConverter配置导致声明式事务不启动
- 21-软件安装-原始码与Tarball
- java Stack类使用
- SFTP搭建
- js将网页中的table中的数据导入到excel中方法
- Tomcat 的三种(bio,nio.apr) 高级 Connector 运行模式
- 东京笔记-博客没更新原因和工作生活分享
- android 关于WebView点击图片展示大图
- Android 中的 adapter