随笔分类 - springcloud
摘要:一、注册中心 1、在父工程中新建模块 2、配置pom.xml <dependencies> <!--eureka server--> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-
阅读全文
摘要:如果每个微服务都引入实体类,代码冗余度高。为此重构代码。 1.建立公共的module 把其他微服务的实体类复制到新建公共模块的java包下(自行定义子包entities) 2.在IDEA右侧maven中执行该公共模块的clean和install。 3.在需要用到实体类的微服务中的pom.xml文件添
阅读全文
摘要:一、IDEA相关约定: 1、utf8编码 2、注解生效激活 3、java编译版本 4、父工程不用的文件过滤掉 二、创建maven父工程 1、删除父工程src及trage 2、配置pom.xml文件 <?xml version="1.0" encoding="UTF-8"?> <project xml
阅读全文
摘要:parent的版本不能随便选择!!!!!!!!!!!!!!!!!!!! 依赖的版本要对应
阅读全文

浙公网安备 33010602011771号