随笔分类 -  Spring Boot

摘要:【Spring Boot】启动时执行:CommandLineRunner、ApplicationRunner 和 ApplicationListener 阅读全文
posted @ 2022-01-21 11:27 翠微 编辑
摘要:【Spring Boot】Filter 1、自动扫描 2、手动配置 3、@WebFilter 注解 4、跨域过滤器 1、自动扫描 定义Filter @Slf4j @WebFilter(filterName = "authFilter", urlPatterns = {"/*"}) @Order(1) 阅读全文
posted @ 2020-10-10 14:52 翠微 编辑
摘要:【Spring Boot】Spring Security登陆异常出路 Security 配置 package cn.young.greenhome.config; import cn.young.greenhome.module.auth.UserDetailsServiceImpl; import 阅读全文
posted @ 2020-02-13 20:18 翠微 编辑
摘要:a frame because it set 'X-Frame-Options' to 'deny' 在spring security配置的位置添加 http.headers().frameOptions().disable(); protected void configure(HttpSecur 阅读全文
posted @ 2020-02-08 17:05 翠微 编辑
摘要:【Spring Boot】整合MyBatis 配置 server: port: 9915 # 数据库 相关设置 spring: datasource: driver-class-name: com.mysql.cj.jdbc.Driver url: jdbc:mysql://mysql.ycx:33 阅读全文
posted @ 2020-01-30 12:10 翠微 编辑
摘要:【Spring Boot】定时任务 测试用业务Service package com.example.schedule.service; import org.springframework.stereotype.Service; @Service public class UserService 阅读全文
posted @ 2019-06-10 16:05 翠微 编辑
摘要:【Spring Boot】配置信息 1、feign 超时配置 2、上传文件大小控制 3、Jackson的配置 4、@Value 注解 5、日志配置 1、feign 超时配置 feign: client: config: default: connect-timeout: 600000 read-ti 阅读全文
posted @ 2019-05-23 23:04 翠微 编辑

点击右上角即可分享
微信分享提示