#SpringBoot记录
1.**Controller的api报404**
启动日志中也发现没有对应的api。
原因是Application在单独的package中,SpringBootApplication 标记默认将此作为Component Scan的root路径。需要在SpringApplication.run的类前添加@ComponentScan("com.controllerpackage")
- 参见[ref](http://stackoverflow.com/questions/37342977/spring-boot-controller-404)
2.**RequestBody无法识别post的json对象**
``` txtCan not construct instance of com.aaabes.order.entity.MealOrder: no suitable constructor found, can not deserialize from Object value (missing default constructor or creator, or perhaps need to add/enable type information?)```
api请求返回需要在该Entity中添加默认构造函数,不必有参数及实现即可