Skip to content

Commit 2d5090e

Browse files
committed
banner
1 parent 687f9c6 commit 2d5090e

3 files changed

Lines changed: 23 additions & 1 deletion

File tree

core/src/main/java/info/xiaomo/core/filter/CORSFilter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain)
4949
response.setHeader("Access-Control-Allow-Origin", "*");
5050
response.setHeader("Access-Control-Allow-Methods", "POST, GET, OPTIONS, DELETE");
5151
response.setHeader("Access-Control-Max-Age", "3600");
52-
response.setHeader("Access-Control-Allow-Headers", "x-requested-with");
52+
response.setHeader("Access-Control-Allow-Headers", "Origin, Accept, X-Requested-With, Content-Type, Access-Control-Request-Method, Access-Control-Request-Headers, If-Modified-Since");
5353
chain.doFilter(req, res);
5454
}
5555

website/src/main/resources/config/application.properties

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,6 @@ spring.datasource.driver-class-name=com.mysql.jdbc.Driver
1414
spring.jpa.database-platform=org.hibernate.dialect.MySQL5Dialect
1515
spring.jpa.hibernate.ddl-auto=update
1616
spring.jpa.show-sql=false
17+
18+
#other
19+
banner.location=config/banner-girl.txt
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
.::::.
2+
.::::::::.
3+
:::::::::::
4+
..:::::::::::'
5+
'::::::::::::'
6+
.::::::::::
7+
'::::::::::::::..
8+
..::::::::::::.
9+
``::::::::::::::::
10+
::::``:::::::::' .:::.
11+
::::' ':::::' .::::::::.
12+
.::::' :::: .:::::::'::::.
13+
.:::' ::::: .:::::::::' ':::::.
14+
.::' :::::.:::::::::' ':::::.
15+
.::' ::::::::::::::' ``::::.
16+
...::: ::::::::::::' ``::.
17+
```` ':. ':::::::::' ::::..
18+
'.:::::' ':'````..
19+
:: Spring Boot :: (v1.4.1.RELEASE)

0 commit comments

Comments
 (0)