//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);
|
// }
|
//}
|
//
|