上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 19 下一页
摘要: 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" x 阅读全文
posted @ 2021-01-05 13:36 凸然猿 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 前言: 在JavaWeb日常实践中,注册功能是必不可少的,但一直用明文的方式去将密码持久化进数据库是非常不安全的,因此我找到了解决方法,那就是加密。 而目前常见的就是md5加密,在以往的那些年md5加密确实非常实用,但依旧有破解的方法(有人说md5加密是不可逆的怎么可能破解),答案就是海量数据的抓取 阅读全文
posted @ 2021-01-05 13:06 凸然猿 阅读(821) 评论(0) 推荐(0) 编辑
摘要: 1.导包 <!--shiro整合spring--> <!-- https://mvnrepository.com/artifact/org.apache.shiro/shiro-spring --> <dependency> <groupId>org.apache.shiro</groupId> < 阅读全文
posted @ 2020-12-27 15:46 凸然猿 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 1.1什么是Shiro 1.Apache Shiro是一个java的安全(权限)框架 2.JavaSE和JavaEE都可以使用 3.shiro作用在认证,授权,加密,会话管理,Web集成,缓存等 4.下载地址:https://shiro.apache.org 2.shiro架构(外部) 从应用程序角 阅读全文
posted @ 2020-12-20 11:23 凸然猿 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 前言:1.它是实现思想是AOP(配置类) 2.作用:认证,授权(访问控制 ) 3.也可以用拦截器+原生代码实现,但过于冗余 4.SpringSecurity是依托与Spring的框架,几乎将所有webSecurity相关的功能全部封装,开发人员仅需使用即可,(约定大于配置) 1.主要的几个类 Web 阅读全文
posted @ 2020-12-12 14:05 凸然猿 阅读(1650) 评论(0) 推荐(0) 编辑
摘要: 1,导入mybatis的依赖 <dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId>mybatis-spring-boot-starter</artifactId> <version>2.1.4</version> < 阅读全文
posted @ 2020-12-02 19:59 凸然猿 阅读(66) 评论(0) 推荐(0) 编辑
摘要: 前言: 对于数据访问层,无论是 SQL(关系型数据库) 还是 NOSQL(非关系型数据库),Spring Boot 底层都是采用 Spring Data 的方式进行统一处理。 一,整合JDBC 1,在建立springboot时,引用相应模块,(springWeb,JDBC API,Mysql dri 阅读全文
posted @ 2020-12-02 19:49 凸然猿 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 如果想diy一些定制化的功能,只要写个组件,让后将它交给springboot,springboot就将他自动装配了1.实现diy视图解析器 //如果想diy一些定制化的功能,只要写个组件,让后将它交给springboot,springboot就将他自动装配了 //扩展springmvc dispat 阅读全文
posted @ 2020-12-02 13:44 凸然猿 阅读(102) 评论(0) 推荐(0) 编辑
摘要: 前言: Thymeleaf 官网:https://www.thymeleaf.org/ Thymeleaf 在Github 的主页:https://github.com/thymeleaf/thymeleaf 前端交给页面,以前开发,需要把他们转成jsp,好处:当查出一些数据转发到JSP页面以后,我 阅读全文
posted @ 2020-11-28 14:44 凸然猿 阅读(95) 评论(0) 推荐(0) 编辑
摘要: 一,可以写配置文件(application.yaml)的地址 1.file:./config/ 2.file:./ 3.classpath:/config/ (类路径下的config) 4.classpath:/ 注:优先级由上至下,又高到低 那么如何实现多环境切换呢? 方式一:properties 阅读全文
posted @ 2020-11-25 20:46 凸然猿 阅读(271) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 19 下一页