自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 spring cloud

springcloud//UserClientpackage com.zr.client;import com.zr.pojo.User;import org.springframework.cloud.openfeign.FeignClient;import org.springframework.web.bind.annotation.PathVariable;import org.springframework.web.bind.annotation.RequestMapping;

2020-07-17 10:38:29 79

原创 springboot

博客的归档//BlogServiceImplpackage com.zr.service.impl;import com.zr.dao.BlogDao;import com.zr.po.Blog;import com.zr.po.BlogQuery;import com.zr.po.Tag;import com.zr.po.Type;import com.zr.service.IBlogService;import org.springframework.beans.BeanUtils

2020-07-17 10:37:32 111

原创 springboot

博客的分类以及标签//LoginInterceptor.javapackage com.zr.interceptor;import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;import javax.servlet.http.HttpServletRequest;import javax.servlet.http.HttpServletResponse;public class LoginInter

2020-07-17 10:36:31 73

原创 springboot

博客的首页以及搜索@Controllerpublic class IndexController { @Autowired private IBlogService blogService; @Autowired private ITypeService typeService; @Autowired private ITagService tagService; @RequestMapping("/") public String

2020-07-17 10:35:17 92

原创 springboot

springboot完善增删改查@Controller@RequestMapping("admin/blogs")public class BlogController { @Autowired private IBlogService blogService; @Autowired private ITypeService typeService; @Autowired private ITagService tagService; @

2020-07-12 19:49:47 47

原创 springboot

springboot标签和博客页面@Controller@RequestMapping("admin/tags")public class TagController { @Autowired private ITagService tagService; @GetMapping public String list(@PageableDefault(size = 5,sort ={"id"},direction = Sort.Direction.DESC) Page

2020-07-12 19:48:09 43

原创 springboot

springboot增删改查@Controller@RequestMapping("/admin")public class TypeController { @Autowired private ITypeService typeService; @GetMapping("/types") public String list(@PageableDefault(size = 5,sort ={"id"},direction = Sort.Direction.DESC)

2020-07-09 19:00:16 46

原创 springboot

springboot 登录注销server: port: 8081spring: datasource: driver-class-name: com.mysql.jdbc.Driver url: jdbc:mysql://localhost:3306/aaa?useUnicode=true&characterEncoding=utf-8&serverTimezone=UTC username: root password: 123456 th

2020-07-09 18:56:50 49

原创 7.6JAVA

7.6java ssm增删改查<mapper namespace="com.zhongruan.dao.RoleDao" > <select id="findRoleIdByUserId" parameterType="int" resultType="int"> select roleId from user_role where userId=#{userId} </select> <select id="findRoleB

2020-07-09 18:37:11 66

原创 7.3 java

ssm3//Controller@RequestMapping("/findAll.do") public ModelAndView findAll(@RequestParam(defaultValue = "1") int currentPage){ PageInfo<User> pageInfo = userService.findAll(currentPage); ModelAndView modelAndView=new ModelAndVi

2020-07-05 18:21:42 52

原创 7.2 JAVA

ssm2 实现增删改查//UserMapper.xml<mapper namespace="com.zr.dao.UserDao" > <select id="findUserByUserName" parameterType="String" resultType="user"> select * from db_user where username=#{username} </select> <select id="fi

2020-07-04 00:20:29 118

原创 JAVA 7.1

7.1 JAVA//UserMapper.xml<mapper namespace="com.zr.dao.UserDao" > <select id="findUserByUserName" parameterType="String" resultType="user"> select * from db_user where username=#{username} </select> <select id="findA

2020-07-04 00:18:12 138

原创 java 6.29

6.29 Javapackage com.yjc.bean;public class User { public User() { } public User(int id, String username, String password) { this.id = id; this.username = username; this.password = password; } public User(Str

2020-06-29 23:33:47 102

原创 java作业 6.28

数据库增删改查import DBUtil;import java.sql.*;public class Find { public static void main(String[] args) { //1.加载驱动 Connection connection= null; try { connection = DBUtil.getConnection(); } catch (ClassNotFoun

2020-06-28 23:17:50 99

原创 Java作业

Java斗地主package com.zr;import java.sql.SQLOutput;import java.util.ArrayList;import java.util.Collection;import java.util.Collections;import java.util.List;public class DouDiZhu { public static void main(String[] args) { List<String&g

2020-06-27 23:44:25 62

空空如也

空空如也

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

TA关注的人

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