- 常用富文本编译器集合
- 常用图表插件
- 常用字体插件
- 验证码
- element
- jwt
- 跨域--origin请求头
- 非Controller层通过RequestContextHolder.getRequestAttributes()获取HttpServletRequest,HttpServletResponse
- 拦截器HandlerInterceptorAdapter使用方法
- 设置拦截器为false时返回的Body
- @ControllerAdvice 的介绍及三种用法
- Naocs: Error creating bean with name ‘configurationPropertiesBeans‘ defined in class path resource异常分析
- RedisTemplate操作Redis
- Redis设置密码登录
常用富文本编译器集合
1.UEditor
UEditor
2.wangEditor
wangEditor
3.summernote
summernote
常用图表插件
ECharts
ECharts
常用字体插件
fontawesome
fontawesome
验证码
kaptcha
kaptcha
element
Element
jwt
SpringBoot2.0 - 集成JWT实现token验证
玩转 SpringBoot 2 之整合 JWT 上篇
SpringBoot整合JWT
【SpringBoot】四十四、SpringBoot中整合JWT实现Token验证(整合篇)
【SpringBoot】四十五、SpringBoot中整合JWT实现Token验证(注解篇)
跨域–origin请求头
referrer:
通过window.location.href获取地址附加到referrer中,以防止盗链接,防止恶意请求
Origin:
有referrer功能,针对跨域操作,标准浏览器只要是跨域就会携带此请求头字段, 如果后台允许此字段的地址,则正常请求,如果不允许,浏览器就会abort,不产生事件,就好像没有请求过,network也看不到
HTTP Headers 之 Origin跨域访问一定要加上这个header
非Controller层通过RequestContextHolder.getRequestAttributes()获取HttpServletRequest,HttpServletResponse
@Component
public class SpringContextUtils implements ApplicationContextAware {
private static ApplicationContext applicationContext;
@Override
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
SpringContextUtils.applicationContext = applicationContext;
}
public static ApplicationContext getApplicationContext() {
return applicationContext;
}
public static HttpServletRequest getHttpServletRequest() {
return ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest();
}
//获取域名
public static String getDomain() {
HttpServletRequest request = getHttpServletRequest();
StringBuffer url = request.getRequestURL();
return url.delete(url.length() - request.getRequestURI().length(), url.length()).toString();
}
//是否为跨域请求
public static String getOrigin() {
HttpServletRequest request = getHttpServletRequest();
return request.getHeader("Origin");
}
}
非Controller层通过RequestContextHolder.getRequestAttributes()获取HttpServletRequest,HttpServletRespon空指针问题
拦截器HandlerInterceptorAdapter使用方法
拦截器HandlerInterceptorAdapter使用方法
设置拦截器为false时返回的Body
Spring Boot笔记-设置拦截器为false时返回的Body
springboot拦截器处理返回false请求
@ControllerAdvice 的介绍及三种用法
@ControllerAdvice 的介绍及三种用法
Naocs: Error creating bean with name ‘configurationPropertiesBeans‘ defined in class path resource异常分析
Error creating bean with name ‘configurationPropertiesBeans‘ defined in class path resource异常分析
RedisTemplate操作Redis
redistemplate用法
Redis设置密码登录
redis如何设置密码
Redis配置密码及登录
#Redis服务器地址 spring.redis.host=101.132.74.181 #Redis服务器连接端口 spring.redis.port=6379 #Redis数据库索引(默认为0) spring.redis.database= 0 #连接超时时间(毫秒) spring.redis.timeout=1800000 #连接池最大连接数(使用负值表示没有限制) spring.redis.lettuce.pool.max-active=20 #最大阻塞等待时间(负数表示没限制) spring.redis.lettuce.pool.max-wait=-1 #连接池中的最大空闲连接 spring.redis.lettuce.pool.max-idle=5 #连接池中的最小空闲连接 spring.redis.lettuce.pool.min-idle=0 #redis连接的密码 spring.redis.password=126433zdh



