2019-07-09-javaweb

直接可以进行http访问

1
2
3
4
5
6
7
8
9
10
11
/**
* 作为http的正文进行返回
*/
@RestController
public class HelloController {

@RequestMapping(value = "/hello", method = RequestMethod.GET)
public String hello() {
return "hello Spring boot";
}
}

数据库用包装类型,是因为Integer可以进行判空处理

#{aa} 获取参数值

keyColumn =”area_id”

保留字 使用这种方法 `name`

问题:

Mysql出现Table ‘performance_schema.session_status’ doesn’t exist