Commit f06873b6 by 谢明辉

Merge branch 'develop' of http://192.168.9.26/platform/finance_serv into develop

2 parents 391e9238 eec79bf1
package com.vion.financial.controller; package com.vion.financial.controller;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.config.annotation.CorsRegistry;
@RestController import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
@RequestMapping(value="/api/v1/financial/contracts")
public class BaseController { @RestController
@RequestMapping(value="/api/v1/financial/contracts")
} public class BaseController extends WebMvcConfigurerAdapter {
public void assCoresMappings(CorsRegistry corsRegistry) {
corsRegistry.addMapping("/**")
.allowedOrigins("*")
.allowedMethods("GET","POST","PUT","OPTION","DELETE","PATCH")
.allowCredentials(true).maxAge(3600);
}
}
...@@ -45,8 +45,8 @@ logging: ...@@ -45,8 +45,8 @@ logging:
finance: finance:
authurl: http://192.168.9.162:20080/api/v1/auth/users authurl: http://192.168.9.162:20080/api/v1/auth/users
appendsavepath: appendsavepath:
appendurl: appendurl:
#pagehelper: #pagehelper:
# helperDialect: postgresql # helperDialect: postgresql
# reasonable: true # reasonable: true
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!