
spring注解
Small_StarOne
小菜狗一枚
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
‘defaultSockJsTaskScheduler‘ is expected to be of type ‘org.springframework.scheduling.TaskScheduler
使用spring boot使用定时器@Scheduled启动失败 异常信息: org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named 'defaultSockJsTaskScheduler' is expected to be of type 'org.springframework.scheduling.TaskScheduler' but was actually of type 'org.springfr原创 2020-08-03 16:31:01 · 1183 阅读 · 0 评论 -
Spring中的@AliasFor标签的用途
在Spring的众多注解中,经常会发现很多注解的不同属性起着相同的作用,比如@RequestMapping的value属性和path属性,这就需要做一些基本的限制,比如value和path的值不能冲突,比如任意设置value或者设置path属性的值,都能够通过另一个属性来获取值等等。为了统一处理这些情况,Spring创建了@AliasFor标签。 使用 @AliasFor标签有几种使用方式。 1,...转载 2019-11-01 09:48:31 · 1123 阅读 · 0 评论