Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
platform
/
finance_serv
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit f06873b6
authored
Aug 06, 2018
by
谢明辉
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'develop' of
http://192.168.9.26/platform/finance_serv
into develop
2 parents
391e9238
eec79bf1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
12 deletions
code/finance_serv/src/main/java/com/vion/financial/controller/BaseController.java
code/finance_serv/src/main/resources/application.yml
code/finance_serv/src/main/java/com/vion/financial/controller/BaseController.java
View file @
f06873b
package
com
.
vion
.
financial
.
controller
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
@RestController
@RequestMapping
(
value
=
"/api/v1/financial/contracts"
)
public
class
BaseController
{
}
package
com
.
vion
.
financial
.
controller
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.servlet.config.annotation.CorsRegistry
;
import
org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
;
@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
);
}
}
code/finance_serv/src/main/resources/application.yml
View file @
f06873b
...
...
@@ -45,8 +45,8 @@ logging:
finance
:
authurl
:
http://192.168.9.162:20080/api/v1/auth/users
appendsavepath
:
appendurl
:
appendsavepath
:
appendurl
:
#pagehelper:
# helperDialect: postgresql
# reasonable: true
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment