一:StringBuilder
用于存储结果。
二:Connection
用来与数据库连接。
三:Statement
执行SQL语句。
四:ResultSet
存储从数据库返回的内容。
五:@RequestMapping
将http请求映射到待定处理程序。
六:PreparedStatement
SQL中的预编译,用?做占位符,preparestatement.setString(1, username);中的1代表username是第一个占位符的值,这样能有限防止sql注入。
七:String
字符串数据类型。
八:@MapperScan
扫描 com.example.demo.dao层下的所有的类作为 Mapper 映射文件