- 博客(4)
- 收藏
- 关注
原创 There was an unexpected error (type=Internal Server Error, status=500).
There was an unexpected error (type=Internal Server Error, status=500).又报500的错了发现错误原因解决就是应该是放在@RestController注释类下的方法错放到了@Controller注释类下
2021-03-30 11:12:51
1663
原创 org.springframework.web.bind.ServletRequestBindingException: Missing request attribute ‘msg‘ of type
org.springframework.web.bind.ServletRequestBindingException: Missing request attribute ‘msg’ of type String原因:public Map<String, Object> success( @RequestAttribute("msg") String msg, @RequestAttribute("code") Integer code,
2021-03-30 09:57:12
4461
原创 spring boot yaml自定义属性读取不到为空
在使用spring boot的yaml配合@ConfigurationProperties,出现无法正常读取对象,显示读取到的对象为null,先排除yaml格式问题,找个yaml格式校验网站校验一下。我的yaml文件没有问题,但是为什么还是读取不到呢?使用简单对象的可以正常读取,自己定义的属性体无法使用。1.在pom.xml添加 <build> <resources> <resource> <
2021-03-24 16:01:46
1525
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人