
Spring Boot
码农致富
喜欢的朋友可以关注下订阅号:「码农致富」
展开
-
Spring Boot整合Dubbo开发系列(一)----一个简单的示例
一、简介昨天在网上发现了dubbo社区发布了Dubbo Spring Boot Starter 1.0.0 公测版,https://github.com/dubbo/dubbo-spring-boot-project 使用了springboot来开发,感觉应该很不错,然后就去试了下,发现dubbo-spring-boot-starter 底层依赖 Dubbo 2.5.9而2.5.9原创 2018-01-25 14:27:10 · 12549 阅读 · 4 评论 -
SpringBoot集成Swagger提示Uncaught Can't read swagger JSON from
一、问题描述在Srping Boot中集成了SwaggerUI作为接口文档工具,然后创建了多个组,使用了中文,一运行就提示:Can't read swagger JSON from http://localhost:8080/v2/api-docs?group=基础模块查看控制台输出,发现是由于中文乱码导致的:二、解决方法由于这里用的是SpringBoot,而SpringBoot内嵌了Tomcat...原创 2018-03-26 16:48:10 · 4583 阅读 · 1 评论 -
Spring RestTemplate整理
一、什么是RestTemplate?RestTemplate是Spring提供的用于访问Rest服务的客户端,RestTemplate提供了多种便捷访问远程Http服务的方法,能够大大提高客户端的编写效率。 调用RestTemplate的默认构造函数,RestTemplate对象在底层通过使用java.net包下的实现创建HTTP 请求,可以通过使用ClientHttpRequ原创 2018-04-15 14:22:23 · 992 阅读 · 0 评论 -
Spring Boot启动报错 :ApplicationEventMulticaster not initialized - call 'refresh'
一、问题描述Spring-boot项目一启动就报错:java.lang.IllegalStateException: ApplicationEventMulticaster not initialized - call 'refresh' before multicasting events via the context: org.springframework.boot.context.emb...原创 2018-05-11 19:11:53 · 39317 阅读 · 4 评论 -
Spring Boot自定义注解+AOP实现日志记录
访问Controller打印的日志效果如下:*********************************Request请求***************************************ClassName : com.xxx.app.xxx.action.xxxxRequestMethod : createURL()RequestParams : ["xxx...原创 2018-06-01 09:38:56 · 7474 阅读 · 3 评论 -
Spring Boot启动提示:org.apache.catalina.LifecycleException: A child container failed during start
一、问题描述启动Spring boot项目,报错,信息如下:java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost].TomcatEmbe...原创 2018-09-14 09:57:27 · 6258 阅读 · 2 评论