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 4a55b380
authored
Aug 06, 2018
by
熊付
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
【跨域】
1 parent
da563d70
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
50 deletions
code/finance_serv/resources/application.yml
code/finance_serv/src/main/java/com/vion/financial/controller/BaseController.java
code/finance_serv/resources/application.yml
deleted
100644 → 0
View file @
da563d7
server
:
port
:
8080
spring
:
thymeleaf
:
prefix
:
classpath:/templates/thymeleaf/
suffix
:
.html
mode
:
HTML5
encoding
:
UTF-8
cache
:
false
datasource
:
url
:
jdbc:postgresql://192.168.9.162:5432/financial_serv
username
:
postgres
password
:
authpass
driver-class-name
:
org.postgresql.Driver
###################以下为druid增加的配置###########################
type
:
com.alibaba.druid.pool.DruidDataSource
# 下面为连接池的补充设置,应用到上面所有数据源中
# 初始化大小,最小,最大
initialSize
:
5
minIdle
:
5
maxActive
:
20
# 配置获取连接等待超时的时间
maxWait
:
60000
# 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
timeBetweenEvictionRunsMillis
:
60000
# 配置一个连接在池中最小生存的时间,单位是毫秒
minEvictableIdleTimeMillis
:
300000
# hikari:
# maximum-pool-size:
http
:
multipart
:
max-file-size
:
20Mb
max-request-size
:
40Mb
mybatis
:
mapper-locations
:
com/vion/financial/mapping/*.xml
logging
:
level
:
root
:
INFO
pattern
:
level
:
INFO
console
:
"
[financial_serv]-[%d{yyyy-MM-dd
HH:mm:ss.SSS}]-%m%n"
path
:
F:\LOG\
#pagehelper:
# helperDialect: postgresql
# reasonable: true
# supportMethodsArguments: true
# params: count=countSql
\ No newline at end of file
code/finance_serv/src/main/java/com/vion/financial/controller/BaseController.java
View file @
4a55b38
...
...
@@ -11,7 +11,7 @@ import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
@RequestMapping
(
value
=
"/api/v1/financial/contracts"
)
public
class
BaseController
extends
WebMvcConfigurerAdapter
{
public
void
assCoresMappings
(
CorsRegistry
corsRegistry
)
{
corsRegistry
.
addMapping
(
"/**"
)
corsRegistry
.
addMapping
(
"/
api/v1/financial/contracts/
**"
)
.
allowedOrigins
(
"*"
)
.
allowedMethods
(
"GET"
,
"POST"
,
"PUT"
,
"OPTION"
,
"DELETE"
,
"PATCH"
)
.
allowCredentials
(
true
).
maxAge
(
3600
);
...
...
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