0%

SpringCloud 2.0.0版本以前,只要加入下面依赖:

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-actuator</artifactId>
</dependency>

并且在类上,变量上打上@RefreshScope的注解,在启动的时候,都会看到

RequestMappingHandlerMapping : Mapped "{/refresh,methods=[post]}" 

也就是SpringCloud暴露了一个接口 /refresh 来给我们去刷新配置,但是SpringCloud 2.0.0以后,有了改变.
我们需要在bootstrap.yml里面加上需要暴露出来的地址

management:
  endpoints:
    web:
      exposure:
        include: refresh,health

现在的地址也不是/refresh了,而是/actuator/refresh

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

Quick Start

Create a new post

$ hexo new "My New Post"

More info: Writing

Run server

$ hexo server

More info: Server

Generate static files

$ hexo generate

More info: Generating

Deploy to remote sites

$ hexo deploy

More info: Deployment

命令 说明
CTRL +SHIFT + A 查找快捷键 –>HELP–>FIND ACTION move caret to,move caret to next world 快速到单词的末尾,ctrl+ →, 同时按住shift 就是选中这个单词
CTRL +SHIFT+ALT +J 选中一样的 –>EDIT –>FIND SELECT ALL OCCURRENCES
SHIFT + ALT + 鼠标左键 选中多行
END键 快速移到行尾
HOME键 快速移到行首
CTRL+ALT + L 格式化 –>code –>reformat code
Ctrl+alt+I 自动缩进
ctrl+ shift +U 字母大小写切换
ctrl+alt+t surround with ,if else, try catch,…
ctrl +shift + t 创建新的测试
alt + insert generate 生成getter and setter,constructor,toString…
ctrl+y / x 删除行
ctrl + D 复制行
ctrl + H 显示类结构图
ctrl+ shift + h 显示方法调用结构
Alt+7 显示类所有方法,快速定位
ctrl + E 显示最近打开的文件
ctrl +j 自动补全代码 fori psvm sout …
ctrl + w 选中代码,多次按,逐渐扩大选中范围
alt+f3 / ctrl+shift + f7 高亮显示文本
ctrl+/ / ctrl+shift+/ 注释// 或者注释/*
ctrl + Alt + o 优化导入的包
ctrl + p 显示方法参数提醒

注意有时候快捷键不生效,是不是和QQ钉钉等常用软件冲突导致。