08 2021 档案
摘要:关键字volatile是线程同步的轻量级实现,所以volatile性能肯定比synchronized要好,并且只能修改变量,而synchronized可以修饰方法,以及代码块。 多线程访问volatile不会发生阻塞,而synchronized会出现阻塞 volatile能保证数据的可见性,但不能保
阅读全文
摘要:118 119 120 121 123 124 OOA是在一个系统的开发过程中进行了系统业务调查以后,按照面向对象的思想来分析问题。OOA与结构化分析有较大的区别。OOA所强调的是在系统调查资料的基础上,针对OO方法所需要的素材进行的归类分析和整理,而不是对管理业务现状和方法的分析。 125 126
阅读全文
摘要:109 110 111 112 113 114 115 116 117
阅读全文
摘要:93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108
阅读全文
摘要:80 81 82 83 84 85 86 87 88 89 90 91 92
阅读全文
摘要:74 75 76 77 78 79
阅读全文
摘要:59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
阅读全文
摘要:50 51 52 53 54 55 56 57 58
阅读全文
摘要:44 45 46 47 48 49
阅读全文
摘要:36 37 38 39 40 41 42 43
阅读全文
摘要:../ 那么源码中后面的处理又是同3.2和3.3一样的了,进入FilterChainProxy中...
阅读全文
摘要:springboot中使用springsecurity的注解和标签 用法跟3.1和3.2中一致
阅读全文
摘要:package com.haifei.pojo; import java.io.Serializable; public class User implements Serializable { private Integer id; private String username; private
阅读全文
摘要:1 <!DOCTYPE html> <html lang="en" xmlns:th="http://www.thymeleaf.org"> <head> <meta charset="UTF-8"> <title>login</title> </head> <body> <h1>登录管理</h1>
阅读全文
摘要:<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:sc
阅读全文
摘要:public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain) throws IOException, ServletException { HttpServletRequest request = (
阅读全文
摘要:doFilter处理用户请求 doFilterInternal根据当前的请求获取对应的过滤器链 主要过滤器:主要过滤器 | ProcessOn免费在线作图,在线流程图,在线思维导图 private String generateLoginPageHtml(HttpServletRequest req
阅读全文
摘要:<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
阅读全文
摘要:19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
阅读全文
摘要:<%-- Created by IntelliJ IDEA. User: yubaby Date: 2021/8/16 Time: 22:17 To change this template use File | Settings | File Templates. --%> <%@ page co
阅读全文
摘要:在spring-mvc.xml中开启对权限控制注解的支持(有三种) <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://
阅读全文
摘要:1 打开浏览器 关闭浏览器 再次打开浏览器 2 (这个表的创建格式是固定的!?) CREATE TABLE `persistent_logins` ( `username` VARCHAR (64) NOT NULL, `series` VARCHAR (64) NOT NULL, `token`
阅读全文
摘要:12 13 14 15 16 17 18
阅读全文
摘要:1 2 3 4 5 6 7 8 9 10 11
阅读全文
摘要:package com.haifei.service.impl; import com.haifei.mapper.UserMapper; import com.haifei.pojo.User; import com.haifei.service.UserService; import org.s
阅读全文
摘要:1 不加密 或 2 加密 首先生成密文 手动修改数据库数据 修改配置文件 去掉{noop} 运行测试 3 小问题 (7条消息) SpringSecurity /favicon.ico请求 404问题_混沌人的博客-CSDN博客 整合SpringSecurity的时候,发现输入正确用户名密码校验通过后
阅读全文
摘要:前面的案例我们的账号信息是直接写在配置文件中的,这显然是不太好的,我们来介绍小如何实现和数据库中的信息进行认证 1 添加数据库相关的依赖 <!--数据库相关依赖--> <dependency> <groupId>org.mybatis</groupId> <artifactId>mybatis</a
阅读全文
摘要:为什么系统默认的登录页面提交没有CRSF拦截的问题呢?(原因如上) 我自定义的认证页面没有这个信息怎么办呢?两种方式: (1)关闭CSRF拦截 该方法实际降低了系统的安全性 (2)使用CSRF防护 在页面中添加security对应的taglib
阅读全文
摘要:<%-- Created by IntelliJ IDEA. User: yubaby Date: 2021/8/16 Time: 17:58 To change this template use File | Settings | File Templates. --%> <%@ page co
阅读全文
摘要:搭建初始web环境 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instan
阅读全文
摘要:
阅读全文
摘要:1 2 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xs
阅读全文
摘要:1 文档地址: https://www.yuque.com/atguigu/springboot 源码地址:https://gitee.com/leifengyang/springboot2 2 01、Spring与SpringBoot · 语雀 (yuque.com)
阅读全文
摘要:1 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:
阅读全文
摘要:<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:sc
阅读全文
摘要:1 <?xml version="1.0" encoding="UTF-8"?> 2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 3
阅读全文
摘要:SpringApplication是事件源对象,所有对象都是通过这个对象产生的 1 SpringApplication的构造方法 1 public SpringApplication(Class... primarySources) { 2 this((ResourceLoader)null, pr
阅读全文
摘要:1 (1) 1 package com.haifei.springboot12listener.listener; 2 3 import org.springframework.context.ApplicationContextInitializer; 4 import org.springfra
阅读全文
摘要:1 实现 1 package com.haifei.redis.config; 2 3 import org.springframework.boot.context.properties.EnableConfigurationProperties; 4 import org.springframe
阅读全文
摘要:1 分析 https://mvnrepository.com/ 2 创建项目 创建springboot模块时,Spring Initializr报错Error:connect timed out,解决如下 (1)不好使-舍弃 https://blog.csdn.net/qq_37846741/art
阅读全文
摘要:1 // 2 // Source code recreated from a .class file by IntelliJ IDEA 3 // (powered by Fernflower decompiler) 4 // 5 6 package org.springframework.boot.
阅读全文
摘要:1 导入Bean 1 package com.haifei.domain; 2 3 public class User { 4 } 1 package com.haifei.config; 2 3 import com.haifei.domain.User; 4 import org.springf
阅读全文
摘要:1 创建模块1 1 <?xml version="1.0" encoding="UTF-8"?> 2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-inst
阅读全文