记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
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
董敬伟
liquidnet-bus-v1
Commits
e1860999
Commit
e1860999
authored
Apr 07, 2021
by
董敬伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create
parent
0b828860
Changes
44
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
44 changed files
with
1706 additions
and
0 deletions
+1706
-0
pom.xml
liquidnet-bus-support/liquidnet-support-config/pom.xml
+36
-0
SupportConfigApplication.java
...om/liquidnet/support/config/SupportConfigApplication.java
+16
-0
application-dev.yml
...net-support-config/src/main/resources/application-dev.yml
+26
-0
application-prod.yml
...et-support-config/src/main/resources/application-prod.yml
+26
-0
application-support-config.yml
...-config/src/main/resources/application-support-config.yml
+201
-0
application-test.yml
...et-support-config/src/main/resources/application-test.yml
+26
-0
banner.txt
...rt/liquidnet-support-config/src/main/resources/banner.txt
+14
-0
bootstrap.yml
...liquidnet-support-config/src/main/resources/bootstrap.yml
+9
-0
.gitignore
liquidnet-bus-support/liquidnet-support-eureka/.gitignore
+139
-0
pom.xml
liquidnet-bus-support/liquidnet-support-eureka/pom.xml
+40
-0
SupportEurekaApplication.java
...om/liquidnet/support/eureka/SupportEurekaApplication.java
+15
-0
WebSecurityConfig.java
.../java/com/liquidnet/support/eureka/WebSecurityConfig.java
+29
-0
application.yml
...quidnet-support-eureka/src/main/resources/application.yml
+56
-0
banner.txt
...rt/liquidnet-support-eureka/src/main/resources/banner.txt
+14
-0
logback-spring.xml
...dnet-support-eureka/src/main/resources/logback-spring.xml
+196
-0
pom.xml
...t-bus-support/liquidnet-support-hystrix-dashboard/pom.xml
+59
-0
SupportHystrixDashboardApplication.java
...m/liquidnet/cloud/SupportHystrixDashboardApplication.java
+13
-0
SupportHystrixDashboardApplication.java
...t/support/hystrix/SupportHystrixDashboardApplication.java
+12
-0
application.yml
...port-hystrix-dashboard/src/main/resources/application.yml
+2
-0
banner.txt
...t-support-hystrix-dashboard/src/main/resources/banner.txt
+13
-0
pom.xml
liquidnet-bus-support/liquidnet-support-sleuth/pom.xml
+65
-0
SleuthApplication.java
...leuth/src/main/java/com/jlbs/cloud/SleuthApplication.java
+13
-0
SupportSleuthApplication.java
...om/liquidnet/support/sleuth/SupportSleuthApplication.java
+12
-0
application.yml
...quidnet-support-sleuth/src/main/resources/application.yml
+5
-0
pom.xml
liquidnet-bus-support/liquidnet-support-turbine/pom.xml
+59
-0
SupportTurbineApplication.java
.../liquidnet/support/turbine/SupportTurbineApplication.java
+12
-0
TurbineApplication.java
...ne/src/main/java/com/ticket/cloud/TurbineApplication.java
+12
-0
application.yml
...uidnet-support-turbine/src/main/resources/application.yml
+23
-0
banner.txt
...t/liquidnet-support-turbine/src/main/resources/banner.txt
+13
-0
pom.xml
liquidnet-bus-support/liquidnet-support-zuul/pom.xml
+32
-0
SupportZuulApplication.java
...va/com/liquidnet/support/zuul/SupportZuulApplication.java
+16
-0
ErrorExtFilter.java
...m/liquidnet/support/zuul/filter/error/ErrorExtFilter.java
+38
-0
ErrorFilter.java
.../com/liquidnet/support/zuul/filter/error/ErrorFilter.java
+45
-0
ThrowExceptionPostFilter.java
...et/support/zuul/filter/post/ThrowExceptionPostFilter.java
+39
-0
ThrowExceptionFilter.java
...quidnet/support/zuul/filter/pre/ThrowExceptionFilter.java
+48
-0
application-test.yml
...dnet-support-zuul/src/main/resources/application-test.yml
+8
-0
application-zuul.yml
...dnet-support-zuul/src/main/resources/application-zuul.yml
+67
-0
application.yml
...liquidnet-support-zuul/src/main/resources/application.yml
+3
-0
banner.txt
...port/liquidnet-support-zuul/src/main/resources/banner.txt
+14
-0
bootstrap-prod.yml
...uidnet-support-zuul/src/main/resources/bootstrap-prod.yml
+18
-0
bootstrap-test.yml
...uidnet-support-zuul/src/main/resources/bootstrap-test.yml
+18
-0
bootstrap.yml
...t/liquidnet-support-zuul/src/main/resources/bootstrap.yml
+14
-0
logback.xml
...ort/liquidnet-support-zuul/src/main/resources/logback.xml
+60
-0
pom.xml
liquidnet-bus-support/pom.xml
+130
-0
No files found.
liquidnet-bus-support/liquidnet-support-config/pom.xml
0 → 100644
View file @
e1860999
<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>
<groupId>
com.liquidnet
</groupId>
<artifactId>
liquidnet-bus-support
</artifactId>
<version>
1.0-SNAPSHOT
</version>
</parent>
<artifactId>
liquidnet-support-config
</artifactId>
<packaging>
jar
</packaging>
<dependencies>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-netflix-eureka-client
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-config-server
</artifactId>
</dependency>
<!-- springcloud-bus依赖实现配置自动更新,rabbitmq -->
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-bus-amqp
</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
</plugin>
</plugins>
</build>
</project>
liquidnet-bus-support/liquidnet-support-config/src/main/java/com/liquidnet/support/config/SupportConfigApplication.java
0 → 100644
View file @
e1860999
package
com
.
liquidnet
.
support
.
config
;
import
org.springframework.boot.autoconfigure.EnableAutoConfiguration
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.boot.builder.SpringApplicationBuilder
;
import
org.springframework.cloud.config.server.EnableConfigServer
;
@EnableConfigServer
@SpringBootApplication
public
class
SupportConfigApplication
{
public
static
void
main
(
String
[]
args
)
{
new
SpringApplicationBuilder
(
SupportConfigApplication
.
class
).
run
(
args
);
}
}
liquidnet-bus-support/liquidnet-support-config/src/main/resources/application-dev.yml
0 → 100644
View file @
e1860999
# begin-dev-这里是配置信息基本值
liquidnet
:
info
:
port
:
7002
context
:
/support-config
name
:
liquidnet-support-config
security
:
username
:
user
password
:
user123
logfile
:
path
:
./logs
name
:
support-config
eureka
:
host
:
127.0.0.1:7001
rabbitmq
:
host
:
192.168.31.205
port
:
5672
username
:
liquidnet
password
:
LiquidNet!@#4
config
:
location
:
/Users/anjiabin/myproject/gitlab_lightnet/liquidnet-bus-v1/liquidnet-bus-config/liquidnet-config
# end-dev-这里是配置信息基本值
spring
:
profiles
:
include
:
support-config
\ No newline at end of file
liquidnet-bus-support/liquidnet-support-config/src/main/resources/application-prod.yml
0 → 100644
View file @
e1860999
# begin-dev-这里是配置信息基本值
liquidnet
:
info
:
port
:
7002
context
:
/support-config
name
:
liquidnet-support-config
security
:
username
:
user
password
:
user123
logfile
:
path
:
./logs
name
:
support-config
eureka
:
host
:
34.92.245.187:7001
rabbitmq
:
host
:
34.92.245.187
port
:
5672
username
:
lightnet
password
:
Lightnet12!
config
:
location
:
/app/config
# end-dev-这里是配置信息基本值
spring
:
profiles
:
include
:
support-config
\ No newline at end of file
liquidnet-bus-support/liquidnet-support-config/src/main/resources/application-support-config.yml
0 → 100644
View file @
e1860999
This diff is collapsed.
Click to expand it.
liquidnet-bus-support/liquidnet-support-config/src/main/resources/application-test.yml
0 → 100644
View file @
e1860999
# begin-dev-这里是配置信息基本值
liquidnet
:
info
:
port
:
7002
context
:
/support-config
name
:
liquidnet-support-config
security
:
username
:
user
password
:
user123
logfile
:
path
:
./logs
name
:
support-config
eureka
:
host
:
172.18.0.2:7001
rabbitmq
:
host
:
amqps://b-4ac8a8f5-8fe2-448b-bc37-990333527213.mq.ap-southeast-1.amazonaws.com
port
:
5671
username
:
smartnet
password
:
7A8DJ48XBo4WWx6YdL
config
:
location
:
/app/config
# end-dev-这里是配置信息基本值
spring
:
profiles
:
include
:
support-config
liquidnet-bus-support/liquidnet-support-config/src/main/resources/banner.txt
0 → 100644
View file @
e1860999
/$$ /$$ /$$ /$$ /$$ /$$ /$$
| $$ |__/ |__/ | $$| $$$ | $$ | $$
| $$ /$$ /$$$$$$ /$$ /$$ /$$ /$$$$$$$| $$$$| $$ /$$$$$$ /$$$$$$
| $$ | $$ /$$__ $$| $$ | $$| $$ /$$__ $$| $$ $$ $$ /$$__ $$|_ $$_/
| $$ | $$| $$ \ $$| $$ | $$| $$| $$ | $$| $$ $$$$| $$$$$$$$ | $$
| $$ | $$| $$ | $$| $$ | $$| $$| $$ | $$| $$\ $$$| $$_____/ | $$ /$$
| $$$$$$$$| $$| $$$$$$$| $$$$$$/| $$| $$$$$$$| $$ \ $$| $$$$$$$ | $$$$/
|________/|__/ \____ $$ \______/ |__/ \_______/|__/ \__/ \_______/ \___/
| $$
| $$
|__/
Application Version: ${application.version}${application.formatted-version}
Spring Boot Version: ${spring-boot.version}${spring-boot.formatted-version}
liquidnet-bus-support/liquidnet-support-config/src/main/resources/bootstrap.yml
0 → 100644
View file @
e1860999
spring
:
application
:
name
:
liquidnet-support-config
profiles
:
#以下为读取远程git配置方式
# active: dev
#以下为读取本地配置方式
active
:
native
#加载本地配置时放开该注释,注意同时修改模版中native.search-locations配置
include
:
dev
liquidnet-bus-support/liquidnet-support-eureka/.gitignore
0 → 100644
View file @
e1860999
######################
# Project Specific
######################
######################
# Node
######################
/node/**
/node_tmp/**
/node_modules/**
######################
# SASS
######################
.sass-cache/**
######################
# Eclipse
######################
*.pydevproject
.project
.metadata
/bin/**
/tmp/**
/tmp/**/*
*.tmp
*.bak
*.swp
*~.nib
local.properties
.classpath
.settings/**
.loadpath
/src/main/resources/rebel.xml
# External tool builders
.externalToolBuilders/**
# Locally stored "Eclipse launch configurations"
*.launch
# CDT-specific
.cproject
# PDT-specific
.buildpath
######################
# Intellij
######################
.idea
.idea/**
*.iml
*.iws
*.ipr
*.ids
*.orig
######################
# Maven
######################
/log/**
/target/**
######################
# Gradle
######################
.gradle/**
######################
# Package Files
######################
*.jar
*.war
*.ear
*.db
######################
# Windows
######################
# Windows image file caches
Thumbs.db
# Folder config file
Desktop.ini
######################
# Mac OSX
######################
.DS_Store
.svn
# Thumbnails
._*
# Files that might appear on external disk
.Spotlight-V100
.Trashes
######################
# Directories
######################
/build/**
/spring_loaded/**
/deploy/**
######################
# Logs
######################
*.log
######################
# Others
######################
*.class
*.*~
*~
.merge_file*
######################
# Gradle Wrapper
######################
!gradle/wrapper/gradle-wrapper.jar
######################
# Maven Wrapper
######################
!.mvn/wrapper/maven-wrapper.jar
######################
# ESLint
######################
.eslintcache
######################
# spring
######################
.springBeans
liquidnet-bus-support/liquidnet-support-eureka/pom.xml
0 → 100644
View file @
e1860999
<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>
<groupId>
com.liquidnet
</groupId>
<artifactId>
liquidnet-bus-support
</artifactId>
<version>
1.0-SNAPSHOT
</version>
</parent>
<artifactId>
liquidnet-support-eureka
</artifactId>
<packaging>
jar
</packaging>
<dependencies>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-netflix-eureka-server
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-security
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-test
</artifactId>
<scope>
test
</scope>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-autoconfigure
</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
</plugin>
</plugins>
</build>
</project>
\ No newline at end of file
liquidnet-bus-support/liquidnet-support-eureka/src/main/java/com/liquidnet/support/eureka/SupportEurekaApplication.java
0 → 100644
View file @
e1860999
package
com
.
liquidnet
.
support
.
eureka
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.cloud.netflix.eureka.server.EnableEurekaServer
;
@EnableEurekaServer
@SpringBootApplication
public
class
SupportEurekaApplication
{
public
static
void
main
(
String
[]
args
)
{
SpringApplication
.
run
(
SupportEurekaApplication
.
class
,
args
);
// new SpringApplicationBuilder(EurekaServer.class).run(args);
}
}
liquidnet-bus-support/liquidnet-support-eureka/src/main/java/com/liquidnet/support/eureka/WebSecurityConfig.java
0 → 100644
View file @
e1860999
package
com
.
liquidnet
.
support
.
eureka
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.security.config.annotation.web.builders.HttpSecurity
;
import
org.springframework.security.config.annotation.web.configuration.EnableWebSecurity
;
import
org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
;
/**
* @author AnJiabin <jiabin.an@lightnet.io>
* @version V1.0
* @Description: TODO
* @class: WebSecurityConfig
* @Package com.liquidnet.service
* @Copyright: LightNet @ Copyright (c) 2020
* @date 2020/9/4 17:42
*/
@EnableWebSecurity
@Configuration
public
class
WebSecurityConfig
extends
WebSecurityConfigurerAdapter
{
@Override
protected
void
configure
(
HttpSecurity
http
)
throws
Exception
{
http
.
csrf
().
disable
();
//关闭csrf
super
.
configure
(
http
);
//开启认证
// http.authorizeRequests().anyRequest().authenticated().and().httpBasic(); //开启认证
}
}
liquidnet-bus-support/liquidnet-support-eureka/src/main/resources/application.yml
0 → 100644
View file @
e1860999
server
:
port
:
7001
servlet
:
context-path
:
/eureka-server
spring
:
application
:
name
:
liquidnet-support-eureka
security
:
user
:
name
:
user
password
:
user123
eureka
:
instance
:
hostname
:
127.0.0.1
preferIpAddress
:
true
health-check-url
:
http://localhost:${server.port}${server.servlet.context-path}/actuator/health
status-page-url
:
http://localhost:${server.port}${server.servlet.context-path}/actuator/info
home-page-url
:
http://localhost:${server.port}${server.servlet.context-path}
metadata-map
:
configPath
:
${server.servlet.context-path}
management.context-path
:
${server.servlet.context-path}
server
:
enable-self-preservation
:
false
# 设为false,关闭自我保护 #自我保护设置 解决Eureka Server不踢出已关停的节点的问题,同时客户端也需要配置
eviction-interval-timer-in-ms
:
4000
# 清理间隔(单位毫秒,默认是60*1000)
client
:
register-with-eureka
:
false
#禁止自己当做服务注册
fetch-registry
:
false
#屏蔽注册信息
serviceUrl
:
defaultZone
:
http://${spring.security.user.name}:${spring.security.user.password}@${eureka.instance.hostname}:${server.port}${server.servlet.context-path}/eureka
# instance:
# prefer-ip-address: true
# instance-id: ${spring.application.name}:${server.port}
# hostname: localhost
liquidnet
:
logfile
:
path
:
/logfile
name
:
liquidnet-eureka-server.log
logging
:
config
:
classpath:logback-spring.xml
path
:
${liquidnet.logfile.path}
#logging:
# file:
# name: ${liquidnet.logfile.path}/${liquidnet.logfile.name}
# level:
# root: info
# #以下是为指定包设置日志级别
# com:
# liquidnet:
# stellar:
# controller: info
## pattern:
## console: %d{yyyy/MM/dd-HH:mm:ss} [%thread] %-5level %logger- %msg%n
## file: %d{yyyy/MM/dd-HH:mm} [%thread] %-5level %logger- %msg%n
liquidnet-bus-support/liquidnet-support-eureka/src/main/resources/banner.txt
0 → 100644
View file @
e1860999
/$$ /$$ /$$ /$$ /$$ /$$ /$$
| $$ |__/ |__/ | $$| $$$ | $$ | $$
| $$ /$$ /$$$$$$ /$$ /$$ /$$ /$$$$$$$| $$$$| $$ /$$$$$$ /$$$$$$
| $$ | $$ /$$__ $$| $$ | $$| $$ /$$__ $$| $$ $$ $$ /$$__ $$|_ $$_/
| $$ | $$| $$ \ $$| $$ | $$| $$| $$ | $$| $$ $$$$| $$$$$$$$ | $$
| $$ | $$| $$ | $$| $$ | $$| $$| $$ | $$| $$\ $$$| $$_____/ | $$ /$$
| $$$$$$$$| $$| $$$$$$$| $$$$$$/| $$| $$$$$$$| $$ \ $$| $$$$$$$ | $$$$/
|________/|__/ \____ $$ \______/ |__/ \_______/|__/ \__/ \_______/ \___/
| $$
| $$
|__/
Application Version: ${application.version}${application.formatted-version}
Spring Boot Version: ${spring-boot.version}${spring-boot.formatted-version}
liquidnet-bus-support/liquidnet-support-eureka/src/main/resources/logback-spring.xml
0 → 100644
View file @
e1860999
This diff is collapsed.
Click to expand it.
liquidnet-bus-support/liquidnet-support-hystrix-dashboard/pom.xml
0 → 100644
View file @
e1860999
<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>
<groupId>
com.liquidnet
</groupId>
<artifactId>
liquidnet-bus-support
</artifactId>
<version>
1.0-SNAPSHOT
</version>
</parent>
<artifactId>
liquidnet-support-hystrix-dashboard
</artifactId>
<packaging>
jar
</packaging>
<properties>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-hystrix-dashboard
</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<!-- The plugin rewrites your manifest -->
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
<version>
1.5.2.RELEASE
</version>
<configuration>
<!-- 指定该Main Class为全局的唯一入口 -->
<mainClass>
com.liquidnet.cloud.HystrixDashboardApplication
</mainClass>
<fork>
true
</fork>
<layout>
ZIP
</layout>
</configuration>
<executions>
<execution>
<goals>
<goal>
repackage
</goal>
<!--可以把依赖的包都打包到生成的Jar包中-->
</goals>
<!--可以生成不含依赖包的不可执行Jar包-->
<configuration>
<classifier>
exec
</classifier>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>
maven-compiler-plugin
</artifactId>
<configuration>
<source>
1.8
</source>
<target>
1.8
</target>
</configuration>
</plugin>
</plugins>
</build>
</project>
liquidnet-bus-support/liquidnet-support-hystrix-dashboard/src/main/java/com/liquidnet/cloud/SupportHystrixDashboardApplication.java
0 → 100644
View file @
e1860999
package
com
.
liquidnet
.
cloud
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard
;
@EnableHystrixDashboard
@SpringBootApplication
public
class
HystrixDashboardApplication
{
public
static
void
main
(
String
[]
args
)
{
SpringApplication
.
run
(
HystrixDashboardApplication
.
class
,
args
);
}
}
liquidnet-bus-support/liquidnet-support-hystrix-dashboard/src/main/java/com/liquidnet/support/hystrix/SupportHystrixDashboardApplication.java
0 → 100644
View file @
e1860999
package
com
.
liquidnet
.
support
.
hystrix
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
@EnableHystrixDashboard
@SpringBootApplication
public
class
SupportHystrixDashboardApplication
{
public
static
void
main
(
String
[]
args
)
{
SpringApplication
.
run
(
SupportHystrixDashboardApplication
.
class
,
args
);
}
}
liquidnet-bus-support/liquidnet-support-hystrix-dashboard/src/main/resources/application.yml
0 → 100644
View file @
e1860999
server
:
port
:
8771
liquidnet-bus-support/liquidnet-support-hystrix-dashboard/src/main/resources/banner.txt
0 → 100644
View file @
e1860999
_ _ _
(_) | | (_)
_ _ _ _ __ __ _ _ _ ___ _ __ | | _ _ __ ___
| | | | | | | '_ \ / _` | | | | | / _ \ | '_ \ | | | | | '_ \ / _ \
| |_| | | | | | | | | (_| | | |_| | | (_) | | | | | | | | | | | | | | __/
\__, | |_| |_| |_| \__, | \__,_| \___/ |_| |_| |_| |_| |_| |_| \___|
__/ | __/ |
|___/ |___/
Application Version: ${application.version}${application.formatted-version}
Spring Boot Version: ${spring-boot.version}${spring-boot.formatted-version}
liquidnet-bus-support/liquidnet-support-sleuth/pom.xml
0 → 100644
View file @
e1860999
<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>
<groupId>
com.liquidnet
</groupId>
<artifactId>
liquidnet-bus-support
</artifactId>
<version>
1.0-SNAPSHOT
</version>
</parent>
<artifactId>
liquidnet-support-sleuth
</artifactId>
<packaging>
jar
</packaging>
<properties>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<project.reporting.outputEncoding>
UTF-8
</project.reporting.outputEncoding>
<java.version>
1.8
</java.version>
</properties>
<dependencies>
<dependency>
<groupId>
io.zipkin.java
</groupId>
<artifactId>
zipkin-server
</artifactId>
</dependency>
<dependency>
<groupId>
io.zipkin.java
</groupId>
<artifactId>
zipkin-autoconfigure-ui
</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<!-- The plugin rewrites your manifest -->
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
<version>
1.4.1.RELEASE
</version>
<configuration>
<!-- 指定该Main Class为全局的唯一入口 -->
<mainClass>
com.liquidnet.cloud.SupportSleuthApplication
</mainClass>
<fork>
true
</fork>
<layout>
ZIP
</layout>
</configuration>
<executions>
<execution>
<goals>
<goal>
repackage
</goal>
<!--可以把依赖的包都打包到生成的Jar包中-->
</goals>
<!--可以生成不含依赖包的不可执行Jar包-->
<configuration>
<classifier>
exec
</classifier>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>
maven-compiler-plugin
</artifactId>
<configuration>
<source>
1.8
</source>
<target>
1.8
</target>
</configuration>
</plugin>
</plugins>
</build>
</project>
liquidnet-bus-support/liquidnet-support-sleuth/src/main/java/com/jlbs/cloud/SleuthApplication.java
0 → 100644
View file @
e1860999
package
com
.
liquidnet
.
cloud
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
zipkin.server.EnableZipkinServer
;
@EnableZipkinServer
@SpringBootApplication
public
class
SleuthApplication
{
public
static
void
main
(
String
[]
args
)
{
SpringApplication
.
run
(
SleuthApplication
.
class
,
args
);
}
}
liquidnet-bus-support/liquidnet-support-sleuth/src/main/java/com/liquidnet/support/sleuth/SupportSleuthApplication.java
0 → 100644
View file @
e1860999
package
com
.
liquidnet
.
support
.
sleuth
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
@EnableZipkinServer
@SpringBootApplication
public
class
SupportSleuthApplication
{
public
static
void
main
(
String
[]
args
)
{
SpringApplication
.
run
(
SupportSleuthApplication
.
class
,
args
);
}
}
liquidnet-bus-support/liquidnet-support-sleuth/src/main/resources/application.yml
0 → 100644
View file @
e1860999
server
:
port
:
8773
spring
:
application
:
name
:
sleuthServer
liquidnet-bus-support/liquidnet-support-turbine/pom.xml
0 → 100644
View file @
e1860999
<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>
<groupId>
com.liquidnet
</groupId>
<artifactId>
liquidnet-bus-support
</artifactId>
<version>
1.0-SNAPSHOT
</version>
</parent>
<artifactId>
liquidnet-support-turbine
</artifactId>
<packaging>
jar
</packaging>
<properties>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-turbine
</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<!-- The plugin rewrites your manifest -->
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
<version>
1.5.2.RELEASE
</version>
<configuration>
<!-- 指定该Main Class为全局的唯一入口 -->
<mainClass>
com.liquidnet.cloud.TurbineApplication
</mainClass>
<fork>
true
</fork>
<layout>
ZIP
</layout>
</configuration>
<executions>
<execution>
<goals>
<goal>
repackage
</goal>
<!--可以把依赖的包都打包到生成的Jar包中-->
</goals>
<!--可以生成不含依赖包的不可执行Jar包-->
<configuration>
<classifier>
exec
</classifier>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>
maven-compiler-plugin
</artifactId>
<configuration>
<source>
1.8
</source>
<target>
1.8
</target>
</configuration>
</plugin>
</plugins>
</build>
</project>
liquidnet-bus-support/liquidnet-support-turbine/src/main/java/com/liquidnet/support/turbine/SupportTurbineApplication.java
0 → 100644
View file @
e1860999
package
com
.
liquidnet
.
cloud
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.cloud.netflix.turbine.EnableTurbine
;
@EnableTurbine
@SpringBootApplication
public
class
TurbineApplication
{
public
static
void
main
(
String
[]
args
)
{
SpringApplication
.
run
(
TurbineApplication
.
class
,
args
);
}
}
liquidnet-bus-support/liquidnet-support-turbine/src/main/java/com/ticket/cloud/TurbineApplication.java
0 → 100644
View file @
e1860999
package
com
.
liquidnet
.
cloud
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.cloud.netflix.turbine.EnableTurbine
;
@EnableTurbine
@SpringBootApplication
public
class
TurbineApplication
{
public
static
void
main
(
String
[]
args
)
{
SpringApplication
.
run
(
TurbineApplication
.
class
,
args
);
}
}
liquidnet-bus-support/liquidnet-support-turbine/src/main/resources/application.yml
0 → 100644
View file @
e1860999
server
:
port
:
8772
spring
:
application
:
name
:
microservice-hystrix-turbine
eureka
:
client
:
serviceUrl
:
defaultZone
:
http://admin:admin@127.0.0.1:8761/eureka
instance
:
prefer-ip-address
:
true
turbine
:
aggregator
:
clusterConfig
:
liquidnet-PROVIDER-DATA,liquidnet-PROVIDER-USER,liquidnet-PROVIDER-SMS,liquidnet-PROVIDER-P2M,liquidnet-FILE-STORE
appConfig
:
liquidnet-provider-data,liquidnet-provider-user,liquidnet-provider-sms,liquidnet-provider-p2m,liquidnet-file-store
hystrix.config.stream.maxConcurrentConnections
:
50
logging
:
level
:
root
:
INFO
com.netflix.turbine.monitor
:
DEBUG
liquidnet-bus-support/liquidnet-support-turbine/src/main/resources/banner.txt
0 → 100644
View file @
e1860999
_ _ _
(_) | | (_)
_ _ _ _ __ __ _ _ _ ___ _ __ | | _ _ __ ___
| | | | | | | '_ \ / _` | | | | | / _ \ | '_ \ | | | | | '_ \ / _ \
| |_| | | | | | | | | (_| | | |_| | | (_) | | | | | | | | | | | | | | __/
\__, | |_| |_| |_| \__, | \__,_| \___/ |_| |_| |_| |_| |_| |_| \___|
__/ | __/ |
|___/ |___/
Application Version: ${application.version}${application.formatted-version}
Spring Boot Version: ${spring-boot.version}${spring-boot.formatted-version}
liquidnet-bus-support/liquidnet-support-zuul/pom.xml
0 → 100644
View file @
e1860999
<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>
<groupId>
com.liquidnet
</groupId>
<artifactId>
liquidnet-bus-support
</artifactId>
<version>
1.0-SNAPSHOT
</version>
</parent>
<artifactId>
liquidnet-support-zuul
</artifactId>
<packaging>
jar
</packaging>
<properties>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-netflix-zuul
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-netflix-eureka-client
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-config
</artifactId>
</dependency>
</dependencies>
</project>
liquidnet-bus-support/liquidnet-support-zuul/src/main/java/com/liquidnet/support/zuul/SupportZuulApplication.java
0 → 100644
View file @
e1860999
package
com
.
liquidnet
.
support
.
zuul
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.cloud.client.discovery.EnableDiscoveryClient
;
import
org.springframework.cloud.netflix.zuul.EnableZuulProxy
;
@EnableDiscoveryClient
@EnableZuulProxy
@SpringBootApplication
public
class
SupportZuulApplication
{
public
static
void
main
(
String
[]
args
)
{
SpringApplication
.
run
(
SupportZuulApplication
.
class
,
args
);
}
}
liquidnet-bus-support/liquidnet-support-zuul/src/main/java/com/liquidnet/support/zuul/filter/error/ErrorExtFilter.java
0 → 100644
View file @
e1860999
package
com
.
liquidnet
.
support
.
zuul
.
filter
.
error
;
import
com.netflix.zuul.ZuulFilter
;
import
com.netflix.zuul.context.RequestContext
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.cloud.netflix.zuul.filters.post.SendErrorFilter
;
import
org.springframework.stereotype.Component
;
/**
* 从POST抛出的异常,使用该过滤器返回错误信息
*/
@Component
public
class
ErrorExtFilter
extends
SendErrorFilter
{
Logger
log
=
LoggerFactory
.
getLogger
(
ErrorExtFilter
.
class
);
@Override
public
String
filterType
()
{
return
"error"
;
}
@Override
public
int
filterOrder
()
{
return
30
;
}
@Override
public
boolean
shouldFilter
()
{
RequestContext
ctx
=
RequestContext
.
getCurrentContext
();
ZuulFilter
failedFilter
=
(
ZuulFilter
)
ctx
.
get
(
"failed.filter"
);
if
(
failedFilter
!=
null
&&
failedFilter
.
filterType
().
equals
(
"post"
))
{
return
true
;
}
return
false
;
}
}
liquidnet-bus-support/liquidnet-support-zuul/src/main/java/com/liquidnet/support/zuul/filter/error/ErrorFilter.java
0 → 100644
View file @
e1860999
package
com
.
liquidnet
.
support
.
zuul
.
filter
.
error
;
import
com.netflix.zuul.ZuulFilter
;
import
com.netflix.zuul.context.RequestContext
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.stereotype.Component
;
import
javax.servlet.http.HttpServletResponse
;
/**
* 捕获为处理的异常统一做一些处理,让`SendErrorFilter`可以正确的返回异常信息
* 当是`post`过滤器抛出的话,错误信息会让`ErrorExtFilter`返回异常信息
*/
@Component
public
class
ErrorFilter
extends
ZuulFilter
{
Logger
log
=
LoggerFactory
.
getLogger
(
ErrorFilter
.
class
);
@Override
public
String
filterType
()
{
return
"error"
;
}
@Override
public
int
filterOrder
()
{
return
20
;
}
@Override
public
boolean
shouldFilter
()
{
return
true
;
}
@Override
public
Object
run
()
{
RequestContext
ctx
=
RequestContext
.
getCurrentContext
();
Throwable
throwable
=
RequestContext
.
getCurrentContext
().
getThrowable
();
log
.
error
(
"this is a ErrorFilter : {}"
,
throwable
.
getCause
().
getMessage
());
ctx
.
set
(
"error.status_code"
,
HttpServletResponse
.
SC_INTERNAL_SERVER_ERROR
);
ctx
.
set
(
"error.exception"
,
throwable
.
getCause
());
return
null
;
}
}
liquidnet-bus-support/liquidnet-support-zuul/src/main/java/com/liquidnet/support/zuul/filter/post/ThrowExceptionPostFilter.java
0 → 100644
View file @
e1860999
package
com
.
liquidnet
.
support
.
zuul
.
filter
.
post
;
import
com.netflix.zuul.ZuulFilter
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.stereotype.Component
;
@Component
public
class
ThrowExceptionPostFilter
extends
ZuulFilter
{
private
static
Logger
log
=
LoggerFactory
.
getLogger
(
ThrowExceptionPostFilter
.
class
);
@Override
public
String
filterType
()
{
return
"post"
;
}
@Override
public
int
filterOrder
()
{
return
10
;
}
@Override
public
boolean
shouldFilter
()
{
return
true
;
}
@Override
public
Object
run
()
{
log
.
info
(
"This is a post filter, it will throw a RuntimeException"
);
doSomething
();
return
null
;
}
private
void
doSomething
()
{
// throw new RuntimeException("Exist some errors...");
}
}
liquidnet-bus-support/liquidnet-support-zuul/src/main/java/com/liquidnet/support/zuul/filter/pre/ThrowExceptionFilter.java
0 → 100644
View file @
e1860999
package
com
.
liquidnet
.
support
.
zuul
.
filter
.
pre
;
import
com.netflix.zuul.ZuulFilter
;
import
com.netflix.zuul.context.RequestContext
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.stereotype.Component
;
import
javax.servlet.http.HttpServletResponse
;
@Component
public
class
ThrowExceptionFilter
extends
ZuulFilter
{
private
static
Logger
log
=
LoggerFactory
.
getLogger
(
ThrowExceptionFilter
.
class
);
@Override
public
String
filterType
()
{
return
"pre"
;
}
@Override
public
int
filterOrder
()
{
return
0
;
}
@Override
public
boolean
shouldFilter
()
{
return
true
;
}
@Override
public
Object
run
()
{
log
.
info
(
"This is a pre filter, it will throw a RuntimeException"
);
RequestContext
ctx
=
RequestContext
.
getCurrentContext
();
try
{
doSomething
();
}
catch
(
Exception
e
)
{
ctx
.
set
(
"error.status_code"
,
HttpServletResponse
.
SC_INTERNAL_SERVER_ERROR
);
ctx
.
set
(
"error.exception"
,
e
);
}
return
null
;
}
private
void
doSomething
()
{
// throw new RuntimeException("Exist some errors...");
}
}
liquidnet-bus-support/liquidnet-support-zuul/src/main/resources/application-test.yml
0 → 100644
View file @
e1860999
liquidnet
:
eureka
:
# serviceUrl: 127.0.0.1:7001/eureka-server/eureka
serviceUrl
:
192.168.31.229:7001/eureka-server/eureka
spring
:
profiles
:
include
:
zuul
\ No newline at end of file
liquidnet-bus-support/liquidnet-support-zuul/src/main/resources/application-zuul.yml
0 → 100644
View file @
e1860999
spring
:
application
:
name
:
liquidnet-gateway-zuul
security
:
basic
:
enabled
:
true
user
:
name
:
user
password
:
user123
server
:
port
:
7003
server
:
tomcat
:
accept-count
:
500
max-threads
:
500
min-spare-threads
:
100
max-connections
:
1000
connection-timeout
:
5000
eureka
:
client
:
healthcheck
:
enabled
:
true
register-with-eureka
:
true
fetch-registry
:
true
serviceUrl
:
# defaultZone: ${liquidnet.eureka.serviceUrl}
defaultZone
:
http://${spring.security.user.name}:${spring.security.user.password}@${liquidnet.eureka.serviceUrl}
instance
:
hostname
:
${spring.cloud.client.ip-address}
lease-expiration-duration-in-seconds
:
15
#服务过期时间配置,超过这个时间没有接收到心跳EurekaServer就会将这个实例剔除
lease-renewal-interval-in-seconds
:
5
#服务刷新时间配置,每隔这个时间会主动心跳一次
prefer-ip-address
:
true
instance-id
:
${spring.application.name}:${spring.cloud.client.ip-address}:${spring.application.instance_id:${server.port}}
zuul
:
prefix
:
/liquidnet-api
host
:
max-per-route-connections
:
1000
max-total-connections
:
2000
routes
:
liquidnet-service-adam
:
/adam/**
liquidnet-service-sequence
:
/sequence/**
liquidnet-service-example
:
/example/**
liquidnet-service-account
:
/account/**
liquidnet-service-task
:
/task/**
ThrowExceptionPostFilter
:
post
:
disable
:
true
#解决错误 com.netflix.client.ClientException: Load balancer does not have available server for client:panfeng-item-service
#这样就可以即指定path与URL,又不破坏Zuul的Hystrix与Ribbon特性了。
#开启eureka负载均衡策略
ribbon
:
eureka
:
enabled
:
false
# 为Ribbon禁用Eureka
liquidnet-service-sequence
:
ribbon
:
listOfServers
:
192.168.137.1:9001
logging
:
level
:
com.netflix
:
debug
#zuul:
# prefix: /api
# strip-prefix: false
liquidnet-bus-support/liquidnet-support-zuul/src/main/resources/application.yml
0 → 100644
View file @
e1860999
spring
:
profiles
:
active
:
test
\ No newline at end of file
liquidnet-bus-support/liquidnet-support-zuul/src/main/resources/banner.txt
0 → 100644
View file @
e1860999
/$$ /$$ /$$ /$$ /$$ /$$ /$$
| $$ |__/ |__/ | $$| $$$ | $$ | $$
| $$ /$$ /$$$$$$ /$$ /$$ /$$ /$$$$$$$| $$$$| $$ /$$$$$$ /$$$$$$
| $$ | $$ /$$__ $$| $$ | $$| $$ /$$__ $$| $$ $$ $$ /$$__ $$|_ $$_/
| $$ | $$| $$ \ $$| $$ | $$| $$| $$ | $$| $$ $$$$| $$$$$$$$ | $$
| $$ | $$| $$ | $$| $$ | $$| $$| $$ | $$| $$\ $$$| $$_____/ | $$ /$$
| $$$$$$$$| $$| $$$$$$$| $$$$$$/| $$| $$$$$$$| $$ \ $$| $$$$$$$ | $$$$/
|________/|__/ \____ $$ \______/ |__/ \_______/|__/ \__/ \_______/ \___/
| $$
| $$
|__/
Application Version: ${application.version}${application.formatted-version}
Spring Boot Version: ${spring-boot.version}${spring-boot.formatted-version}
liquidnet-bus-support/liquidnet-support-zuul/src/main/resources/bootstrap-prod.yml
0 → 100644
View file @
e1860999
## ===================================================================
## Spring Cloud Config bootstrap configuration for the "dev" profile
## In prod profile, properties will be overwriten by the ones defined in bootstrap-prod.yml
## ===================================================================
#
#spring:
# application:
# name: liquidnet-gateway-zuul
# profiles:
# active: prod
# cloud:
# config:
# # name of the config server's property source (file.yml) that we want to use
# profile: prod # profile(s) of the property source
# label: master # toggle to switch to a different version of the configuration as stored in git
# uri: http://172.24.132.45:20001/
# # it can be set to any label, branch or commit of the config source git repository
#
liquidnet-bus-support/liquidnet-support-zuul/src/main/resources/bootstrap-test.yml
0 → 100644
View file @
e1860999
## ===================================================================
## Spring Cloud Config bootstrap configuration for the "dev" profile
## In prod profile, properties will be overwriten by the ones defined in bootstrap-prod.yml
## ===================================================================
#
#spring:
# application:
# name: liquidnet-gateway-zuul
# profiles:
# active: test
# cloud:
# config:
# label: ${spring.profiles.active1:dev} #当配置文件在git上时为分支名
## profile: ${spring.profiles.active1:dev} #对应业务名称的profile
# uri: http://172.24.133.63:20001/
## discovery: # 需要考虑 eureka 地址的初始化 先不使用
## enabled: true # 默认false,设为true表示使用注册中心中的configserver配置而不自己配置configserver的uri
## serviceId: liquidnet-config-service # 指定config server在服务发现中的serviceId,默认为:configserver
liquidnet-bus-support/liquidnet-support-zuul/src/main/resources/bootstrap.yml
0 → 100644
View file @
e1860999
#
#spring:
# application:
# name: liquidnet-gateway-zuul
# profiles:
# active: dev
# cloud:
# config:
# label: ${spring.profiles.active1:dev} #当配置文件在git上时为分支名
## profile: ${spring.profiles.active1:dev} #对应业务名称的profile
# uri: http://172.24.132.45:20001/
## discovery: # 需要考虑 eureka 地址的初始化 先不使用
## enabled: true # 默认false,设为true表示使用注册中心中的configserver配置而不自己配置configserver的uri
## serviceId: liquidnet-config-service # 指定config server在服务发现中的serviceId,默认为:configserver
liquidnet-bus-support/liquidnet-support-zuul/src/main/resources/logback.xml
0 → 100644
View file @
e1860999
<!-- Logback configuration. See http://logback.qos.ch/manual/index.html -->
<configuration
scan=
"true"
scanPeriod=
"10 seconds"
>
<!-- Simple file output -->
<appender
name=
"FILE"
class=
"ch.qos.logback.core.rolling.RollingFileAppender"
>
<!-- encoder defaults to ch.qos.logback.classic.encoder.PatternLayoutEncoder -->
<encoder>
<pattern>
[ %-5level] [%date{yyyy-MM-dd HH:mm:ss}] %logger{96} [%line] - %msg%n
</pattern>
<charset>
UTF-8
</charset>
<!-- 此处设置字符集 -->
</encoder>
<rollingPolicy
class=
"ch.qos.logback.core.rolling.TimeBasedRollingPolicy"
>
<!-- rollover daily 配置日志所生成的目录以及生成文件名的规则 -->
<fileNamePattern>
/data/logs/YGZX/dubbo/liquidnet-gateway-zuul/liquidnet-gateway-zuul-%d{yyyy-MM-dd}.%i.log
</fileNamePattern>
<timeBasedFileNamingAndTriggeringPolicy
class=
"ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"
>
<!-- or whenever the file size reaches 64 MB -->
<maxFileSize>
64 MB
</maxFileSize>
</timeBasedFileNamingAndTriggeringPolicy>
</rollingPolicy>
<filter
class=
"ch.qos.logback.classic.filter.ThresholdFilter"
>
<level>
DEBUG
</level>
</filter>
<!-- Safely log to the same file from multiple JVMs. Degrades performance! -->
<prudent>
true
</prudent>
</appender>
<!-- Console output -->
<appender
name=
"STDOUT"
class=
"ch.qos.logback.core.ConsoleAppender"
>
<!-- encoder defaults to ch.qos.logback.classic.encoder.PatternLayoutEncoder -->
<encoder>
<pattern>
[ %-5level] [%date{yyyy-MM-dd HH:mm:ss}] %logger{96} [%line] - %msg%n
</pattern>
<charset>
UTF-8
</charset>
<!-- 此处设置字符集 -->
</encoder>
<!-- Only log level WARN and above -->
<!--<filter class="ch.qos.logback.classic.filter.ThresholdFilter">-->
<!--<level>WARN</level>-->
<!--</filter>-->
</appender>
<!-- Enable FILE and STDOUT appenders for all log messages.
By default, only log at level INFO and above. -->
<root
level=
"INFO"
>
<appender-ref
ref=
"FILE"
/>
<appender-ref
ref=
"STDOUT"
/>
</root>
<!-- For loggers in the these namespaces, log at all levels. -->
<!--<logger name="pedestal" level="ALL"/>-->
<!--<logger name="hammock-cafe" level="ALL"/>-->
<!--<logger name="user" level="ALL"/>-->
</configuration>
liquidnet-bus-support/pom.xml
0 → 100644
View file @
e1860999
<?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"
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>
<groupId>
com.liquidnet
</groupId>
<artifactId>
liquidnet-bus-support
</artifactId>
<version>
1.0-SNAPSHOT
</version>
<packaging>
pom
</packaging>
<distributionManagement>
<repository>
<id>
release
</id>
<name>
release
</name>
<url>
http://192.168.31.205:8081/repository/maven-releases/
</url>
</repository>
<snapshotRepository>
<id>
snapshots
</id>
<name>
snapshots
</name>
<url>
http://192.168.31.205:8081/repository/maven-snapshots/
</url>
</snapshotRepository>
</distributionManagement>
<modules>
<module>
liquidnet-support-zuul
</module>
<module>
liquidnet-support-config
</module>
<module>
liquidnet-support-eureka
</module>
<!-- <module>liquidnet-support-hystrix-dashboard</module>-->
<!-- <module>liquidnet-support-turbine</module>-->
<!-- <module>liquidnet-support-sleuth</module>-->
</modules>
<properties>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-test
</artifactId>
<scope>
test
</scope>
</dependency>
<dependency>
<groupId>
org.projectlombok
</groupId>
<artifactId>
lombok
</artifactId>
<optional>
true
</optional>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-parent
</artifactId>
<version>
2.2.2.RELEASE
</version>
<type>
pom
</type>
<scope>
import
</scope>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-dependencies
</artifactId>
<version>
Hoxton.SR1
</version>
<type>
pom
</type>
<scope>
import
</scope>
</dependency>
<!-- https://mvnrepository.com/artifact/org.springframework.cloud/spring-cloud-starter-netflix-eureka-server -->
<!-- <dependency>-->
<!-- <groupId>org.springframework.cloud</groupId>-->
<!-- <artifactId>spring-cloud-starter-netflix-eureka-server</artifactId>-->
<!-- <version>2.2.1.RELEASE</version>-->
<!-- </dependency>-->
<!-- <dependency>-->
<!-- <groupId>org.springframework.cloud</groupId>-->
<!-- <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>-->
<!-- <version>2.2.1.RELEASE</version>-->
<!-- </dependency>-->
</dependencies>
</dependencyManagement>
<build>
<plugins>
<plugin>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
<version>
2.2.2.RELEASE
</version>
<configuration>
<includeSystemScope>
true
</includeSystemScope>
<!--外部进行打包-->
</configuration>
<executions>
<execution>
<goals>
<goal>
repackage
</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-source-plugin
</artifactId>
<version>
2.1
</version>
<configuration>
<attach>
true
</attach>
</configuration>
<executions>
<execution>
<phase>
compile
</phase>
<goals>
<goal>
jar
</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-compiler-plugin
</artifactId>
<version>
3.8.1
</version>
<configuration>
<source>
1.8
</source>
<target>
1.8
</target>
<encoding>
UTF-8
</encoding>
<compilerArguments>
<extdirs>
libs
</extdirs>
</compilerArguments>
</configuration>
</plugin>
</plugins>
</build>
</project>
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