Stella981 Stella981
3年前
Spring Security3源码分析
RememberMeAuthenticationFilter过滤器对应的类路径为org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter看主要的doFilter方法publicvoiddoFilter(Se
Stella981 Stella981
3年前
Spring boot jackson 时间格式问题
这个问题是具体表现是这样的:SpringbootApplication 直接使用IDEA运行没有任何问题,使用maven打包也不存在问题,但是在打包之后执行时一直提示出现错误。错误的信息大致如下:ErrorstartingApplicationContext.Todisplaytheautoconfiguration
Stella981 Stella981
3年前
RabbitMQ(3) Spring boot集成RabbitMQ
springboot集成RabbitMQ非常简单,如果只是简单的使用配置非常少,springboot提供了springbootstarteramqp项目对消息各种支持。资源代码:练习用的代码。https://github.com/xiaozhuanfeng?tabrepositories!(https://oscimg.oschina
Stella981 Stella981
3年前
Spring Cloud Eureka 全解 (1)
系列目录:SpringCloudEureka全解(1)总览篇(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fzhuanlan.zhihu.com%2Fp%2F34976125)SpringCloudEureka全解(2)整体流
Stella981 Stella981
3年前
SPring boot jpa 封装查询条件
最近使用springdatajpa做了两个项目,对于动态查询的不友好做了个类似hibernate的封装,记录也分享下首先定义一个所有条件的容器,继承SpecificationJava代码 !收藏代码(https://oscimg.oschina.net/oscnet/f586a237dd7f851c8610e4d68962662a7fc.
Stella981 Stella981
3年前
IDEA Spring MVC (Maven) 项目搭建
1、新建项目,选择MavenModule,输入项目名称,点击Next继续。注意这里的Module就是项目的意思,等同于MyEclipse中的Project。!(http://static.oschina.net/uploads/img/201604/14115223_QoaN.png)接着直接点击Finish即可。!(http://
Wesley13 Wesley13
3年前
activeMQ入门+spring boot整合activeMQ
最近想要学习MOM(消息中间件:MessageOrientedMiddleware),就从比较基础的activeMQ学起,rabbitMQ、zeroMQ、rocketMQ、Kafka等后续再去学习。上面说activeMQ是一种消息中间件,可是为什么要使用activeMQ?在没有使用JMS的时候,很多应用会出现同步通信(客户端发起请求后需要等待服务
Stella981 Stella981
3年前
Spring Cloud(Dalston.SR5)
在SpringCloud中可以使用注解的方式来支持Hystrix的合并请求,缓存与合并请求功能需要先初始化请求上下文才能实现,因此,必须实现javax.servlet.Filter用于创建和销毁Hystrix的请求上下文,合并请求的注解需要用到@HystrixCollapser和@HystrixCommand,示例如下:
Stella981 Stella981
3年前
Spring Boot配置文件详解
一、主配置文件SpringBoot默认主配置文件名为application.yml或者application.properties1.yml和properties1.1yml语法:key:空格value同一个层级的缩进tab或者空格必须相同
Stella981 Stella981
3年前
Spring MVC REST 风格的 URL
前言  本文主要内容为REST风格的URL。REST  REST(RepresentationalStateTransfer)。(资源)表现层状态转化。它是一种架构风格,用url来访问网络上的资源。  ●资源(Resources):网络上的一个实体,即网络上的一个具体的信息。比如一段文本、一张