spring
文章平均质量分 56
huijiangpang
这个作者很懒,什么都没留下…
展开
-
spring mvc rest webservice 在jboss 下 406 错误的解决方法
开发环境 IDE: Intellij jdk:1.6 spring 4.1.2 jackson 1.9.7 jettyservlet.xmlVersion:0.9StartHTML:-1EndHTML:-1StartFragment:0000000111EndFragment:0000003256 mvc:annotation-d原创 2015-01-12 09:47:36 · 476 阅读 · 0 评论 -
intellij + gradle + jetty + spring mvc step by step - 2
1. 添加WEB-INF web.xml version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee h原创 2016-05-19 11:01:31 · 821 阅读 · 0 评论 -
intellij + gradle + jetty + spring mvc step by step - 1
1.下图中需要把web 也选中,这样生成的工程会自带web module2. 输入包名3. 4. 添加依赖5. 编译 gradle build6. 启动jetty gradle jR原创 2016-05-18 14:25:17 · 1060 阅读 · 0 评论 -
idea + gradle + jetty 进行debug 设置
idea + gradle + jetty 进行debug 设置原创 2016-05-27 15:03:24 · 5117 阅读 · 0 评论 -
spring mvc message-convert
mark 个地址:http://www.chawenti.com/articles/23596.html 注意顺序?转载 2015-06-30 14:55:33 · 815 阅读 · 0 评论 -
jdbctemplate batchupdate 的事务管理
良好的心态是不断前进的 - 献给不再年轻的自己数据库:sqlserver 2014事务管理方式:编程式事务管理数据库访问:spring jdbctemplate目的:测试batchupdate 的事务控制1. 不加显式的事务管理 测试结果:batchupdate 中的每一条记录都会自动的commit,如果有异常,则只有异常的数据执行失败,其他数据不原创 2015-03-31 15:36:13 · 10739 阅读 · 4 评论 -
spring aop 简单介绍
忘记文章出自何处了,在此向原作者致敬1. 首先介绍一下AOP 的概念 AOP(aspect original programming) 面向切面编程 OOP (面型对象编程)是从静态角度考虑程序的结构,AOP (面向切面编程) 是从动态角度考虑程序的运行过程 术语解释: what when how (WWH) what:哪些转载 2015-03-30 21:14:02 · 549 阅读 · 0 评论 -
为何要设置数据库连接池的 超时等待时间
先说问题背景:程序有多线程调用,有大量的数据库交互遇到的问题:程序运行一段时间之后hung 住了,没有异常抛出,也不继续执行因为有多线程调用,因此无法快速准确的定位问题:是线程问题还是其他代码逻辑问题后来发现是数据库连接的问题:由于有段代码数据库连接没有释放,导致数据库连接池的连接被占满,后续的申请持续等待定位问题过程:(1) 加上了数据库连接池超时等待时间原创 2015-03-30 16:13:59 · 6624 阅读 · 1 评论 -
使用 Wiser 进行mail 单体测试
import org.junit.After;import org.junit.Before;import org.junit.Test;import org.junit.runner.RunWith;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.原创 2015-02-27 14:28:58 · 1216 阅读 · 0 评论 -
spring boot + html 页面
springboot + html 项目报错:javax.servlet.ServletException: Circular view path [readingList]: would dispatch back to the current handler URL [/book/readingList] again. Check your ViewResolver setup!原创 2017-03-10 10:59:53 · 4716 阅读 · 0 评论