会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
乐此不疲_Yang
博客园
首页
新随笔
联系
订阅
管理
2021年10月18日
django里面的继承
摘要: base.html <html> <head> </head> <body> ................. {% block content %} {% endblock %} </body> </html> index.html {% extends 'base.html' %}{% blo
阅读全文
posted @ 2021-10-18 22:02 乐此不疲_Yang
阅读(25)
评论(0)
推荐(0)
2021年8月4日
Springboot添加登陆拦截
摘要: 1)引入jwt(Json web token (JWT)) <dependency> <groupId>com.auth0</groupId> <artifactId>java-jwt</artifactId> <version>3.4.0</version></dependency>2) 添加自定
阅读全文
posted @ 2021-08-04 11:07 乐此不疲_Yang
阅读(338)
评论(0)
推荐(0)
2021年7月30日
SpringBoot java.lang.ClassCastException:ResourceHttpRequestHandler cannot be cast to HandlerMethod
摘要: Springboot 在配置个性化的webMVC时,静态资源的请求也被拦截的时候,会出现以上错误,所以需要忽略对静态资源的拦截 1) @Configurationpublic class MyMvcConfig implements WebMvcConfigurer { // 拦截所有请求 @Ove
阅读全文
posted @ 2021-07-30 19:52 乐此不疲_Yang
阅读(759)
评论(0)
推荐(0)
2021年7月29日
Vue中axios设置请求和响应拦截
摘要: main.js文件添加如下配置: Vue.prototype.$axios = axios 添加请求拦截 axios.interceptors.request.use( config => { if (localStorage.getItem('Authorization')) { console.
阅读全文
posted @ 2021-07-29 20:03 乐此不疲_Yang
阅读(1260)
评论(0)
推荐(0)
Srpingboot中API中的注解
摘要: Springboot中@RequestParam注释post请求的参数时,默认该参数的Required=true,且该API只支持提交form形式的数据,想以Json形式提交post请求的话,可以用@RequestBody注释 以下是@PathVariable, @RequestParam和@Req
阅读全文
posted @ 2021-07-29 15:19 乐此不疲_Yang
阅读(182)
评论(0)
推荐(0)
Get 请求和Post请求的区别
摘要: 以下数据来自:https://www.w3cschool.cn/htmltags/html-httpmethods.html 参考:https://www.cnblogs.com/logsharing/p/8448446.html GET 与 POST 下面的表格比较了两种 HTTP 方法:GET
阅读全文
posted @ 2021-07-29 10:11 乐此不疲_Yang
阅读(37)
评论(0)
推荐(0)
2021年7月14日
Vue嵌套路由
摘要: 1. App.vue里面有router-view,指向最顶层的路由 <div id="app"> <router-view></router-view> </div>2.在router文件里面配置的根目录级别的路由,是顶层路由渲染的组件,被渲染的组件就放在上面router-view的位置, 同样,一
阅读全文
posted @ 2021-07-14 17:47 乐此不疲_Yang
阅读(144)
评论(1)
推荐(0)
Vue render函数
摘要: 模板:Vue的模板基于纯HTML,基于Vue的模板语法,我们可以比较方便地声明数据和UI的关系。 AST:AST是Abstract Syntax Tree的简称,Vue使用HTML的Parser将HTML模板解析为AST,并且对AST进行一些优化的标记处理,提取最大的静态树,方便Virtual DO
阅读全文
posted @ 2021-07-14 13:22 乐此不疲_Yang
阅读(39)
评论(0)
推荐(0)
Vue 钩子函数
摘要: 1. VUE生命周期 2. 测试代码 data(){ return { userID:1 } }, beforeCreate(){ console.log("execute beforeCreate"); console.log("%c%s", "color:red","el : " + this.
阅读全文
posted @ 2021-07-14 10:48 乐此不疲_Yang
阅读(67)
评论(0)
推荐(0)
公告
点击右上角即可分享