- 博客(5)
- 收藏
- 关注
原创 mybatis-plus 使用心得
mybatis-plus官方文档plus提供了许多对数据库的操作api,本文以mysql为例简单说明 对数据库操作的框架有 spring提供的jpa,tk-mapper,mybatis-plus最为欢迎,其中我是用最多的用的最顺手的为plus, 主要说一些使用心得和简单的操作语法不开喜欢上来知直接粘贴一大堆代码,没什么用,直接说核心 ,后面在开法中使用心得会慢慢补上来,因为crud过于简单就没有写什么代码,后面如果遇到复杂的需求 会慢慢补上来先啰嗦几句在java8中有很多新特性,其中能提高
2020-12-19 04:18:24
559
1
原创 动态代理增强方法 JDK
简单模拟spring底层提供的动态技术JDK实现,耦合度降低,提高 程序的复用性和灵活性同时提高了开发效率,且便于维护public interface UserService { /** * 增 */ public void insert(); /** * 删 */ public void delete(); ...
2019-12-03 13:58:37
429
原创 Cookie 记住用户名密码
@WebServlet("/servletLogin2")public class ServletLogin2 extends HttpServlet { protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException ...
2019-11-26 17:08:03
211
原创 ajax & JQuery 实现用户登录
servlet代码@WebServlet("/findUserDataBase")public class FindUserDataBase extends HttpServlet { protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletExcep...
2019-11-26 17:00:22
1040
原创 文件上传
/* * @Description //TODO 文件上传 * @Date 2019/11/26 16:36 * @Param * @return **///1.在接收请求的Servlet上添加 @MultipartConfig 注解,标识该Servlet会接收文件内容;@MultipartConfig@WebServlet("/fileServlet1")public cla...
2019-11-26 16:52:06
127
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人