spring4. 3. Method of realizing cross domain CORS
•
Java
First of all, my JDK is 1.8, Tomcat is 8.0, and my project is SSM + Maven.
Spring's framework is 4.3 When using, you only need to annotate @ crossorigin before the @ controller annotation of the controller, and then in springmvc XML configuration file add
Here is a screenshot of adding annotations to the controller layer
The above spring 4 3 the way to realize cross domain CORS is all the content shared by Xiaobian. I hope it can give you a reference and support more programming tips.
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码