Spring Boot的特点 1.依赖管理 父项目做依赖管理 <!-- HelloWorld项目的父项目 --> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</ ...
分类:
编程语言 时间:
2021-06-02 17:50:55
阅读次数:
0
引入依赖 <!-- https://mvnrepository.com/artifact/org.springframework.kafka/spring-kafka --> <dependency> <groupId>org.springframework.kafka</groupId> <art ...
分类:
编程语言 时间:
2021-06-02 14:22:43
阅读次数:
0
当启用@EnableAuthorizationServer注解时,启动项目报错 报错信息 Description: Field configurers in org.springframework.security.oauth2.config.annotation.web.configuration ...
分类:
编程语言 时间:
2021-06-02 14:05:33
阅读次数:
0
创建两个项目,服务提供者service-offer和服务消费者service-consumer 一、service-offer的pom文件 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot ...
分类:
其他好文 时间:
2021-06-02 11:44:54
阅读次数:
0
import org.springframework.util.AntPathMatcher; import org.springframework.util.PathMatcher; import junit.framework.TestCase; public class AntPathMatc ...
分类:
编程语言 时间:
2021-06-02 10:29:46
阅读次数:
0
import com.google.common.collect.Lists; import lombok.extern.slf4j.Slf4j; import org.springframework.core.io.Resource; import org.springframework.core ...
分类:
编程语言 时间:
2021-05-24 17:06:24
阅读次数:
0
1、pom.xml文件 <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> </dependency> <dependency> <groupId>org.springframework. ...
分类:
编程语言 时间:
2021-05-24 15:52:36
阅读次数:
0
package org.jeecg.modules.system.util; import org.springframework.util.Assert; import java.time.Instant; import java.time.LocalDate; import java.time. ...
分类:
编程语言 时间:
2021-05-24 15:05:33
阅读次数:
0
服务注册和发现 Eureka注册中心搭建步骤 创建SpringBoot工程,添加eureka-server的起步依赖 <--SpringBoot 版本使用的是 2.4.5 --> <dependency> <groupId>org.springframework.cloud</groupId> <a ...
分类:
编程语言 时间:
2021-05-24 08:48:50
阅读次数:
0
@Component classA{ @Autowire private ClassB classB; } @Component classB{ @Autowire private ClassA classA; } 代码执行流程 首先进入org.springframework.beans.facto ...
分类:
编程语言 时间:
2021-05-24 08:23:12
阅读次数:
0