
Spring
文章平均质量分 92
沐烬
皆有定数
展开
-
Spring AOP 自定义注解检查请求头(示例)
代码传送门需求一个 Controller 可以处理 HTTP 请求@RestControllerpublic class DemoController { @GetMapping("/hello") public String hello(@RequestParam String name) { return "Hello, " + name; }...原创 2018-11-14 18:17:21 · 6379 阅读 · 6 评论 -
Spring Boot yml 文件中无法通过 @@ 使用 pom 文件中定义的变量
Spring Boot yml 文件中无法通过 @@ 使用 pom 文件中定义的变量错误信息如下java.lang.IllegalStateException: Failed to load property source from location 'classpath:/application.yml' ... ...Caused by: while scanning for the ...原创 2019-07-19 09:42:33 · 9535 阅读 · 7 评论