Skip to content

Commit b57f533

Browse files
committed
.
1 parent 56637d1 commit b57f533

9 files changed

Lines changed: 9 additions & 1659 deletions

File tree

‎Dockerfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ FROM java:8
22
EXPOSE 8080
33

44
VOLUME /tmp
5-
ADD renren-fast.jar /app.jar
5+
ADD x-springboot.jar /app.jar
66
RUN bash -c 'touch /app.jar'
77
ENTRYPOINT ["java","-jar","/app.jar"]

‎docker-compose.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
version: '2'
22
services:
3-
renren-fast:
3+
x_springboot:
44
image: x_springboot/image
55
ports:
66
- "8080:8080"

‎pom.xml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@
236236
<command>pkill -f ${pack-name}</command>
237237
<command>rm -f ${service-path}/x_springboot.log</command>
238238
<!-- Restart jar package,write result into x_springboot.log -->
239-
<command><![CDATA[nohup java -jar ${service-path}/${pack-name} --spring.profiles.active=test > ${service-path}/renren.log 2>&1 & ]]></command>
239+
<command><![CDATA[nohup java -jar ${service-path}/${pack-name} --spring.profiles.active=test > ${service-path}/x-springboot.log 2>&1 & ]]></command>
240240
<command><![CDATA[netstat -nptl]]></command>
241241
<command><![CDATA[ps -ef | grep java | grep -v grep]]></command>
242242
</commands>

‎src/main/java/com/suke/czx/modules/app/utils/JwtUtils.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* @email object_czx@163.com
1717
* @date 2017/9/21 22:21
1818
*/
19-
@ConfigurationProperties(prefix = "renren.jwt")
19+
@ConfigurationProperties(prefix = "jwtconfig.jwt")
2020
@Component
2121
public class JwtUtils {
2222
private Logger logger = LoggerFactory.getLogger(getClass());

‎src/main/resources/application-dev.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ spring:
99
password: andy1994418
1010
second: #数据源2
1111
url: jdbc:mysql://192.168.0.201:3306/x_springboot?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8
12-
username: renren
12+
username: root
1313
password: 123456
1414
initial-size: 10
1515
max-active: 100

‎src/main/resources/application-pro.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ spring:
55
druid:
66
first:
77
url: jdbc:mysql://192.168.0.201:3306/x_springboot?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8
8-
username: renren
8+
username: root
99
password: 123456
1010
second:
1111
url: jdbc:mysql://192.168.0.201:3306/x_springboot?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8
12-
username: renren
12+
username: root
1313
password: 123456
1414
initial-size: 10
1515
max-active: 100

‎src/main/resources/application.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ mybatis:
4141
mapperLocations: classpath:mapper/**/*.xml
4242
configLocation: classpath:mybatis.xml
4343

44-
renren:
44+
jwtconfig:
4545
# APP模块,是通过jwt认证的,如果要使用APP模块,则需要修改【加密秘钥】
4646
jwt:
4747
# 加密秘钥

0 commit comments

Comments
 (0)