
springboot
金麟十三少
擅长JAVA,系统架构设计
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Springboot启动,Command line is too long. Shorten command line for UniCloudZuulApplication or also
Springboot启动报错,Command line is too long. Shorten command line for Leaf6UniCloudZuulApplication or also for Spring Boot default configuration. 解决方法: 在idea的项目路径下,找到./idea/workspace.xml, <component name="PropertiesComponent"></component>标签内,原创 2021-02-07 14:13:34 · 422 阅读 · 0 评论 -
Springboot修改banner,修改控制器启动输出的日志logo
问题:修改控制台输出的banner 修改方法: 在resource文件夹下,新建banner.txt banner.txt内容去网站http://patorjk.com/software/taag/#p=display&f=Standard&t=tech上生成,并复制到banner.txt文件里。 再次启动后,就会变了。 ...原创 2020-04-20 15:04:14 · 547 阅读 · 0 评论 -
Springcloud结合RabbitMq
1、添加maven pom依赖 <!--结合消息队列--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-amqp</artifactId> <version&g...原创 2020-01-22 10:47:06 · 530 阅读 · 0 评论 -
springboot出现Fail to configure a Datasource:‘url’ attribute is not specified and no embedded datasour
运行springboot项目,出现错误 Fail to configure a Datasource:‘url’ attribute is not specified and no embedded datasource could be configured 这个错误主要是引用maven项目中pom.xml文件有 <dependency> <groupId>or...原创 2019-01-02 21:17:20 · 1264 阅读 · 0 评论 -
SpringBoot学习总结
spring boot设计的目的就是为了简化基于spring的开发,开启各种插件配置。之前开发springmvc或者ssh,都需要手动配置很多文件,以及解决各种maven jar冲突,这不但配置繁琐,而且调试冲突问题花的时间很多。spring boot能够引入jar 依赖,就能快速建立项目并正常运行,目前spring boot的更新速度比较快。spring boot是下一代javaweb框架,是s...原创 2019-01-15 22:39:27 · 7343 阅读 · 0 评论 -
Springcloud整合redis,实现天气数据的缓存存取
pom.xml引入 <!-- 整合redis --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifa...原创 2019-04-29 08:49:17 · 2290 阅读 · 0 评论 -
springboot整合zuul,实现API网关配置
一个应用中可能包含PC、APP等等终端产品,如果使用单一服务入口的话,发生故障后,整个架构服务将不能提供服务。因此我们可以对不同的服务,配置不同的网关策略,正如nginx一样,可以负载均衡。 服务网关的要素: 稳定性,高可用;安全性;性能,并发性;扩展性; 一般api网关的实现方法有这么几种: 1、Nginx 2、zuul 3、Kong,专门提供微服务API管理平台(底层也是基于Ngi...原创 2019-05-01 12:00:06 · 11545 阅读 · 0 评论 -
springboot整合mongodb,使用BaseEntityMongo,继承MongoRepository,出现找不到bean
Description: Field businessLogRecordDao in com.etc.service.impl.BusinessLogRecordServiceImpl required a bean of type 'com.etc.mapper.BusinessLogRecordMapper' that could not be found. The injection p...原创 2019-07-01 16:57:58 · 2432 阅读 · 0 评论 -
Springboot使用J2Cache,整合ehcache和redis缓存框架,实现两级缓存
首先看下整合过程 1、pom.xml添加相关依赖 <!-- 添加ehcache支持 --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-cache</artifactId>...原创 2019-07-01 10:23:32 · 6811 阅读 · 0 评论