- 博客(1279)
- 资源 (5)
- 收藏
- 关注

原创 常用算法时间复杂度表
1 常用算法时间复杂度来源: http://www.bigocheatsheet.com/1.1 常用数据结构算法复杂度1.2 常用排序算法复杂度
2019-02-14 16:58:31
1432
原创 html5+css3+js学习记录(1)-- html
submit属性< form action = " http://example " method = " GET " > 用户名: < input type = " text " name = " username " value = " 请输入用户名 " maxlength = " 8 " > < input type = " submit " name = " 免费注册 " id = " " >
2024-05-26 16:14:05
355
原创 微人事项目学习笔记(4)- 前后端分离管理权限思路
1 前后端分离权限管理http://www.javaboy.org/2019/0523/springboot-vue-permission.html2 后端接口权限设计角色只分配给二级菜单根据用户发送的url地址,提取出需要的角色。查看当前用户是否具备需要的角色...
2021-11-14 17:40:01
719
1
原创 微人事项目学习笔记(3)- Home页制作
1 Home和Title页制作布局参考布局右面的菜单注销2 左边导航菜单实现在main的页面显示,而不是整个页面替换根据index跳转自动跳转el-menu增加 router属性,不用写点击事件...
2021-11-11 22:03:20
1046
原创 微人事项目学习笔记(2)- 后端环境搭建
1 后端环境搭建2 后端登录首先根据表生成model和mapperSecurityConfigpackage com.tzb.vhr.config;import com.fasterxml.jackson.databind.ObjectMapper;import com.tzb.vhr.model.Hr;import com.tzb.vhr.model.RespBean;import com.tzb.vhr.service.HrService;import org.s
2021-10-16 15:34:18
2465
1
原创 微人事项目学习笔记(1)- 搭建 vue 3前端工程
1 技术架构springbootredisPOI/邮件发送/消息中间件mysqlvueaxiosElementUIVuex2 Vuehttps://cn.vuejs.org/v2/guide/index.html参考博客
2021-09-25 21:19:58
345
原创 新版Spring Boot(12)- Spring Boot 与Spring Cache(1)
1 缓存1.1 java缓存框架EhCache1.2 Spring Cache定义了规范,主要注解@EnableCaching@Cahcable@cahcePut@CacheEvict@Caching@CahceConfig1.3 工程搭建1.4 基本用法
2021-09-12 17:01:59
190
原创 Shiro实战学习笔记(5)- 整合springboot(2)
1 授权数据持久化1.1 建表-- shiro.t_user definitionCREATE TABLE `t_user` ( `id` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(255) NOT NULL, `password` varchar(255) NOT NULL, `salt` varchar(255) NOT NULL, PRIMARY KEY (`id`)) ENGINE=InnoDB AUTO_
2021-09-02 22:28:22
210
原创 Shiro实战学习笔记(4)- 整合springboot(1)
1 shiro整合spring boot<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%><%--<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>--%><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.
2021-08-29 12:26:04
231
1
转载 Shiro实战学习笔记(3)- 授权
1 授权授权可简单理解为who对what(which)进行How操作:Who,即主体(Subject),主体需要访问系统中的资源。What,即资源(Resource),如系统菜单、页面、按钮、类方法、系统商品信息等。资源包括资源类型和资源实例,比如商品信息为资源类型,类型为t01的商品为资源实例,编号为001的商品信息也属于资源实例。How,权限/许可(Permission),规定了主体对资源的操作许可,权限离开资源没有意义,如用户查询权限、用户添加权限、某个类方法的调用权限、编号为001用户的修改
2021-08-28 11:38:31
167
原创 Shiro实战学习笔记(2)-自定义Realm
1 自定义realmpackage org.tzb.realm;import org.apache.shiro.authc.AuthenticationException;import org.apache.shiro.authc.AuthenticationInfo;import org.apache.shiro.authc.AuthenticationToken;import org.apache.shiro.authc.SimpleAuthenticationInfo;import or
2021-08-28 11:00:48
185
原创 新版Spring Boot(10)- Spring Boot 整合数据持久层(1)
1 整合JdbcTemplateService/** * @Description TODO * @Author tzb * @Date 2021/8/22 10:23 * @Version 1.0 **/@Servicepublic class UserService { @Autowired JdbcTemplate jdbcTemplate; public int addUser(User user) { int upda
2021-08-22 15:53:52
226
1
原创 新版Spring Boot(8)- Spring Boot 整合 Web 开发(4)- 整合web基础组件
1 整合web基础组件Servlet@WebServlet(urlPatterns = "/hello")public class MyServlet extends HttpServlet { @Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { doPost(req, resp
2021-08-17 22:04:31
173
原创 新版Spring Boot(7)- Spring Boot 整合 Web 开发(3)
1 三种跨域CORS, Cross-Origin Resource Sharing域:协议 + 域名/IP + 端口2个工程1.1 方法11.2 方法21.3 方式32 spring boot 导入 XML配置3 拦截器作用:日志记录权限检查性能监控import org.springframework.web.servlet.HandlerInterceptor;import org.springframework.web.servlet.M
2021-08-16 22:30:08
221
原创 新版Spring Boot(6)- Spring Boot 整合 Web 开发(2)
1 @ControllerAdvice全局异常处理全局数据绑定全局数据预处理1.1 @ControllerAdvice 全局异常处理文件上传案例package com.tzb.exception;import org.springframework.web.bind.annotation.ExceptionHandler;import org.springframework.web.bind.annotation.RestControllerAdvice;/** * @D
2021-08-15 20:40:15
329
1
原创 新版Spring Boot(5)- Spring Boot 整合 Web 开发(1)
1 JSON框架3大主流框架:(1)jackson;(2)gson;(3)fastjsonSpring MVC中,jackson和gson已经自动配置好了
2021-08-15 10:46:02
193
原创 Shiro学习(1)- 介绍
1 Shiro 介绍ApacheShiro是Java 的一个安全(权限)框架。Shiro可以非常容易的开发出足够好的应用,其不仅可以用在JavaSE环境,也可以用在JavaEE环境。Shiro可以完成:认证、授权、加密、会话管理、与Web 集成、缓存等。1.1 功能1.2 架构2 Shiro 简单测试新建Maven工程 <!-- https://mvnrepository.com/artifact/org.apache.shiro/shiro-all -->
2021-08-03 22:23:32
125
原创 新版Spring Boot(4)-Spring Boot 整合视图层(1)
1 Spring Boot+ThymeleafSpring Boot+Thymeleaf 1.1 新建工程1.2 spring boot的thymeleaf的自动配置1.3 案例Controller@Controllerpublic class UserController { @GetMapping("/hello") public String index(Model model) { List<User> users = n
2021-07-17 22:30:13
134
原创 新版Spring Boot(4)-- web容器、tomcat配置
1 web容器基本配置默认引入tomcat换成 jetty2 Tomcat日志配置2.1 日志分类访问日志服务器内部日志
2021-07-17 17:00:29
173
原创 新版Spring Boot(3)--Spring Boot介绍
1 Spring Boot介绍1.1 新建方式在线创建 https://start.spring.io/ https://start.aliyun.com/IDEA创建Maven改造1.2 IDEA创建项目2 @Configuration 注解2.1 测试2.2 @Configuration换成 @Component单测可以运行2.3 @Configuration和 @Component 区别@Configuration 在后置处理器被代理了,对于已经
2021-07-12 21:06:23
355
2
原创 新版Spring Boot(2)-- java配置SSM
1 java配置SSM1.1 新建工程1.2 spring 配置类package com.tzb.config;import org.springframework.context.annotation.ComponentScan;import org.springframework.context.annotation.Configuration;import org.springframework.context.annotation.FilterType;import org.s
2021-07-11 17:19:04
131
1
原创 新版Spring Boot(1)-- xml 文件配置SSM
1 xml文件配置SSM1.1 新建工程1.2 新建Controller1.3 新建spring配置文件<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://ww
2021-07-11 15:53:29
139
1
原创 SSM框架角色权限管理系统脚手架实战(1)
1 SSM框架原理SSM框架:spring、springMVC、mybaits。Spring:是一个容器。类似与一个对象工厂,按要求标记的类都会被提前放入这个容器。SpringMVC:控制器和视图分发器。Mybaits:jdbc封装,本质就是jdbc对数据库的操作。Sqlsessionfactory实例,其中实体、数据库表、mapper三者一一对应,缺一不可。根据用户写的实体类和映射mapper文件之间的对应来获取到相应的sql操作去执行。2 新建工程-IDEA2020新建动态web项目
2021-05-17 20:24:26
600
原创 深入浅出Java并发多线程(18) -并发编程底层原理(3)
1 原子性1.1 java 中的原子操作1.2 long 和 double 的原子性1.3 原子操作 + 原子操作 !=原子操作2 面试常见问题2.1 单例模式2.1.1 饿汉式,静态常量,可用在类装载的时候就完成了实例化,避免了线程同步问题,因为类的加载是由JVM自身保证线程安全的。后续其他类想要调用,永远拿到的都是这个实例。/** * @Description 饿汉式,静态常量,可用 * @Author tzb * @Date 2021/4/11 16:08
2021-04-29 20:07:11
201
2
原创 VMware安装centos7
1 VMware安装centos72 关闭防火墙查看防火墙 systemctl status firewalld.service禁用防火墙 systemctl disable firewalld.service3 解决登录慢的问题使用xshell登录到centos系统虚拟机,可以登录上去,但是认证速度特别慢。因为在登录时,需要反向解析dns,因此,修改linux配置文件,vi /etc/ssh/sshd_config,将其注释去掉,并将yes改为no,即可解决。vi /e
2021-04-16 23:21:08
175
原创 深入浅出Java并发多线程(17) -并发编程底层原理(2)
1 可见性1.1 volatile1.1.1 volatile适用的场合package jmm;import java.util.concurrent.atomic.AtomicInteger;/** * @Description 不适用volatile * @Author tzb * @Date 2021/4/7 20:50 * @Version 1.0 **/public class NoVolatile implements Runnable { volatil
2021-04-11 15:46:37
148
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人