![](https://img-blog.csdnimg.cn/20210409163026338.jpeg?x-oss-process=image/resize,m_fixed,h_224,w_224)
SpringBoot
SpringBoot概述
-觅-
任人戏耍,不忘初心。
展开
-
Zookeeper
基本使用:zk启动zkServer.sh start客户端启动zkCli.shls /quota为初始。原创 2021-04-09 16:19:53 · 61 阅读 · 0 评论 -
SpringBoot中templates和WIN-INF不能直接进行跳转。
templates中的页面,不能直接进行超链接跳转,受到保护。就像WIN-INF中的页面一样受到保护,不能在地址栏直接进行访问。如果需要,可以在Controller中进行重定向跳转。不能跳转<body><a href="../addStudent.html">添加</a><table> <thead> <tr> <th>学号</th> <th&g原创 2020-07-27 20:16:01 · 367 阅读 · 0 评论 -
MyBatis简单CRUD操作,以及动态SQL
dao层@Repositorypublic interface UserMapper { //1 查询全部用户 List<User> findAll(); //2 添加用户 void addUser(User user);// //3 根据id修改用户 void updateUser(User user);// //4 根据id删除用户 void deleteUser(User user); /* 动态SQL.原创 2020-07-25 14:37:52 · 139 阅读 · 0 评论 -
Spring+myBatis实现简单的增删改查
项目目录由于没有前台数据交互,在controller中代替entitypackage com.liu.demo.entity;public class User { int id; String username; String account; String password; public User() { } @Override public String toString() { retu原创 2020-07-22 15:32:32 · 265 阅读 · 0 评论 -
Spring AOP
1. 切点pointcut类public class UserService { public void findAllUser(){ System.out.println("查询全部用户。。。"); }}2. 切面aspect类public class AdUserService { public void before(){ System.out.println("增强之前before()..."); } p..原创 2020-07-20 17:42:38 · 77 阅读 · 0 评论