idea配置

配置文件编码

图片.png配置java编译版本
图片.png

配置注解生效

图片.png

使用idea新建项目图片.png配置maven仓库

  1. <mirrors>
  2. <!-- mirror
  3. | Specifies a repository mirror site to use instead of a given repository. The repository that
  4. | this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used
  5. | for inheritance and direct lookup purposes, and must be unique across the set of mirrors.
  6. |
  7. <mirror>
  8. <id>mirrorId</id>
  9. <mirrorOf>repositoryId</mirrorOf>
  10. <name>Human Readable Name for this Mirror.</name>
  11. <url>http://my.repository.com/repo/path</url>
  12. </mirror>
  13. -->
  14. <mirror>
  15. <id>alimaven</id>
  16. <name>aliyun maven</name>
  17. <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
  18. <mirrorOf>central</mirrorOf>
  19. </mirror>
  20. </mirrors>

springcloud与springboot版本对应关系

https://start.spring.io/actuator/info

springcloud(https://gitee.com/smalldust111) - 图6

https://github.com/alibaba/spring-cloud-alibaba/wiki/%E7%89%88%E6%9C%AC%E8%AF%B4%E6%98%8E

图片.png

参考文档

springcloud代码示例:
https://gitee.com/lixiaogou/cloud2020
https://gitee.com/leifengyang/yygh-parent/blob/master/server-gateway/deploy/deploy.yml