
Sprint Boot && Sprint Cloud
Sprint Boot && Sprint Cloud
qauzy
这个作者很懒,什么都没留下…
展开
-
【Spring Boot 使用记录】kafka自动配置和自定义配置
1 自动配置自动配置实现在 org.springframework.boot.autoconfigure.kafka.KafkaAutoConfiguration配置类为:@ConfigurationProperties(prefix = "spring.kafka")public class KafkaProperties {......}所以使用spring boot 默认的自动配置,kafka的配置都已spring.kafka开头,如:#kafka默认消费者配置sp原创 2020-12-21 01:15:00 · 4203 阅读 · 1 评论 -
【Spring Boot 使用记录】nacos 替换 eurek
1 环境JDK : 8Spring Boot:1.5.9.RELEASESpring Cloud :Edgware.RELEASE2 依赖替换父pom添加,需要注意的是,spring-cloud-commons要指定版本,模式使用1.3.0.RELEASE,运行会报错 <!-- 整合springcloud-alibaba-nacos(服务管理中心) --> <dependency> <groupId>com.alibaba.cl原创 2020-11-29 21:05:30 · 418 阅读 · 0 评论 -
【Spring Boot 使用记录】访问数据库之JPA
1 添加依赖配置 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-security</artifactId> </dependency> 2原创 2020-11-07 17:08:53 · 214 阅读 · 0 评论 -
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compil
mvn compile 出现[INFO] Compiling 5 source files to /opt/code/abc/Spring-Cloud-Platform/ace-api/target/classesWARNING: An illegal reflective access operation has occurredWARNING: Illegal reflective access by lombok.javac.apt.LombokProcessor to field com.原创 2020-10-23 16:42:00 · 3934 阅读 · 0 评论 -
Spring Boot集成mybatis和代码自动生成器
1 创建测试表REATE TABLE `test` ( `id` int(11) NOT NULL, `name` varchar(30) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`)) ENGINE=InnoDB DEFAULT CHARS原创 2020-06-02 14:18:30 · 1417 阅读 · 0 评论 -
【spring boot】自idea 动编译
1 在pom.xml 中 配置<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <optional>true</optional&g...原创 2019-12-29 15:10:28 · 206 阅读 · 0 评论 -
【微服务记录】intellij 建立spring boot 项目
1 新建项目新建项目,选择Spring Initializr一路默认,然后选择web2 代码修改在java目录下新建controller包,在controller包下新建SampleController类代码为package hello;import org.springframework.boot.*;import org.springframework....原创 2019-03-22 09:12:17 · 372 阅读 · 0 评论