CPU架构
2020年04月04日 system

CPU缓存多核处理器:将多个CPU(称为”核”)集成到一个集成电路芯片上。Intel Core i5-2520M (PGA) specificationsLevel 1 cache size 2 x 32 KB 8-way set associative instruction caches 2 x 32 KB 8-way set associative data cachesLevel 2 cache size 2 x 256 KB 8-way set associative ca...

Spring 事件
2020年04月04日 spring

http://localhost:9000/oauth2/authorize?response_type=code&client_id=oidc-client&scope=message.read%20openid&redirect_uri=http://www.baidu.com https://docs.spring.io/spring-authorization-server/docs/current/reference/html/

spring spring-boot
阅读全文

HandlerMethodArgumentResolver通过扩展HandlerMethodArgumentResolver的方式,实现参数的自定义解析。public class CustomResolver implements HandlerMethodArgumentResolver { @Override public boolean supportsParameter(MethodParameter parameter) { return paramet...

spring spring-boot
阅读全文
Spring 事件
2020年04月04日 spring

ApplicationListener// META-INF/spring.factoriesorg.springframework.context.ApplicationListener=<class implements ApplicationListener>SpringApplicationRunListener// META-INF/spring.factoriesorg.springframework.boot.SpringApplicationRunListene...

spring spring-boot
阅读全文

Spring Bean 生命周期应用场景缓存预热为什么要关注Spring Bean的创建和销毁流程,最常见的一个应用场景是服务的缓存预热,通常是放在Bean的初始化阶段。线上就因为对初始化的流程理解存不够深入,预热的代码存在BUG,导致数据预热完成之前,已经开始监听端口接收流量导致的线上故障。Bean初始化/销毁方式 init-method/destroy-method InitializingBean/DisposableBean @PostConstruct/@PreDestro...

spring spring-boot
阅读全文
安全
2020年04月04日 security

XSS(跨站脚本攻击)利用网页开发时留下的漏洞,将恶意指令代码注入到网页,使用户加载并执行攻击者恶意制造的网页程序。反射式XSS反射式XSS(非存储式XSS),诱骗用户点击URL带攻击代码的链接,服务器解析后响应,在返回的响应内容中隐藏和嵌入攻击者的XSS代码。用户访问安全网站时,Web客户端使用Server端脚本生成页面为用户提供数据时,如果未经验证的用户数据被包含在页面中而未经HTML实体编码,客户端代码便能够注入到动态页面中。攻击过程 Alice经常浏览某个网站,此网站为Bob所拥...

xss csrf sql-injection
阅读全文