springboot
少喝烫水
嘘!
展开
-
接上次Springboot没写完的MVC代码
接上次Springboot没写完的MVC代码控制层LoginController@Controllerpublic class LoginController { @Autowired private UserService userService; @RequestMapping("/login") public String login(@RequestParam("username")String username,原创 2020-09-03 11:06:41 · 185 阅读 · 1 评论 -
Springboot的crud
还没写mvc(。)一.创建数据库CREATE DATABASE `springboot`;USE `springboot`;创建登录用户数据表DROP TABLE IF EXISTS `user`;CREATE TABLE `user` ( `id` int(11) NOT NULL AUTO_INCREMENT, `user_name` varchar(20) NOT NULL, `password` varchar(20) NOT NULL, PRIMARY KEY (`原创 2020-08-06 11:05:46 · 217 阅读 · 0 评论