自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 springcloud

zr-consumer client UserClient.java @FeignClient(value = "zr-provider",fallback = UserClientFallback.class) public interface UserClient { @RequestMapping("user/{id}") User queryById(@PathVariable("id")Long id); } UserClientFallback.java @Componen

2020-07-18 15:04:46 83

原创 博客功能完善版(评论回复提交)

拦截器 Logininterceptor.java public class LoginInterceptor extends HandlerInterceptorAdapter { @Override public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception { if (request.getSessi

2020-07-14 21:45:44 155

原创 Spring boot博客功能

部分功能实现代码 BlogService.java @Autowired private BlogDao blogDao; @Override public Page<Blog> listBlog(Pageable pageable) { Page<Blog> page = blogDao.findAll(pageable); return page; } @Override public vo

2020-07-09 22:55:45 92

原创 角色管理

UserController @RequestMapping("/login.do") public ModelAndView Login(User user, HttpSession session) { int id=userService.login(user.getUsername(),user.getPassword()); ModelAndView modelAndView=new ModelAndView(); if (id!

2020-07-06 23:04:14 123

原创 批量删除、查询显示

部分相关代码 UserController 查询 @RequestMapping(value="/findAll.do") public ModelAndView findAll(@RequestParam(defaultValue = "1") int currentPage,String username,HttpSession session,@RequestParam(defaultValue = "0") int type) { if(type==1){

2020-07-03 13:30:40 200

原创 ssm模糊查询 分页切换 拦截器

UserController部分代码 分页 @RequestMapping(value="/findAll.do") public ModelAndView findAll(@RequestParam(defaultValue = "1") int currentPage) { PageInfo<User> pageInfo=userService.findAll(currentPage); ModelAndView modelAndView= n

2020-07-02 15:17:12 125

原创 ssm增删改查

UserController @Controller @RequestMapping("/user") public class UserController { @Autowired private UserService userService; @RequestMapping("/login.do") public ModelAndView Login(User user) { boolean fa=userService.login(use

2020-07-01 22:43:20 71

原创 Spring mvc实现登录

UserController @Controller @RequestMapping("/user") public class UserController { @Autowired private IUserService userService; @RequestMapping("/login.do") public ModelAndView login(User user){ boolean flag = userService.l

2020-06-30 20:01:39 143

原创 实现登录(Servlet)

User public class User { public User(){ } public User(int id,String username,String password){ this.id = id; this.username = username; this.password = password; } public User(String username,String password){

2020-06-29 12:32:01 123

原创 JDBC

数据库增删改查 DBUtil public class DBUtil { public static Connection getConnection() throws ClassNotFoundException, SQLException { // 加载驱动 Class.forName("com.mysql.jdbc.Driver"); //创建链接 Connection connection= DriverManager.get

2020-06-28 13:51:00 53

原创 斗地主

斗地主 package sj; import java.lang.ref.SoftReference; import java.util.*; public class DouDiZhu { public static void main(String[] args) { HashMap<Integer,String> pokes =new HashMap<>(); List colors =new ArrayList<>(); List numbers =new Arr

2020-06-27 19:20:39 124

空空如也

空空如也

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

TA关注的人

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