摘要: SpringBoot 1.5.9 版本加入actuator依赖后, 访问/beans 等敏感的信息时候报错,如下 Tue Mar 07 21:18:57 GMT+08:00 2017 There was an unexpected error (type=Unauthorized, status=4 阅读全文
posted @ 2017-12-14 10:58 毛会懂 阅读(3449) 评论(0) 推荐(0) 编辑
摘要: yml格式对缩进有严格的要求,检查你的yml配置文件是否有不合格的缩进项。 正确的格式如下: server: port: 8881 port前必须有空格, port后的冒号 后面也需要有空格 阅读全文
posted @ 2017-12-14 10:13 毛会懂 阅读(2303) 评论(0) 推荐(0) 编辑
摘要: 测试时,@SpringApplicationConfiguration(classes = Application.class) 报错,注解不能导入。 package com.didispace.hello; import static org.hamcrest.Matchers.equalTo;i 阅读全文
posted @ 2017-12-14 10:09 毛会懂 阅读(4645) 评论(0) 推荐(0) 编辑