# springboot快速开发crud **Repository Path**: zwhwan/springboot ## Basic Information - **Project Name**: springboot快速开发crud - **Description**: 学习并巩固springboot开发 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-08-01 - **Last Updated**: 2022-08-02 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 使用springboot快速开发CRUD ## 主要技术 Springboot+springmvc+mybatis-plus+ajax+bootstrap+maven ##主要难点 * 虽然大部分配置不用写,但是分页拦截器还是需要配置的,不然total为0。 * mybatisplus虽然很方便,但是对于多表联合查询不友好, * 我这里查询用户信息需要用到部门表的部门名,开始我对此毫无头绪 然后我是通过在Emp类中加了一个属性deptName,然后通过自定义page 成功解决,除此之外,dao类里面可以自定义查询方法。 * 静态文件放入resource文件夹下的static文件夹下。 * application.yml是主要配置文件,在里面配置数据源 ##代码 @Select("select e.emp_id, e.emp_name, e.gender, e.email, e.d_id,d.dept_id,d.dept_name from tbl_emp e left join tbl_dept d on e.`d_id`=d.`dept_id`") Page selectEmpAndDept(IPage page);