上一页 1 ··· 89 90 91 92 93 94 95 96 97 ··· 125 下一页
摘要: Promise是什么 ES6中一个非常重要和好用的特性就是Promise 但是初次接触Promise会一脸懵逼,这TM是什么东西? 看看官方或者一些文章对它的介绍和用法,也是一头雾水。 Promise到底是做什么的呢? Promise是异步编程的一种解决方案。 那什么时候我们会来处理异步事件呢? 一 阅读全文
posted @ 2021-11-24 23:52 程序员小明1024 阅读(61) 评论(0) 推荐(0)
摘要: 官网 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 阅读(3834) 评论(0) 推荐(0)
摘要: 1.@WebFilter 通过 @WebFilter 注解来标记一个过滤器,这种方式相信大家很容易想到。这是将 Servlet 中的那一套东西直接拿到 Spring Boot 上用。 具体做法就是通过 @WebFilter 注解来标记一个 Filter,如下: @WebFilter(urlPatte 阅读全文
posted @ 2021-11-23 22:50 程序员小明1024 阅读(221) 评论(0) 推荐(0)
摘要: 参考 JSON Web Tokens官网 Libraries里有各种语言的推荐包jjwt的Github网址 JWT官网里面star最多的,所以用了jjwt官方 生成和解析的例子前后端分离之JWT用户认证 对JWT有详细的介绍Java安全验证之JWT实践 依赖 流程 登录成功后,在Java中生成Jwt 阅读全文
posted @ 2021-11-16 15:44 程序员小明1024 阅读(3579) 评论(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 阅读(120) 评论(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 阅读(567) 评论(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 阅读(119) 评论(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 阅读(48) 评论(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 阅读(79) 评论(0) 推荐(0)
摘要: 今天来聊一个面试中经常会被问到的问题,咱们一起必须把这个问题搞懂。 问题:spring 中为什么需要用三级缓存来解决这个问题?用二级缓存可以么? 我先给出答案:不可用。 这里先声明下: 本文未指明 bean scope 默认情况下,所有 bean 都是单例的,即 scope 是 singleton, 阅读全文
posted @ 2021-11-07 23:31 程序员小明1024 阅读(1464) 评论(0) 推荐(0)
上一页 1 ··· 89 90 91 92 93 94 95 96 97 ··· 125 下一页