Easter79 Easter79
4年前
springboot与安全
概念:安全SpringSecurity是针对Spring项目的安全框架,也是SpringBoot底层安全模块默认的技术选型。他可以实现强大的web安全控制。对于安全控制,我们仅需引入springbootstartersecurity模块,进行少量的配置,即可实现强大的安全管理。几个类:    WebSec
Easter79 Easter79
4年前
spring解决循环依赖为什么要用三级缓存?
关注“苏三说技术”,回复:开发手册、时间管理有惊喜。也许有些朋友对spring的循环依赖问题并不了解,让我们先一起看看这个例子。@Service@Service@RequestMapping("/test")@SpringBootApplication我们在运行Ap
Stella981 Stella981
4年前
SpringBoot整合Sqlite数据库流程
1.创建项目  方式一:通过网站https://start.spring.io/  方式二:通过开发工具(IDEA或者Eclipse自行百度)2.修改pom.xml配置文件,添加必要的驱动包<?xmlversion"1.0"encoding"UTF8"?<projectxmlns"ht
Easter79 Easter79
4年前
SpringFramework之RequestBodyAdvice的使用
  Spring版本5.1.4.release.  前一篇(https://my.oschina.net/u/2518341/blog/4329778)讲了RequestBodyAdvice的实现  有人用RequestBodyAdvice来做参数的解密(前端传过来的是加密的),或者使用RequestBodyAdvice进行全局统一返
Easter79 Easter79
4年前
SpringCloud consul 微服务(注册到主机名的问题)
目前项目在使用consul做服务注册与发现,做SpringSecurityOAuth2权限认证的authorization\_code模式的时候发现一个异常坑爹的问题这是开始的服务注册代码块bootstrap.yml:spring:cloud:consul:port:8500
Wesley13 Wesley13
4年前
JavaWeb学习总结(四十八)——模拟Servlet3.0使用注解的方式配置Servlet
一、Servlet的传统配置方式  在JavaWeb开发中,每次编写一个Servlet都需要在web.xml文件中进行配置,如下所示:1<servlet2<servletnameActionServlet</servletname3<servletcla
Easter79 Easter79
4年前
SpringBoot2.x搭建Eureka
1说明1.全部配置基于1.8.0_1112.当前SpringBoot使用2.0.52创建项目在SpringBoot项目生成器(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fstart.spring.io%2F)中,输入Grou
Stella981 Stella981
4年前
Spring MVC 解读——@RequestMapping (1)
SpringMVC解读——@RequestMapping    为了降低文章篇幅,使得文章更目标化,简洁化,我们就不例举各种@RequestMapping的用法等内容了.文章主要说明以下问题:1.Spring怎样处理@RequestMapping(怎样将请求路径映射到控制器类
Stella981 Stella981
4年前
Spring Cloud Eureka 全解 (2)
本文基于SpringCloudDalston.SR5(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fcloud.spring.io%2Fspringcloudstatic%2FDalston.SR5%2F)之前我们看过这个整体流程图:!image(https://note