随笔分类 -  springboot

摘要:1、使用 http://localhost:8088/user/select?id=1 路径访问时,后端获取id值得方法: 使用@RequestParam 注解获取id参数的值, 该注解有两个属性: value、required; value用来指定要传入值的id名称,要跟URL上面的一样;requ 阅读全文
posted @ 2017-11-15 14:46 贤言洛沐 阅读(897) 评论(0) 推荐(0)
摘要:在spring boot 1.5 版本之前 在@ConfigurationProperties注释中有两个属性:locations:指定配置文件的所在位置prefix:指定配置文件中键名称的前缀 spring boot1.5以上版本@ConfigurationProperties取消location 阅读全文
posted @ 2017-11-10 14:59 贤言洛沐