
SpringMVC+mybatis
binlixia
这个作者很懒,什么都没留下…
展开
-
SpringMvc+mybatis手动开启和提交事务
//获取Spring容器的对象 WebApplicationContext contextLoader = ContextLoader.getCurrentWebApplicationContext(); //设置属性的默认属性 DefaultTransactionDefinition definition = new DefaultTrans原创 2016-01-10 10:32:17 · 18011 阅读 · 1 评论 -
SpringMVC get请求乱码(Tomcat服务器)
在使用get请求的时候,我们得参数如果有中文将会出现乱码的情况; 以下是解决该问题的步骤; (1)在项目的web.xml添加以下过滤器: characterEncoding org.springframework.web.filter.CharacterEncodingFilter encoding翻译 2016-05-12 13:58:54 · 628 阅读 · 0 评论