![](https://img-blog.csdnimg.cn/20190412230409360.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
Spring全家桶
练习
Ryze丶
不积跬步无以至千里
展开
-
Spring工具类
你可能用到的Spring工具类?现在绝大部分项目都已经拥抱Spring生态,掌握Spring常用的工具类,是非常重要,零成本增加编码效率。常用工具类1.ObjectUtilsorg.springframework.util.ObjectUtils2.StringUtilsorg.springframework.util.StringUtils3.CollectionUtilsorg.springframework.util.CollectionUtils4.BeanUtilsorg.转载 2020-12-08 19:17:23 · 1691 阅读 · 0 评论 -
如何在服务停止后关闭Spring task executor/scheduler
转载自:How can I shutdown Spring task executor/scheduler pools before all other beans in the web app are destroyed?转载 2020-09-03 19:41:15 · 469 阅读 · 0 评论 -
@Repository与@Mapper
问题Service层注入Dao时, Intellij 总会以红色波浪线提示我们@Autowiredprivate UserDao userDao;Could not autowire. No beans of ‘UserDao’ type found.Checks autowiring problems in a bean class.尽管我们都知道 Dao 层的 Bean 实际上都是有的,并且可以设置关闭这恼人的提示,但是我们有没有想过为什么 Intellij 就找不到这个 Bean 呢?甚转载 2020-08-04 21:35:15 · 385 阅读 · 0 评论 -
SpringBoot注解大全
springBoot注解大全一、注解(annotations)列表@SpringBootApplication:包含了@ComponentScan、@Configuration和@EnableAutoConfiguration注解。其中@ComponentScan让spring Boot扫描到Configuration类并把它加入到程序上下文。@Configuration 等同于spring...转载 2019-12-30 16:44:24 · 183 阅读 · 0 评论 -
myBatis通过逗号分隔字符串,foreach
学习:https://www.wanpishe.top/detail?blogId=555f6b2a-cd80-4c55-8174-c96ac898ec9fhttps://blog.csdn.net/Satisfy_555/article/details/82759683https://www.cnblogs.com/sumlen/p/11130554.html原创 2019-12-17 17:56:09 · 567 阅读 · 0 评论 -
【spring boot】传递时间类型的字符串,报错:Failed to convert from type [java.lang.String] to type [java.util.Date]
spring boot 前台GET请求,传递时间类型的字符串,后台无法解析,报错:Failed to convert from type [java.lang.String] to type [java.util.Date]而POST请求,传入时间类型字符串,后台是可以解析成Date类型的。出现这个错误,在需要接受Date类型的字符串参数的controller层中,加入:@InitBinde...转载 2019-12-12 13:46:26 · 857 阅读 · 0 评论 -
Spring Boot学习一:入门
前言:Spring Boot 是由 Pivotal 团队提供的全新框架,其设计目的是用来简化新 Spring 应用的初始搭建以及开发过程,该框架使用了特定的方式来进行配置,从而使开发人员不再需要定义样板化的配置。Spring Boot 默认配置了很多框架的使用方式,就像 Maven 整合了所有的 Jar 包,Spring Boot 整合了所有的框架。它的核心设计思想是:约定优于配置,Spring...原创 2018-10-01 23:06:15 · 270 阅读 · 0 评论