加载中
Jrebel 配置

Jrebel 配置 修改rebel.xml /Users/<用户名>/Documents/mygit/work/aa/bb.war/src/main/resources/rebel.xml 内容:...

2018/11/30 20:41
3.3K
注入或获取spring上下文的几种方式

方式一:通过ApplicationContextAware 注入 package com.girltest.web.controller.common; import org.springframework.beans.BeansException; import org.springframework.context.Applicat...

2018/11/30 20:21
1W
解决过滤器中设置cookie无效的问题

解决过滤器中设置cookie无效的问题 代码现场 filterChain.doFilter(sessionSyncRequestWrapper, response); Cookie emailCook = WebServletUtil.getSelectedCookie(request.getCookies(), C...

2018/10/21 17:22
7.5K
实现服务启动之后,马上执行任务的几种方法

有哪些方法 实现服务启动之后,马上执行相关操作? 方式一 :@PostConstruct 对类的要求 无,普通的java bean即可 例如: /*** * 执行完构造方法之后就会执行该方法 */ @PostConstruct public voi...

springboot集成mybatis

springboot集成mybatis application.yml 从哪里找到这些配置项: springboot 自己的配置项 https://docs.spring.io/spring-boot/docs/current/reference/html/common-application-properties...

spring cloud RestTemplate消费者使用Hystrix进行容错和服务降级

spring cloud RestTemplate消费者使用Hystrix进行容错和服务降级 (1)消费者如下 @RestController public class DcController { @Autowired ConsumerService consumerService; ...

zuul网关使用过滤器

参考:https://github.com/dyc87112/SpringCloud-Learning.git

[转]使用zuul实现类似nginx的路由和负载均衡功能

参考 :https://github.com/dyc87112/SpringCloud-Learning.git 项目代码也来自 https://github.com/dyc87112/SpringCloud-Learning.git...

SpringMVC 使用stub层

有时为了满足前端的调试,我们后端会使用stub模拟假数据.

使用邮件预警程序bug

我们在程序中增加异常拦截器,出现代码异常时自动发送邮件,就能及时解决bug

web 跨域传递cookie

1,服务器端要支持跨域 response.setHeader("Access-Control-Allow-Origin", "http://localhost:8080"); response.setHeader("Access-Control-Allow-Methods", "POST, GET, OPTIONS, DELETE,P...

2017/10/20 11:03
2.1K

没有更多内容

加载失败,请刷新页面

没有更多内容

返回顶部
顶部