
sbring
lileLife
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
spring boot多模块引用,bean注入问题:A component required a bean of type 'utils.JwtTokenUtil' that could not b
今天重构了下代码,模块拆分后,项目启动失败:Description:A component required a bean of type 'utils.JwtTokenUtil' that could not be found.Action:Consider defining a bean of type 'utils.JwtTokenUtil' in your config...原创 2020-02-16 17:43:52 · 7265 阅读 · 0 评论 -
Spring Security 小记
前面介绍了jwt的使用,联合WebMvcConfigurer 并自定义过滤器进行token认证https://blog.youkuaiyun.com/lileLife/article/details/104248049。现在想使用spring security结合jwt进行认证和授权。spring security 企业应用级别的安全框架, 核心功能是用户认证Authentication和用户授...原创 2020-02-15 10:23:43 · 285 阅读 · 0 评论 -
controller返回包装成DynamicResponse后,结果显示null
再用debug模式调试时候,对象是有值的,但是到controller返回后,就是为{} 。而且使用logger.info(JSONObject.toJSONString(dynamicResponse)); 打印出的也是{} 。最后发现是定义DynamicResponse 类的变量没有定义getter setter方法。导致在tostring时候提取get时候没有值.我的是...原创 2019-12-17 10:40:06 · 355 阅读 · 0 评论