1、导入jar包:spring-webmvc <!-- springmvc的依赖 --> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-webmvc</artifactId> <version>4.3.3 ...
分类:
编程语言 时间:
2020-06-15 21:08:55
阅读次数:
60
由于spring官方集成了eureka,所以在我们使用时,特别方便。 使用springboot创建eureka服务注册中心(单机版) 1. 在pom.xml中添加以下依赖项 <dependency> <groupId>org.springframework.cloud</groupId> <arti ...
分类:
其他好文 时间:
2020-06-15 13:43:40
阅读次数:
41
最近,在项目开发过程中使用了RedisTemplate,进行单元测试时提示“Field redisTemplate in com.example.demo1.dao.RedisDao required a bean of type ‘org.springframework.data.redis.co ...
分类:
编程语言 时间:
2020-06-15 12:21:53
阅读次数:
41
错误信息 [ERROR] Some problems were encountered while processing the POMs:'dependencies.dependency.version' for org.springframework.cloud:spring-cloud-sta ...
分类:
编程语言 时间:
2020-06-15 12:12:29
阅读次数:
78
软件架构 基于spring-boot2.1.9.RELEASE、阿里云aliyun-sdk-oss3.7.0 <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</ar ...
分类:
其他好文 时间:
2020-06-14 21:01:33
阅读次数:
77
添加jar包依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-activemq</artifactId> </dependency> <!--消息队列连接池--> < ...
分类:
其他好文 时间:
2020-06-14 14:50:03
阅读次数:
54
添加jar包 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> </dependency> 添加application.pr ...
分类:
编程语言 时间:
2020-06-14 14:48:38
阅读次数:
49
1.添加配置类 package org.jcut.tools; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Component; import org ...
分类:
编程语言 时间:
2020-06-14 13:00:51
阅读次数:
56
####问题springcloud getway配置文件加载失败 Description: Failed to bind properties under 'spring.cloud.gateway' to org.springframework.cloud.gateway.config.Gatew ...
分类:
编程语言 时间:
2020-06-14 12:54:40
阅读次数:
342
1.导入jar包 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-logging</artifactId> </dependency> 2.创建logback-sprin ...
分类:
编程语言 时间:
2020-06-14 12:33:53
阅读次数:
78