xuekang
2024-05-13 15a0280ae9e7db96fdf0744c722d214d2cb5a0e5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
//package com.nuvole.four.config;
//
//import org.springframework.context.annotation.Configuration;
//import org.springframework.web.servlet.config.annotation.CorsRegistry;
//import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
//
//// @formatter:off
//
///**
// *                .-~~~~~~~~~-._       _.-~~~~~~~~~-.
// *            __.'  @Author     ~.   .~    代码无Bug   `.__
// *          .'//     liu.q        \./       (秘籍)      \\`.
// *        .'// [916000612@qq.com]  |   欲练神功   引刀自宫  \\`.
// *      .'// .-~"""""""~~~~-._     |    _,-~~~~"""""""~-.  \\`.
// *    .'//.-"  2019-04-07     `-.  |  .-'     20:42       "-.\\`.
// *  .'//______.============-..   \ | /   ..-============.______\\`.
// *.'______________________________\|/______________________________`.
// *
// * @Description :
// */
//// @formatter:on
//
//@Configuration
//public class CorsConfig extends WebMvcConfigurerAdapter {
//    @Override
//    public void addCorsMappings(CorsRegistry registry) {
//        registry.addMapping("/**")
//                .allowedOrigins("*")
//                .allowCredentials(true)
//                .allowedMethods("GET", "POST", "DELETE", "PUT")
//                .maxAge(3600);
//    }
//}
//