Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
spring-microservice-exam
Project
Overview
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
汪想
spring-microservice-exam
Commits
8907173a
Commit
8907173a
authored
May 25, 2020
by
wangx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initial commit
parent
60097ced
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
88 additions
and
82 deletions
+88
-82
SecurityConstant.java
...hub/tangyi/common/security/constant/SecurityConstant.java
+1
-1
pom.xml
config-service/pom.xml
+4
-4
bootstrap.yml
config-service/src/main/resources/bootstrap.yml
+5
-5
auth-service.yml
config-service/src/main/resources/config/auth-service.yml
+10
-9
exam-service.yml
config-service/src/main/resources/config/exam-service.yml
+10
-9
gateway-service.yml
config-service/src/main/resources/config/gateway-service.yml
+10
-9
monitor-service.yml
config-service/src/main/resources/config/monitor-service.yml
+5
-4
msc-service.yml
config-service/src/main/resources/config/msc-service.yml
+7
-6
user-service.yml
config-service/src/main/resources/config/user-service.yml
+10
-9
pom.xml
gateway-service/pom.xml
+4
-4
pom.xml
modules/auth-service-parent/auth-service/pom.xml
+4
-4
pom.xml
modules/exam-service-parent/exam-service/pom.xml
+4
-4
pom.xml
modules/msc-service-parent/msc-service/pom.xml
+4
-4
pom.xml
modules/user-service-parent/user-service/pom.xml
+4
-4
pom.xml
monitor-service/pom.xml
+4
-4
pom.xml
pom.xml
+2
-2
No files found.
common/common-security/src/main/java/com/github/tangyi/common/security/constant/SecurityConstant.java
View file @
8907173a
...
...
@@ -49,7 +49,7 @@ public class SecurityConstant {
/**
* 默认租户编号
*/
public
static
final
String
DEFAULT_TENANT_CODE
=
"
gitee
"
;
public
static
final
String
DEFAULT_TENANT_CODE
=
"
lencti
"
;
/**
* 租户编号
...
...
config-service/pom.xml
View file @
8907173a
...
...
@@ -52,12 +52,12 @@
</plugin>
<!-- docker的maven插件 -->
<
!--<
plugin>
<plugin>
<groupId>
com.spotify
</groupId>
<artifactId>
dockerfile-maven-plugin
</artifactId>
<version>
${docker.maven.verion}
</version>
<executions>
<!–执行 mvn package 时 自动构建docker镜像并推送到仓库 –>
<!--执行 mvn package 时 自动构建docker镜像并推送到仓库 -->
<execution>
<id>
default
</id>
<phase>
package
</phase>
...
...
@@ -70,12 +70,12 @@
<configuration>
<repository>
${docker.registry}/${docker.namespace}/${project.artifactId}
</repository>
<tag>
latest
</tag>
<!– 构建参数,指定jar包名称 –>
<!-- 构建参数,指定jar包名称 -->
<buildArgs>
<JAR_FILE>
${project.name}.jar
</JAR_FILE>
</buildArgs>
</configuration>
</plugin>
-->
</plugin>
</plugins>
</build>
...
...
config-service/src/main/resources/bootstrap.yml
View file @
8907173a
...
...
@@ -30,7 +30,7 @@ spring:
host
:
${CONSUL_HOST:localhost}
port
:
${CONSUL_PORT:8500}
rabbitmq
:
host
:
${RABBIT_HOST:localhost}
port
:
${RABBIT_PORT:5672}
username
:
${RABBITMQ_DEFAULT_USER:guest}
password
:
${RABBITMQ_DEFAULT_PASS:guest}
\ No newline at end of file
host
:
123.56.187.202
port
:
9063
username
:
rabbitmq
password
:
abcd-1234
\ No newline at end of file
config-service/src/main/resources/config/auth-service.yml
View file @
8907173a
...
...
@@ -2,19 +2,20 @@ server:
port
:
9182
spring
:
datasource
:
url
:
jdbc:mysql://
${MYSQL_HOST:localhost}:${MYSQL_PORT:3306}/${DB_AUTH:microservice-auth}
?useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=CTT&characterEncoding=UTF-8
username
:
${MYSQL_USERNAME:root}
password
:
${MYSQL_PASSWORD:11}
url
:
jdbc:mysql://
123.56.187.202:23306/exam
?useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=CTT&characterEncoding=UTF-8
username
:
lcrxyf
password
:
Abcd-0066
type
:
com.zaxxer.hikari.HikariDataSource
driver-class-name
:
com.mysql.jdbc.Driver
redis
:
host
:
${REDIS_HOST:localhost}
port
:
${REDIS_PORT:6379}
host
:
123.56.187.202
port
:
26379
password
:
a1b2c3d4
rabbitmq
:
host
:
${RABBIT_HOST:localhost}
port
:
${RABBIT_PORT:5672}
username
:
${RABBITMQ_DEFAULT_USER:guest}
password
:
${RABBITMQ_DEFAULT_PASS:guest}
host
:
123.56.187.202
port
:
9063
username
:
rabbitmq
password
:
abcd-1234
boot
:
admin
:
client
:
...
...
config-service/src/main/resources/config/exam-service.yml
View file @
8907173a
...
...
@@ -2,19 +2,20 @@ server:
port
:
9184
spring
:
datasource
:
url
:
jdbc:mysql://
${MYSQL_HOST:localhost}:${MYSQL_PORT:3306}/${DB_EXAM:microservice-exam}
?useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=CTT&characterEncoding=UTF-8
username
:
${MYSQL_USERNAME:root}
password
:
${MYSQL_PASSWORD:11}
url
:
jdbc:mysql://
123.56.187.202:23306/exam
?useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=CTT&characterEncoding=UTF-8
username
:
lcrxyf
password
:
Abcd-0066
type
:
com.zaxxer.hikari.HikariDataSource
driver-class-name
:
com.mysql.jdbc.Driver
redis
:
host
:
${REDIS_HOST:localhost}
port
:
${REDIS_PORT:6379}
host
:
123.56.187.202
port
:
26379
password
:
a1b2c3d4
rabbitmq
:
host
:
${RABBIT_HOST:localhost}
port
:
${RABBIT_PORT:5672}
username
:
${RABBITMQ_DEFAULT_USER:guest}
password
:
${RABBITMQ_DEFAULT_PASS:guest}
host
:
123.56.187.202
port
:
9063
username
:
rabbitmq
password
:
abcd-1234
boot
:
admin
:
client
:
...
...
config-service/src/main/resources/config/gateway-service.yml
View file @
8907173a
...
...
@@ -11,19 +11,20 @@ server:
# key-store-password: test
spring
:
datasource
:
url
:
jdbc:mysql://
${MYSQL_HOST:localhost}:${MYSQL_PORT:3306}/${DB_GATEWAY:microservice-gateway}
?useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=CTT&characterEncoding=UTF-8
username
:
${MYSQL_USERNAME:root}
password
:
${MYSQL_PASSWORD:11}
url
:
jdbc:mysql://
123.56.187.202:23306/exam
?useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=CTT&characterEncoding=UTF-8
username
:
lcrxyf
password
:
Abcd-0066
type
:
com.zaxxer.hikari.HikariDataSource
driver-class-name
:
com.mysql.jdbc.Driver
redis
:
host
:
${REDIS_HOST:localhost}
port
:
${REDIS_PORT:6379}
host
:
123.56.187.202
port
:
26379
password
:
a1b2c3d4
rabbitmq
:
host
:
${RABBIT_HOST:localhost}
port
:
${RABBIT_PORT:5672}
username
:
${RABBITMQ_DEFAULT_USER:guest}
password
:
${RABBITMQ_DEFAULT_PASS:guest}
host
:
123.56.187.202
port
:
9063
username
:
rabbitmq
password
:
abcd-1234
security
:
# oauth2配置
oauth2
:
...
...
config-service/src/main/resources/config/monitor-service.yml
View file @
8907173a
...
...
@@ -11,11 +11,12 @@ spring:
user
:
name
:
${ADMIN_USERNAME:admin}
password
:
${ADMIN_PASSWORD:11}
rabbitmq
:
host
:
${RABBIT_HOST:localhost}
port
:
${RABBIT_PORT:5672}
username
:
${RABBITMQ_DEFAULT_USER:guest}
password
:
${RABBITMQ_DEFAULT_PASS:guest}
host
:
123.56.187.202
port
:
9063
username
:
rabbitmq
password
:
abcd-1234
boot
:
admin
:
context-path
:
/admin
...
...
config-service/src/main/resources/config/msc-service.yml
View file @
8907173a
...
...
@@ -2,13 +2,14 @@ server:
port
:
9185
spring
:
redis
:
host
:
${REDIS_HOST:localhost}
port
:
${REDIS_PORT:6379}
host
:
123.56.187.202
port
:
26379
password
:
a1b2c3d4
rabbitmq
:
host
:
${RABBIT_HOST:localhost}
port
:
${RABBIT_PORT:5672}
username
:
${RABBITMQ_DEFAULT_USER:guest}
password
:
${RABBITMQ_DEFAULT_PASS:guest}
host
:
123.56.187.202
port
:
9063
username
:
rabbitmq
password
:
abcd-1234
boot
:
admin
:
client
:
...
...
config-service/src/main/resources/config/user-service.yml
View file @
8907173a
...
...
@@ -8,19 +8,20 @@ spring:
# 单次请求的文件的总大小
max-request-size
:
100MB
datasource
:
url
:
jdbc:mysql://
${MYSQL_HOST:localhost}:${MYSQL_PORT:3306}/${DB_USER:microservice-user}
?useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=CTT&characterEncoding=UTF-8
username
:
${MYSQL_USERNAME:root}
password
:
${MYSQL_PASSWORD:11}
url
:
jdbc:mysql://
123.56.187.202:23306/exam
?useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=CTT&characterEncoding=UTF-8
username
:
lcrxyf
password
:
Abcd-0066
type
:
com.zaxxer.hikari.HikariDataSource
driver-class-name
:
com.mysql.jdbc.Driver
redis
:
host
:
${REDIS_HOST:localhost}
port
:
${REDIS_PORT:6379}
host
:
123.56.187.202
port
:
26379
password
:
a1b2c3d4
rabbitmq
:
host
:
${RABBIT_HOST:localhost}
port
:
${RABBIT_PORT:5672}
username
:
${RABBITMQ_DEFAULT_USER:guest}
password
:
${RABBITMQ_DEFAULT_PASS:guest}
host
:
123.56.187.202
port
:
9063
username
:
rabbitmq
password
:
abcd-1234
boot
:
admin
:
client
:
...
...
gateway-service/pom.xml
View file @
8907173a
...
...
@@ -102,12 +102,12 @@
</plugin>
<!-- docker的maven插件 -->
<
!--<
plugin>
<plugin>
<groupId>
com.spotify
</groupId>
<artifactId>
dockerfile-maven-plugin
</artifactId>
<version>
${docker.maven.verion}
</version>
<executions>
<!–执行 mvn package 时 自动构建docker镜像并推送到仓库 –>
<!--执行 mvn package 时 自动构建docker镜像并推送到仓库 -->
<execution>
<id>
default
</id>
<phase>
package
</phase>
...
...
@@ -120,12 +120,12 @@
<configuration>
<repository>
${docker.registry}/${docker.namespace}/${project.artifactId}
</repository>
<tag>
latest
</tag>
<!– 构建参数,指定jar包名称 –>
<!-- 构建参数,指定jar包名称 -->
<buildArgs>
<JAR_FILE>
${project.name}.jar
</JAR_FILE>
</buildArgs>
</configuration>
</plugin>
-->
</plugin>
</plugins>
</build>
...
...
modules/auth-service-parent/auth-service/pom.xml
View file @
8907173a
...
...
@@ -123,12 +123,12 @@
</plugin>
<!-- docker的maven插件 -->
<
!--<
plugin>
<plugin>
<groupId>
com.spotify
</groupId>
<artifactId>
dockerfile-maven-plugin
</artifactId>
<version>
${docker.maven.verion}
</version>
<executions>
<!–执行 mvn package 时 自动构建docker镜像并推送到仓库 –>
<!--执行 mvn package 时 自动构建docker镜像并推送到仓库 -->
<execution>
<id>
default
</id>
<phase>
package
</phase>
...
...
@@ -141,12 +141,12 @@
<configuration>
<repository>
${docker.registry}/${docker.namespace}/${project.artifactId}
</repository>
<tag>
latest
</tag>
<!– 构建参数,指定jar包名称 –>
<!-- 构建参数,指定jar包名称 -->
<buildArgs>
<JAR_FILE>
${project.name}.jar
</JAR_FILE>
</buildArgs>
</configuration>
</plugin>
-->
</plugin>
</plugins>
</build>
...
...
modules/exam-service-parent/exam-service/pom.xml
View file @
8907173a
...
...
@@ -100,12 +100,12 @@
</plugin>
<!-- docker的maven插件 -->
<
!--<
plugin>
<plugin>
<groupId>
com.spotify
</groupId>
<artifactId>
dockerfile-maven-plugin
</artifactId>
<version>
${docker.maven.verion}
</version>
<executions>
<!–执行 mvn package 时 自动构建docker镜像并推送到仓库 –>
<!--执行 mvn package 时 自动构建docker镜像并推送到仓库 -->
<execution>
<id>
default
</id>
<phase>
package
</phase>
...
...
@@ -118,12 +118,12 @@
<configuration>
<repository>
${docker.registry}/${docker.namespace}/${project.artifactId}
</repository>
<tag>
latest
</tag>
<!– 构建参数,指定jar包名称 –>
<!-- 构建参数,指定jar包名称 -->
<buildArgs>
<JAR_FILE>
${project.name}.jar
</JAR_FILE>
</buildArgs>
</configuration>
</plugin>
-->
</plugin>
</plugins>
</build>
...
...
modules/msc-service-parent/msc-service/pom.xml
View file @
8907173a
...
...
@@ -83,12 +83,12 @@
</plugin>
<!-- docker的maven插件 -->
<
!--<
plugin>
<plugin>
<groupId>
com.spotify
</groupId>
<artifactId>
dockerfile-maven-plugin
</artifactId>
<version>
${docker.maven.verion}
</version>
<executions>
<!–执行 mvn package 时 自动构建docker镜像并推送到仓库 –>
<!--执行 mvn package 时 自动构建docker镜像并推送到仓库 -->
<execution>
<id>
default
</id>
<phase>
package
</phase>
...
...
@@ -101,12 +101,12 @@
<configuration>
<repository>
${docker.registry}/${docker.namespace}/${project.artifactId}
</repository>
<tag>
latest
</tag>
<!– 构建参数,指定jar包名称 –>
<!-- 构建参数,指定jar包名称 -->
<buildArgs>
<JAR_FILE>
${project.name}.jar
</JAR_FILE>
</buildArgs>
</configuration>
</plugin>
-->
</plugin>
</plugins>
</build>
...
...
modules/user-service-parent/user-service/pom.xml
View file @
8907173a
...
...
@@ -118,12 +118,12 @@
</plugin>
<!-- docker的maven插件 -->
<
!--<
plugin>
<plugin>
<groupId>
com.spotify
</groupId>
<artifactId>
dockerfile-maven-plugin
</artifactId>
<version>
${docker.maven.verion}
</version>
<executions>
<!–执行 mvn package 时 自动构建docker镜像并推送到仓库 –>
<!--执行 mvn package 时 自动构建docker镜像并推送到仓库 -->
<execution>
<id>
default
</id>
<phase>
package
</phase>
...
...
@@ -136,12 +136,12 @@
<configuration>
<repository>
${docker.registry}/${docker.namespace}/${project.artifactId}
</repository>
<tag>
latest
</tag>
<!– 构建参数,指定jar包名称 –>
<!-- 构建参数,指定jar包名称 -->
<buildArgs>
<JAR_FILE>
${project.name}.jar
</JAR_FILE>
</buildArgs>
</configuration>
</plugin>
-->
</plugin>
</plugins>
</build>
...
...
monitor-service/pom.xml
View file @
8907173a
...
...
@@ -69,12 +69,12 @@
</plugin>
<!-- docker的maven插件 -->
<
!--<
plugin>
<plugin>
<groupId>
com.spotify
</groupId>
<artifactId>
dockerfile-maven-plugin
</artifactId>
<version>
${docker.maven.verion}
</version>
<executions>
<!–执行 mvn package 时 自动构建docker镜像并推送到仓库 –>
<!--执行 mvn package 时 自动构建docker镜像并推送到仓库 -->
<execution>
<id>
default
</id>
<phase>
package
</phase>
...
...
@@ -87,12 +87,12 @@
<configuration>
<repository>
${docker.registry}/${docker.namespace}/${project.artifactId}
</repository>
<tag>
latest
</tag>
<!– 构建参数,指定jar包名称 –>
<!-- 构建参数,指定jar包名称 -->
<buildArgs>
<JAR_FILE>
${project.name}.jar
</JAR_FILE>
</buildArgs>
</configuration>
</plugin>
-->
</plugin>
</plugins>
</build>
...
...
pom.xml
View file @
8907173a
...
...
@@ -78,8 +78,8 @@
<!-- docker -->
<docker.maven.verion>
1.4.3
</docker.maven.verion>
<docker.registry>
registry.cn-
hangzhou
.aliyuncs.com
</docker.registry>
<docker.namespace>
spring-microservice-exam
</docker.namespace>
<docker.registry>
registry.cn-
beijing
.aliyuncs.com
</docker.registry>
<docker.namespace>
spring-microservice-exam
e
</docker.namespace>
<scanner.maven.version>
3.3.0.603
</scanner.maven.version>
<!-- logstash -->
...
...
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