Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
D
data-server
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
licc
data-server
Commits
1b7104cc
Commit
1b7104cc
authored
Mar 05, 2021
by
m1991
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
008e8e12
90a898c9
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
4 deletions
+22
-4
Dockerfile
Dockerfile
+19
-0
pom.xml
pom.xml
+1
-2
pom.xml
wisenergy-web-admin/pom.xml
+1
-1
AuthFilter.java
...c/main/java/cn/wisenergy/web/shiro/filter/AuthFilter.java
+1
-1
No files found.
Dockerfile
0 → 100644
View file @
1b7104cc
FROM
openjdk:8-jdk-alpine
USER
root
MAINTAINER
Danny Lee
VOLUME
/opt
ARG
JAR_FILE
#ADD ./project-web-api/target/data-station.jar data-station.jar
COPY
./wisenergy-web-admin/target/shop-mall.jar /opt/
#ADD hosts /tmp
WORKDIR
/opt
EXPOSE
8080
ENV
TZ=Asia/Shanghai
#ENV TZ=PRC
RUN
ln
-snf
/usr/share/zoneinfo/
$TZ
/etc/localtime
&&
echo
$TZ
>
/etc/timezone
#CMD cat /tmp/hosts >> /etc/hosts
CMD
["java","-Djava.security.egd=file:/dev/./urandom","-Dspring.profiles.active=test","-jar","shop-mall.jar"]
#CMD cat /etc/hosts
#RUN/ENTRYPOINT/CMD nohup java -jar -Xmx512m -Xms512m -Xss256k -XX:MaxDirectMemorySize=512m -XX:+UseG1GC -XX:MaxGCPauseMillis=200 -XX:G1ReservePercent=25 -XX:InitiatingHeapOccupancyPercent=40 -Djava.awt.headless=true -Djava.net.preferIPv4Stack=true -Dfile.encoding=UTF-8 -Djava.security.egd=file:/dev/./urandom -Dserver.port=8090 data-station.jar > data-station.log 2>&1 &
\ No newline at end of file
pom.xml
View file @
1b7104cc
<?xml version="1.0" encoding="UTF-8"?>
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
<parent>
...
...
wisenergy-web-admin/pom.xml
View file @
1b7104cc
...
...
@@ -44,7 +44,7 @@
<!-- MAVEN构建 -->
<build>
<finalName>
${project.artifactId}-${moduleVersion.wisenergy-web-admin}
</finalName>
<finalName>
shop-mall
</finalName>
<plugins>
<plugin>
<groupId>
org.springframework.boot
</groupId>
...
...
wisenergy-web-admin/src/main/java/cn/wisenergy/web/shiro/filter/AuthFilter.java
View file @
1b7104cc
...
...
@@ -74,7 +74,7 @@ public class AuthFilter extends AuthenticatingFilter {
HttpServletResponse
httpResponse
=
(
HttpServletResponse
)
response
;
httpResponse
.
setHeader
(
"Access-Control-Allow-Credentials"
,
"true"
);
httpResponse
.
setHeader
(
"Access-Control-Allow-Origin"
,
HttpContextUtils
.
getOrigin
());
httpResponse
.
setCharacterEncoding
(
"
gbk
"
);
httpResponse
.
setCharacterEncoding
(
"
UTF-8
"
);
Result
result
=
new
Result
();
result
.
setResult
(
Result
.
RESULT_FLG
.
FAIL
.
getValue
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment