Spring
文章平均质量分 56
weixin_41887312
这个作者很懒,什么都没留下…
展开
-
常用类属于哪些jar包
1.@requestmapping注解,属于org.springframework.web.bind.annotation包下。org.springframework.web jar包。2.@RestController注解,也属于org.springframework.web.bind.annotation包下,org.springframework.web jar包。都是spring mvc,...转载 2018-06-20 10:53:59 · 2210 阅读 · 0 评论 -
SpringBoot集成Redis实现缓存处理(Spring AOP技术)
第一章 需求分析计划在Team的开源项目里加入Redis实现缓存处理,因为业务功能已经实现了一部分,通过写Redis工具类,然后引用,改动量较大,而且不可以实现解耦合,所以想到了Spring框架的AOP(面向切面编程)。 开源项目:https://github.com/u014427391/jeeplatform 欢迎star(收藏)第二章 SpringBoot简介Spring框...转载 2018-07-25 14:35:01 · 232 阅读 · 0 评论 -
Failed to convert property value of type 'java.lang.String' to required type 'int' for property
junit + Spring 测试Service org.springframework.beans.TypeMismatchException: Failed to convert property value of type 'java.lang.String' to required type 'int' for property 'initialSize'; nested excep...原创 2018-08-02 11:36:05 · 3291 阅读 · 1 评论 -
Could not autowire field: private javax.servlet.http.HttpServletRequest
junit + Spring 测试Service报错信息[2018-08-02 14:08:16] main INFO pool.DruidDataSource: {dataSource-1} inited[2018-08-02 14:08:16] main INFO pool.DruidDataSource: {dataSource-2} inited[2018-08-02 1...原创 2018-08-02 14:15:12 · 1449 阅读 · 0 评论 -
【springboot+easypoi】一行代码搞定excel导入导出
我们不造轮子,只是轮子的搬运工。(其实最好是造轮子,造比别人好的轮子)开发中经常会遇到excel的处理,导入导出解析等等,java中比较流行的用poi,但是每次都要写大段工具类来搞定这事儿,此处推荐一个别人造好的轮子【easypoi】,下面介绍下“轮子”的使用。pom引入不再需要其他jar<dependency> <groupId>cn.aft...转载 2019-05-29 15:27:57 · 122 阅读 · 0 评论