![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Spring
渡舟人
这个作者很懒,什么都没留下…
展开
-
Spring @Profile注解
If a @Configuration class is marked with @Profile, all of the @Bean methods and @Import annotations associated with that class will be bypassed unless one or more of the specified profiles are active. If a @Component or @Configuration class is marked with翻译 2020-12-18 16:00:29 · 367 阅读 · 0 评论 -
Spring Web Media Types
Consumable Media TypesYou can narrow the primary mapping by specifying a list of consumable media types. The request will be matched only if the Content-Type request header matches the specified media type. For example:可以通过指定一个media type的列表来限制http请求的Con翻译 2020-12-18 15:45:10 · 375 阅读 · 0 评论 -
FastJson升级踩坑记
事因前段时间网上爆出FastJson漏洞后就接到公司安全部门硬性通知的全司升级,要求所有的fastjson升级到1.2.73版本,并且在发布系统进行jar包版本拦截,低于这个版本不让发布。这招比较狠!于是开启了升级之路。大家都想到了升级可能会有风险,都比较忐忑,但事还得做。发现问题幸运的是升级了好几个服务都顺利升级了,还挺开心的,觉得不用担心了。剩下最后一个老服务升级了。这天和其他服务升级一样也没有太担心,正常上线了一台机器。本来不想看日志检测是否有问题的,过了会觉得还是看看比较放心点。打开日志系统后原创 2020-12-18 14:57:39 · 3039 阅读 · 0 评论 -
Spring AOP实现原理(1)-AOP如何实现切入代码
Spring AOP实现原理1、请问如下代码在配置完全正常的情况下控制台会输出哪些内容? 输出的顺序是什么?简单业务代码public interface UserService { void save(); void saveContacts();}@Servicepublic class UserServiceImpl impl...原创 2020-12-07 16:36:46 · 233 阅读 · 0 评论