![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
springboot
月明星稀灬
程序猿
展开
-
限流组件--SentinelWebAutoConfiguration循环依赖问题
限流组件循环依赖问题原创 2022-10-15 15:10:14 · 2402 阅读 · 1 评论 -
SpringBoot-JSON请求转对象
长话短说,有以下要点:1.请求参数格式必须是正确的JSON。2.在入参中使用注解@RequestBody,用于接收JSON参数,使其自动转对象3.关于lombok在此产生的一点小坑,@Builder对@RequestBody的影响4.标识请求参数的格式为JSON---》》@PostMapping(value="/Test",produces = "application/json;...原创 2018-08-11 17:06:53 · 9176 阅读 · 0 评论 -
Springboot配置Swagger
配置起来比较简单,因为一个404的坑,让我感觉有理由记一下1.pom.xml依赖如下: <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger-ui</artifactId> <versi...原创 2018-08-07 11:58:12 · 487 阅读 · 0 评论 -
SpringBoot-RestTemplate配置
由于经常需要调用restful接口,特此记一下1.配置实现类@Configurationpublic class RestTemplateConfig { @Bean public RestTemplate restTemplate(ClientHttpRequestFactory factory){ return new RestTemplate(f...原创 2018-08-27 10:47:52 · 8147 阅读 · 0 评论 -
SpringBoot+Spark1.6+双数据源框架搭建
遇到大量的数据分析需求,所以趁势扑向大数据框架,一直以来大数据这块几乎零接触,仅仅有自学一下scale,很兴奋啊。原创 2019-06-24 13:21:10 · 1194 阅读 · 0 评论 -
springboot打war包,启动之后filter中无法@Autowired
现象:springboot项目打成war包放在tomcat服务器启动,启动之后在 controller层@Autowired可以注入bean,而在filter中使用到的@Autowired,并未生效原因分析:1.打包之时没有忽略SpringBoot中集成的tomcat包,既然打war包放到tomcat中去跑,那组件就应该用tomcat服务器的2.war包在tomcat服...原创 2019-08-01 17:25:49 · 1686 阅读 · 0 评论