Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
865fe5af
Commit
865fe5af
authored
May 26, 2021
by
李成龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
初始化gateway工程
parent
927bf284
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
169 additions
and
1 deletion
+169
-1
.classpath
amos-boot-module/amos-boot-cloud-gateway/.classpath
+32
-0
.project
amos-boot-module/amos-boot-cloud-gateway/.project
+23
-0
org.eclipse.core.resources.prefs
...-cloud-gateway/.settings/org.eclipse.core.resources.prefs
+5
-0
org.eclipse.jdt.core.prefs
...s-boot-cloud-gateway/.settings/org.eclipse.jdt.core.prefs
+8
-0
org.eclipse.m2e.core.prefs
...s-boot-cloud-gateway/.settings/org.eclipse.m2e.core.prefs
+4
-0
pom.xml
amos-boot-module/amos-boot-cloud-gateway/pom.xml
+25
-0
AmosBizGatewayApplication.java
...main/java/com/yeejoin/amos/AmosBizGatewayApplication.java
+18
-0
application.properties
...t-cloud-gateway/src/main/resources/application.properties
+7
-0
logback-spring.xml
...-boot-cloud-gateway/src/main/resources/logback-spring.xml
+45
-0
pom.xml
...ule/amos-boot-module-biz/amos-boot-module-tzs-biz/pom.xml
+1
-1
pom.xml
amos-boot-module/pom.xml
+1
-0
No files found.
amos-boot-module/amos-boot-cloud-gateway/.classpath
0 → 100644
View file @
865fe5af
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry
kind=
"src"
output=
"target/classes"
path=
"src/main/java"
>
<attributes>
<attribute
name=
"optional"
value=
"true"
/>
<attribute
name=
"maven.pomderived"
value=
"true"
/>
</attributes>
</classpathentry>
<classpathentry
excluding=
"**"
kind=
"src"
output=
"target/classes"
path=
"src/main/resources"
>
<attributes>
<attribute
name=
"maven.pomderived"
value=
"true"
/>
</attributes>
</classpathentry>
<classpathentry
kind=
"src"
output=
"target/test-classes"
path=
"src/test/java"
>
<attributes>
<attribute
name=
"test"
value=
"true"
/>
<attribute
name=
"optional"
value=
"true"
/>
<attribute
name=
"maven.pomderived"
value=
"true"
/>
</attributes>
</classpathentry>
<classpathentry
kind=
"con"
path=
"org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"
>
<attributes>
<attribute
name=
"maven.pomderived"
value=
"true"
/>
</attributes>
</classpathentry>
<classpathentry
kind=
"con"
path=
"org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"
>
<attributes>
<attribute
name=
"maven.pomderived"
value=
"true"
/>
</attributes>
</classpathentry>
<classpathentry
kind=
"output"
path=
"target/classes"
/>
</classpath>
amos-boot-module/amos-boot-cloud-gateway/.project
0 → 100644
View file @
865fe5af
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>
amos-boot-module-cloud-gateway
</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>
org.eclipse.jdt.core.javabuilder
</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>
org.eclipse.m2e.core.maven2Builder
</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>
org.eclipse.jdt.core.javanature
</nature>
<nature>
org.eclipse.m2e.core.maven2Nature
</nature>
</natures>
</projectDescription>
amos-boot-module/amos-boot-cloud-gateway/.settings/org.eclipse.core.resources.prefs
0 → 100644
View file @
865fe5af
eclipse.preferences.version=1
encoding//src/main/java=UTF-8
encoding//src/main/resources=UTF-8
encoding//src/test/java=UTF-8
encoding/<project>=UTF-8
amos-boot-module/amos-boot-cloud-gateway/.settings/org.eclipse.jdt.core.prefs
0 → 100644
View file @
865fe5af
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore
org.eclipse.jdt.core.compiler.release=disabled
org.eclipse.jdt.core.compiler.source=1.8
amos-boot-module/amos-boot-cloud-gateway/.settings/org.eclipse.m2e.core.prefs
0 → 100644
View file @
865fe5af
activeProfiles=
eclipse.preferences.version=1
resolveWorkspaceProjects=true
version=1
amos-boot-module/amos-boot-cloud-gateway/pom.xml
0 → 100644
View file @
865fe5af
<?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>
<parent>
<artifactId>
amos-boot-module
</artifactId>
<groupId>
com.amosframework.boot
</groupId>
<version>
1.0.0
</version>
</parent>
<artifactId>
amos-boot-cloud-gateway
</artifactId>
<dependencies>
<dependency>
<groupId>
com.amosframework.boot
</groupId>
<artifactId>
amos-boot-module-jcs-api
</artifactId>
<version>
${amos-biz-boot.version}
</version>
</dependency>
<dependency>
<groupId>
com.amosframework.boot
</groupId>
<artifactId>
amos-boot-module-tzs-api
</artifactId>
<version>
${amos-biz-boot.version}
</version>
</dependency>
</dependencies>
</project>
amos-boot-module/amos-boot-cloud-gateway/src/main/java/com/yeejoin/amos/AmosBizGatewayApplication.java
0 → 100644
View file @
865fe5af
package
com
.
yeejoin
.
amos
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.cloud.client.discovery.EnableDiscoveryClient
;
import
org.springframework.cloud.openfeign.EnableFeignClients
;
import
org.springframework.context.ConfigurableApplicationContext
;
@EnableFeignClients
@EnableDiscoveryClient
@SpringBootApplication
public
class
AmosBizGatewayApplication
{
public
static
void
main
(
String
[]
args
)
{
ConfigurableApplicationContext
applicationContext
=
SpringApplication
.
run
(
AmosBizGatewayApplication
.
class
,
args
);
String
userName
=
applicationContext
.
getEnvironment
().
getProperty
(
"jeecg.test"
);
System
.
err
.
println
(
"user name :"
+
userName
);
}
}
amos-boot-module/amos-boot-cloud-gateway/src/main/resources/application.properties
0 → 100644
View file @
865fe5af
server.port
:
9999
spring.application.name
:
amos-biz-gateway
spring.cloud.gateway.discovery.locator.enabled
:
true
spring.cloud.gateway.globalcors.cors-configurations.'[/**]'
.allowCredentials
:
true
spring.cloud.gateway.globalcors.cors-configurations.'[/**]'
.allowedOrigins
:
"*"
spring.cloud.gateway.globalcors.cors-configurations.'[/**]'
.allowedMethods
:
"*"
spring.cloud.gateway.globalcors.cors-configurations.'[/**]'
.allowedHeaders
:
"*"
amos-boot-module/amos-boot-cloud-gateway/src/main/resources/logback-spring.xml
0 → 100644
View file @
865fe5af
<?xml version="1.0" encoding="UTF-8"?>
<configuration
debug=
"false"
>
<!--定义日志文件的存储地址 -->
<property
name=
"LOG_HOME"
value=
"../logs"
/>
<!--<property name="COLOR_PATTERN" value="%black(%contextName-) %red(%d{yyyy-MM-dd HH:mm:ss}) %green([%thread]) %highlight(%-5level) %boldMagenta( %replace(%caller{1}){'\t|Caller.{1}0|\r\n', ''})- %gray(%msg%xEx%n)" />-->
<!-- 控制台输出 -->
<appender
name=
"STDOUT"
class=
"ch.qos.logback.core.ConsoleAppender"
>
<encoder
class=
"ch.qos.logback.classic.encoder.PatternLayoutEncoder"
>
<!--格式化输出:%d表示日期,%thread表示线程名,%-5level:级别从左显示5个字符宽度%msg:日志消息,%n是换行符
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50}:%L - %msg%n</pattern>-->
<pattern>
%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %highlight(%-5level) %cyan(%logger{50}:%L) - %msg%n
</pattern>
</encoder>
</appender>
<!-- 按照每天生成日志文件 -->
<appender
name=
"FILE"
class=
"ch.qos.logback.core.rolling.RollingFileAppender"
>
<rollingPolicy
class=
"ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"
>
<!--日志文件输出的文件名 -->
<FileNamePattern>
${LOG_HOME}/amos-biz-gateway-%d{yyyy-MM-dd}.%i.log
</FileNamePattern>
<!--日志文件保留天数 -->
<MaxHistory>
30
</MaxHistory>
<maxFileSize>
10MB
</maxFileSize>
</rollingPolicy>
<encoder
class=
"ch.qos.logback.classic.encoder.PatternLayoutEncoder"
>
<!--格式化输出:%d表示日期,%thread表示线程名,%-5level:级别从左显示5个字符宽度%msg:日志消息,%n是换行符 -->
<pattern>
%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50}:%L - %msg%n
</pattern>
</encoder>
</appender>
<!--myibatis log configure -->
<logger
name=
"com.apache.ibatis"
level=
"TRACE"
/>
<logger
name=
"java.sql.Connection"
level=
"DEBUG"
/>
<logger
name=
"java.sql.Statement"
level=
"DEBUG"
/>
<logger
name=
"java.sql.PreparedStatement"
level=
"DEBUG"
/>
<!-- 日志输出级别 -->
<root
level=
"INFO"
>
<appender-ref
ref=
"STDOUT"
/>
<appender-ref
ref=
"FILE"
/>
</root>
</configuration>
\ No newline at end of file
amos-boot-module/amos-boot-module-biz/amos-boot-module-tzs-biz/pom.xml
View file @
865fe5af
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
<artifactId>
amos-boot-module-tzs-biz
</artifactId>
<artifactId>
amos-boot-module-tzs-biz
</artifactId>
<dependencies>
<dependencies>
<dependency>
<dependency>
<groupId>
com.amosframework.boot
</groupId>
<groupId>
com.amosframework.boot
</groupId>
<artifactId>
amos-boot-module-tzs-api
</artifactId>
<artifactId>
amos-boot-module-tzs-api
</artifactId>
<version>
${amos-biz-boot.version}
</version>
<version>
${amos-biz-boot.version}
</version>
...
...
amos-boot-module/pom.xml
View file @
865fe5af
...
@@ -20,5 +20,6 @@
...
@@ -20,5 +20,6 @@
<module>
amos-boot-module-tzs-biz
</module>
<module>
amos-boot-module-tzs-biz
</module>
<module>
amos-boot-module-api
</module>
<module>
amos-boot-module-api
</module>
<module>
amos-boot-module-biz
</module>
<module>
amos-boot-module-biz
</module>
<module>
amos-boot-cloud-gateway
</module>
</modules>
</modules>
</project>
</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