- 博客(2)
- 问答 (1)
- 收藏
- 关注
原创 设置Security中的token认证过滤器
在实现MvcSecurityConfiguration的类configure(HttpSecurity http)方法中添加如下内容: http.exceptionHandling() .authenticationEntryPoint(new UnauthorizedEntryPoint()) .and() .csrf().disable() .logout()
2021-07-15 11:06:55 1248
原创 vue中跨域请求解决方式之一使用node.js代理
步骤一 在vue的项目根路径下添加一个vue.config.js文件 步骤二 添加如下所示代码 let proxyObj = {} proxyObj['/'] = { //websocket ws: false, //目标地址 target: 'http://localhost:8089', //发送请求的host被设置成target changeOrigin: true, //不重写请求地址 pathRewrite: { '^/': '/' } }
2021-06-13 11:56:22 205
空空如也
can't concat str to bytes
2018-12-24
TA创建的收藏夹 TA关注的收藏夹
TA关注的人