自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 收藏
  • 关注

原创 blog

Blog@Entity@Table(name = “t_blog”)public class Blog {@Id@GeneratedValueprivate Long id;private String title;@Basic(fetch = FetchType.LAZY)@Lobprivate String content;private String firstPicture;private String flag;private Integer views;private

2020-07-13 12:55:50 223

原创 使用springboot框架实现登录

dao.UserDaopackage com.zr.dao;import com.zr.po.User;import org.springframework.data.jpa.repository.JpaRepository;public interface UserDao extends JpaRepository<User,Long> {User findByUsernameAndPassword(String username, String password);1}po.

2020-07-07 21:31:21 277

原创 角色添加

rolemapper.xmlselect roleId from user_role where userId=#{userId} select * from tb_role WHERE id NOT IN (SELECT roleId FROM user_role WHERE userId=#{id})RoleService@Servicepublic class RoleService implements IRoleService {@Autowiredprivate RoleDao ro

2020-07-06 20:26:40 151

原创 模糊查询

//UserController@RequestMapping("/deleteAll.do")public String deleteAll(String userList){String[] strs = userList.split(",");List ids = new ArrayList<>();for(String s:strs){ids.add(Integer.parseInt(s));}userService.deleteAll(ids);return “red

2020-07-03 16:29:57 141

原创 界面分页

//bean.Userpackage com.zhongruan.bean;import com.mchange.v2.c3p0.ComboPooledDataSource;public class User {public User() {}public User(int id, String username, String password) { this.id = id; this.username = username; this.password = pas

2020-07-02 17:27:39 168

原创 用户查询

//Userpackage com.zhongruan.bean;import com.mchange.v2.c3p0.ComboPooledDataSource;public class User {public User() {}public User(int id, String username, String password) {this.id = id;this.username = username;this.password = password;}public Us

2020-07-01 10:54:07 235

原创 登陆界面设计

//bean.userpackage com.zr.servlet;import javax.servlet.*;import java.io.IOException;public class HelloServlet implements Servlet {@Overridepublic void init(ServletConfig servletConfig) throws ServletException {}@Overridepublic ServletConfig getS

2020-06-30 15:01:38 138

原创 增删改查数据库

//Add增加package com.zr;import com.zr.util.DBUtil;import java.sql.Connection;import java.sql.PreparedStatement;import java.sql.SQLException;public class Add {public static void main(String[] args) throws ClassNotFoundException, SQLException {Connecti

2020-06-28 13:58:24 95

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除