上一页 1 ··· 89 90 91 92 93 94 95 96 97 ··· 125 下一页
摘要: 官网 http://www.axios-js.com/ axios 是什么 1. Axios 是一个基于 promise 的 HTTP 库,可以用在浏览器和 node.js 中。目前是前端最流行的 ajax 请求库 2. react/vue 官方都推荐使用 axios 发 ajax 请求 axios 阅读全文
posted @ 2021-11-23 23:17 程序员小明1024 阅读(3342) 评论(0) 推荐(0) 编辑
摘要: 1.@WebFilter 通过 @WebFilter 注解来标记一个过滤器,这种方式相信大家很容易想到。这是将 Servlet 中的那一套东西直接拿到 Spring Boot 上用。 具体做法就是通过 @WebFilter 注解来标记一个 Filter,如下: @WebFilter(urlPatte 阅读全文
posted @ 2021-11-23 22:50 程序员小明1024 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 参考 JSON Web Tokens官网 Libraries里有各种语言的推荐包jjwt的Github网址 JWT官网里面star最多的,所以用了jjwt官方 生成和解析的例子前后端分离之JWT用户认证 对JWT有详细的介绍Java安全验证之JWT实践 依赖 流程 登录成功后,在Java中生成Jwt 阅读全文
posted @ 2021-11-16 15:44 程序员小明1024 阅读(2675) 评论(0) 推荐(0) 编辑
摘要: web开发 官网地址:https://docs.spring.io/spring-boot/docs/current/reference/html/features.html#features 1、SpringMVC自动配置概览 Spring Boot provides auto-configura 阅读全文
posted @ 2021-11-16 00:37 程序员小明1024 阅读(101) 评论(0) 推荐(0) 编辑
摘要: 本文cookie和session的存值和取值以及拦截器token验证 pom添加依赖 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http:/ 阅读全文
posted @ 2021-11-15 21:35 程序员小明1024 阅读(523) 评论(0) 推荐(0) 编辑
摘要: 1、SpringBoot特点 1.1、依赖管理 父项目做依赖管理 依赖管理 <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <versio 阅读全文
posted @ 2021-11-13 19:13 程序员小明1024 阅读(95) 评论(0) 推荐(0) 编辑
摘要: 1、系统要求 Java 8 & 兼容java14 . Maven 3.3+ idea 2019.1.2 1.1、maven设置 <mirrors> <mirror> <id>nexus-aliyun</id> <mirrorOf>central</mirrorOf> <name>Nexus aliy 阅读全文
posted @ 2021-11-12 23:34 程序员小明1024 阅读(37) 评论(0) 推荐(0) 编辑
摘要: Spring Boot 入门 官网: https://docs.spring.io/spring-boot/docs/1.5.9.RELEASE/reference/htmlsingle/#using-boot-starter https://spring.io/projects/spring-bo 阅读全文
posted @ 2021-11-12 22:37 程序员小明1024 阅读(61) 评论(0) 推荐(0) 编辑
摘要: 今天来聊一个面试中经常会被问到的问题,咱们一起必须把这个问题搞懂。 问题:spring 中为什么需要用三级缓存来解决这个问题?用二级缓存可以么? 我先给出答案:不可用。 这里先声明下: 本文未指明 bean scope 默认情况下,所有 bean 都是单例的,即 scope 是 singleton, 阅读全文
posted @ 2021-11-07 23:31 程序员小明1024 阅读(1385) 评论(0) 推荐(0) 编辑
摘要: 本文主要内容:带大家掌握spring应用上下文的生命周期。 为什么需要掌握这个? 1、应对面试,面试中经常会问到 2、项目中想扩展spring的,那么这部分内容必须掌握 3、更容易阅读spirng源码 1、什么是spring应用上下文? 接口org.springframework.context.A 阅读全文
posted @ 2021-11-07 23:17 程序员小明1024 阅读(214) 评论(0) 推荐(0) 编辑
上一页 1 ··· 89 90 91 92 93 94 95 96 97 ··· 125 下一页