logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

关于Springboot中跨域问题的解决(Response to preflight request doesn‘t pass access control check)

Springboot中跨域问题的解决等不及的小伙伴,直接跳到结论部分即可,谢谢!!!1. 背景1.1 使用技术栈Spring SecuritySpringbootVue.axiosJwt1.2 关键代码Spring Security实现了JWT验证配置类相关代码package xyz.yq56.sm.config;import org.springframework.beans.factory.a

#spring boot#java#spring
Springboot报错Required request part ‘file‘ is not present,说一点不一样的解决方法

1 堆栈信息老规矩,先贴出堆栈信息,可以看到最终的保存信息为:org.springframework.web.multipart.support.MissingServletRequestPartException: Required request part 'file' is not presentorg.springframework.web.multipart.support.Missin

#java#spring#spring boot
Docker容器启动时报错:container init caused “write /proc/self/attr/keycreate: permission denied““: unknown

1 问题描述1.1 报错完整信息docker: Error response from daemon: OCI runtime create failed: container_linux.go:449;container init caused "write /proc/self/attr/keycreate: permission denied"": unknown.1.2 报错背景linux

#java#docker#linux
Vue框架新手教程,一步步搭建即开即用Vue项目:Vue集成axios,Vuex,route和element.js

1 背景平时比较闲的时候呢,喜欢帮别人写写毕业设计,做做课设题目.但本人是正经的Java开发,前端那东西每次呢都是从其他开源项目扒下来修修补补.这两天比较闲,想着自己搭一个即开即用的Vue项目,日后就在element上面找找组件修改修改就可用那种.搜了搜博客发现.写Vue框架的不少,但是集成度比较高的几乎没有.像axios和springboot微服务搭配肯定会遇到跨域问题和请求头信息携带的问题,直

#java
Nginx启动异常及解决方案:Failed to start SYSV: NGINX is an HTTP(S) server, HTTP(S) reverse proxy

1.背景及描述当我使用systemctl start nginx.service或者service nginx start命令启动nginx,发现启动失败.当使用nginx -t却显示OK.查看状态,信息如下:[root@localhost logs]# systemctl status nginx.service● nginx.service - SYSV: NGINX is an HTTP(S

#nginx#java#centos
Docker容器启动时报错:container init caused “write /proc/self/attr/keycreate: permission denied““: unknown

1 问题描述1.1 报错完整信息docker: Error response from daemon: OCI runtime create failed: container_linux.go:449;container init caused "write /proc/self/attr/keycreate: permission denied"": unknown.1.2 报错背景linux

#java#docker#linux
到底了