- 博客(16)
- 收藏
- 关注
原创 Springcloud
Springcloud //UserClient package 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-16 17:31:45
132
原创 Springboot7 博客的归档
Springboot7 博客的归档 //BlogServiceImpl package 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.bea
2020-07-15 18:34:58
195
原创 Springboot6 博客的分类和标签
Springboot6 博客的分类和标签 //LoginInterceptor.java package com.zr.interceptor; import org.springframework.web.servlet.handler.HandlerInterceptorAdapter; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public class
2020-07-14 19:58:52
163
原创 Springboot5 博客的首页和搜索
Springboot5 博客的首页和搜索 //Controller @Controller public class IndexController { @Autowired private IBlogService blogService; @Autowired private ITypeService typeService; @Autowired private ITagService tagService; @RequestMappi
2020-07-13 20:19:40
185
原创 Springboot4 博客的增删改查
Springboot4 博客的增删改查 //BlogController @Controller @RequestMapping("admin/blogs") public class BlogController { @Autowired private IBlogService blogService; @Autowired private ITypeService typeService; @Autowired private ITagServi
2020-07-11 00:49:27
181
原创 Springboot3 标签的增删改查 博客的删除
Springboot3 标签的增删改查 博客的删除 //Controller @Controller @RequestMapping("admin/tags") public class TagController { @Autowired private ITagService tagService; @GetMapping public String list(@PageableDefault(size = 5,sort ={"id"},direction = Sor
2020-07-09 18:20:24
130
原创 Springboot2 增删改查
Springboot2 增删改查 //TypeController @Controller @RequestMapping("/admin") public class TypeController { @Autowired private ITypeService typeService; @GetMapping("/types") public String list(@PageableDefault(size = 5,sort ={"id"},direction =
2020-07-09 01:00:44
198
原创 Springboot1
Springboot1 //application.yml server: port: 8081 spring: datasource: driver-class-name: com.mysql.jdbc.Driver url: jdbc:mysql://localhost:3306/aaa?useUnicode=true&characterEncoding=utf-8&serverTimezone=UTC username: root passwo
2020-07-07 23:40:12
105
原创 ssm5 判断登录用户角色
ssm5 判断登录用户角色 //RoleMapper.xml <mapper namespace="com.zhongruan.dao.RoleDao" > <select id="findRoleIdByUserId" parameterType="int" resultType="int"> select roleId from user_role where userId=#{userId} </select> <sele
2020-07-07 23:36:48
286
原创 ssm4模糊查询,批量删除
ssm4 模糊查询,批量删除 //Mapper.xml <select id="getTotalCount" resultType="int"> select count(*) from db_user <if test="username!=null and username!=''"> where username like concat("%",#{username},"%") </if>
2020-07-07 23:30:35
223
原创 ssm3 分页,过滤器
ssm3 分页,过滤器 //Controller @RequestMapping("/findAll.do") public ModelAndView findAll(@RequestParam(defaultValue = "1") int currentPage){ PageInfo<User> pageInfo = userService.findAll(currentPage); ModelAndView modelAndView=new Mod
2020-07-03 20:05:39
130
原创 ssm2 实现增删改查
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="f
2020-07-01 17:37:30
192
原创 ssm1 实现登录查询功能
ssm 实现登录查询功能 //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="f
2020-07-01 17:29:57
289
原创 java数据库的登录页面
java数据库的登录页面 package com.zr.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(S
2020-06-29 23:15:10
333
原创 java数据库的增删改查
java数据库的增删改查 增加功能实现的代码 package com.zr; import com.zr.utl.DBUtil; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.SQLException; public class Add { public static void main(String[] args) { //1.加载驱动 Conne
2020-06-28 23:05:27
206
原创 斗地主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) {
2020-06-27 23:42:37
254
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅