摘要: maven-assembly-plugin jar-with-dependencies ... 阅读全文
posted @ 2017-10-20 10:14 Parasis 阅读(185) 评论(0) 推荐(0) 编辑
摘要: maven-assembly-plugin jar-with-dependencies ... 阅读全文
posted @ 2017-10-20 10:13 Parasis 阅读(235) 评论(0) 推荐(0) 编辑
摘要: 1.生成一个springboot mongodb项目 http://start.spring.io/ 2.解压生成的zip,在src/main/resources/application.properties配置mongodb的基本信息 3.创建一个POJO持久化对象 3.创建Repository 阅读全文
posted @ 2017-07-20 16:48 Parasis 阅读(18240) 评论(0) 推荐(0) 编辑
摘要: http://github.com/dingxiaobo/multi-view-resolver 分别用两个dispatcher分别解析jsp页面和thymeleaf页面 pom.xml src/main/resources/spring-jsp.xml src/main/resources/spr 阅读全文
posted @ 2017-07-14 21:19 Parasis 阅读(4697) 评论(0) 推荐(1) 编辑
摘要: 测试代码 阅读全文
posted @ 2017-06-08 11:17 Parasis 阅读(1609) 评论(0) 推荐(0) 编辑
摘要: 添加Request header 代码如下 如果发送的请求是JsonObjectRequest,那么此类继承自JsonObjectRequest。 测试代码: 1.服务端: 2.客户端: 运行结果 1.服务端: 2.客户端: 阅读全文
posted @ 2017-06-01 11:15 Parasis 阅读(4890) 评论(0) 推荐(0) 编辑
摘要: 在 application.properties 中加入以下配置 阅读全文
posted @ 2017-03-25 19:56 Parasis 阅读(20118) 评论(2) 推荐(1) 编辑
摘要: 本文只简单介绍精确匹配(sql中 'where ** = **')、字符串搜索(sql中'where ** like %name%')。 如果需要更多高级应用,可以参考spring jpa官方示例,传送门。 一.准备工作 1.创建一个标准的spring boot jpa程序,并配置数据库连接 pom 阅读全文
posted @ 2017-03-04 12:47 Parasis 阅读(3530) 评论(0) 推荐(1) 编辑
摘要: Spring Boot 默认最大request size 为10MB(1048576 bytes)。 需要设置以下两个参数 multipart.maxFileSizemultipart.maxRequestSize Spring Boot 1.3.x或者之前 Spring Boot 1.4.x或者之 阅读全文
posted @ 2017-02-21 09:15 Parasis 阅读(25120) 评论(1) 推荐(0) 编辑
摘要: 本例子是使用HandlerMethodArgumentResolver方便的获取session中的内容。 SessionInfo.java 在session中存储用户数据 SessionInfoArgumentResolver.java HandlerMethodArgumentResolver 的 阅读全文
posted @ 2017-02-11 14:03 Parasis 阅读(10589) 评论(0) 推荐(0) 编辑