Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
武汉红喜
whatsmars
提交
dfed8c50
W
whatsmars
项目概览
武汉红喜
/
whatsmars
通知
3
Star
0
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
W
whatsmars
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
dfed8c50
编写于
6月 08, 2020
作者:
武汉红喜
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
脚手架 whatsmars-archetypes
上级
933a6d8f
变更
24
隐藏空白更改
内联
并排
Showing
24 changed file
with
423 addition
and
0 deletion
+423
-0
README.md
README.md
+1
-0
pom.xml
pom.xml
+1
-0
whatsmars-archetypes/dubbo-archetype/pom.xml
whatsmars-archetypes/dubbo-archetype/pom.xml
+16
-0
whatsmars-archetypes/dubbo-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml
.../src/main/resources/META-INF/maven/archetype-metadata.xml
+21
-0
whatsmars-archetypes/dubbo-archetype/src/main/resources/META-INF/maven/archetype.xml
...archetype/src/main/resources/META-INF/maven/archetype.xml
+4
-0
whatsmars-archetypes/dubbo-archetype/src/main/resources/archetype-resources/.gitigore
...rchetype/src/main/resources/archetype-resources/.gitigore
+5
-0
whatsmars-archetypes/dubbo-archetype/src/main/resources/archetype-resources/__artifactId__-api/pom.xml
.../resources/archetype-resources/__artifactId__-api/pom.xml
+14
-0
whatsmars-archetypes/dubbo-archetype/src/main/resources/archetype-resources/__artifactId__-api/src/main/java/org/hongxi/__artifactIdPackage__/api/DemoService.java
...ava/org/hongxi/__artifactIdPackage__/api/DemoService.java
+6
-0
whatsmars-archetypes/dubbo-archetype/src/main/resources/archetype-resources/__artifactId__-service/pom.xml
...ources/archetype-resources/__artifactId__-service/pom.xml
+40
-0
whatsmars-archetypes/dubbo-archetype/src/main/resources/archetype-resources/__artifactId__-service/src/main/java/org/hongxi/__artifactIdPackage__/Application.java
...in/java/org/hongxi/__artifactIdPackage__/Application.java
+13
-0
whatsmars-archetypes/dubbo-archetype/src/main/resources/archetype-resources/__artifactId__-service/src/main/java/org/hongxi/__artifactIdPackage__/service/impl/DemoServiceImpl.java
...i/__artifactIdPackage__/service/impl/DemoServiceImpl.java
+13
-0
whatsmars-archetypes/dubbo-archetype/src/main/resources/archetype-resources/__artifactId__-service/src/main/resources/application.yml
...__artifactId__-service/src/main/resources/application.yml
+25
-0
whatsmars-archetypes/dubbo-archetype/src/main/resources/archetype-resources/pom.xml
...-archetype/src/main/resources/archetype-resources/pom.xml
+23
-0
whatsmars-archetypes/pom.xml
whatsmars-archetypes/pom.xml
+21
-0
whatsmars-archetypes/web-archetype/pom.xml
whatsmars-archetypes/web-archetype/pom.xml
+16
-0
whatsmars-archetypes/web-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml
.../src/main/resources/META-INF/maven/archetype-metadata.xml
+21
-0
whatsmars-archetypes/web-archetype/src/main/resources/META-INF/maven/archetype.xml
...archetype/src/main/resources/META-INF/maven/archetype.xml
+4
-0
whatsmars-archetypes/web-archetype/src/main/resources/archetype-resources/.gitigore
...rchetype/src/main/resources/archetype-resources/.gitigore
+5
-0
whatsmars-archetypes/web-archetype/src/main/resources/archetype-resources/pom.xml
...-archetype/src/main/resources/archetype-resources/pom.xml
+44
-0
whatsmars-archetypes/web-archetype/src/main/resources/archetype-resources/src/main/java/org/hongxi/__artifactIdPackage__/Application.java
...in/java/org/hongxi/__artifactIdPackage__/Application.java
+13
-0
whatsmars-archetypes/web-archetype/src/main/resources/archetype-resources/src/main/java/org/hongxi/__artifactIdPackage__/controller/GreetingController.java
.../__artifactIdPackage__/controller/GreetingController.java
+26
-0
whatsmars-archetypes/web-archetype/src/main/resources/archetype-resources/src/main/java/org/hongxi/__artifactIdPackage__/model/Greeting.java
...java/org/hongxi/__artifactIdPackage__/model/Greeting.java
+21
-0
whatsmars-archetypes/web-archetype/src/main/resources/archetype-resources/src/main/resources/application.yml
...es/archetype-resources/src/main/resources/application.yml
+3
-0
whatsmars-archetypes/web-archetype/src/main/resources/archetype-resources/src/main/resources/log4j2.xml
...sources/archetype-resources/src/main/resources/log4j2.xml
+67
-0
未找到文件。
README.md
浏览文件 @
dfed8c50
...
...
@@ -13,6 +13,7 @@
### Modules intro
Module | Intro
------ | ------
whatsmars-archetypes | 脚手架
whatsmars-common | Utils公共模块
whatsmars-dubbo | 高性能分布式RPC框架
whatsmars-elasticjob | 分布式调度框架
...
...
pom.xml
浏览文件 @
dfed8c50
...
...
@@ -32,6 +32,7 @@
<module>
whatsmars-zk
</module>
<module>
whatsmars-flink
</module>
<module>
whatsmars-spring-data
</module>
<module>
whatsmars-archetypes
</module>
</modules>
<!--这里的properties会覆盖父pom里的重名的配置-->
...
...
whatsmars-archetypes/dubbo-archetype/pom.xml
0 → 100644
浏览文件 @
dfed8c50
<?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"
>
<parent>
<artifactId>
whatsmars-archetypes
</artifactId>
<groupId>
org.hongxi
</groupId>
<version>
Rocket.S8
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
dubbo-archetype
</artifactId>
<packaging>
jar
</packaging>
</project>
\ No newline at end of file
whatsmars-archetypes/dubbo-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml
0 → 100644
浏览文件 @
dfed8c50
<?xml version="1.0" encoding="UTF-8"?>
<archetype-descriptor
name=
"standard"
>
<requiredProperties>
<requiredProperty
key=
"artifactIdCamelCase"
>
<defaultValue>
${artifactId.replaceAll("^a|-a", "A").replaceAll("^b|-b", "B").replaceAll("^c|-c", "C").replaceAll("^d|-d", "D").replaceAll("^e|-e", "E").replaceAll("^f|-f", "F").replaceAll("^g|-g", "G").replaceAll("^h|-h", "H").replaceAll("^i|-i", "I").replaceAll("^j|-j", "J").replaceAll("^k|-k", "K").replaceAll("^l|-l", "L").replaceAll("^m|-m", "M").replaceAll("^n|-n", "N").replaceAll("^o|-o", "O").replaceAll("^p|-p", "P").replaceAll("^q|-q", "Q").replaceAll("^r|-r", "R").replaceAll("^s|-s", "S").replaceAll("^t|-t", "T").replaceAll("^u|-u", "U").replaceAll("^v|-v", "V").replaceAll("^w|-w", "W").replaceAll("^x|-x", "X").replaceAll("^y|-y", "Y").replaceAll("^z|-z", "Z")}
</defaultValue>
</requiredProperty>
<requiredProperty
key=
"artifactIdPackage"
>
<defaultValue>
${artifactId.replace("-",".")}
</defaultValue>
</requiredProperty>
</requiredProperties>
<fileSets>
<fileSet
filtered=
"true"
>
<directory></directory>
<includes>
<include>
**/*
</include>
</includes>
</fileSet>
</fileSets>
</archetype-descriptor>
whatsmars-archetypes/dubbo-archetype/src/main/resources/META-INF/maven/archetype.xml
0 → 100644
浏览文件 @
dfed8c50
<archetype
xmlns=
"http://maven.apache.org/plugins/maven-archetype-plugin/archetype/1.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/plugins/maven-archetype-plugin/archetype/1.0.0 http://maven.apache.org/xsd/archetype-1.0.0.xsd"
>
<id>
dubbo-archetype
</id>
</archetype>
\ No newline at end of file
whatsmars-archetypes/dubbo-archetype/src/main/resources/archetype-resources/.gitigore
0 → 100644
浏览文件 @
dfed8c50
.idea*
*.iml
*.log
target/
whatsmars-archetypes/dubbo-archetype/src/main/resources/archetype-resources/__artifactId__-api/pom.xml
0 → 100644
浏览文件 @
dfed8c50
<?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"
>
<parent>
<groupId>
${groupId}
</groupId>
<artifactId>
${artifactId}
</artifactId>
<version>
${version}
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
${artifactId}-api
</artifactId>
</project>
\ No newline at end of file
whatsmars-archetypes/dubbo-archetype/src/main/resources/archetype-resources/__artifactId__-api/src/main/java/org/hongxi/__artifactIdPackage__/api/DemoService.java
0 → 100644
浏览文件 @
dfed8c50
package
org.hongxi.
$
{
artifactIdPackage
}.
api
;
public
interface
DemoService
{
String
hello
(
String
name
);
}
whatsmars-archetypes/dubbo-archetype/src/main/resources/archetype-resources/__artifactId__-service/pom.xml
0 → 100644
浏览文件 @
dfed8c50
<?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"
>
<parent>
<groupId>
${groupId}
</groupId>
<artifactId>
${artifactId}
</artifactId>
<version>
${version}
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
${artifactId}-service
</artifactId>
<dependencies>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter
</artifactId>
</dependency>
<dependency>
<groupId>
org.hongxi
</groupId>
<artifactId>
dubbo-spring-boot-starter
</artifactId>
<version>
Rocket.S8
</version>
</dependency>
<dependency>
<groupId>
${groupId}
</groupId>
<artifactId>
${artifactId}-api
</artifactId>
<version>
${version}
</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
</plugin>
</plugins>
</build>
</project>
whatsmars-archetypes/dubbo-archetype/src/main/resources/archetype-resources/__artifactId__-service/src/main/java/org/hongxi/__artifactIdPackage__/Application.java
0 → 100644
浏览文件 @
dfed8c50
package
org.hongxi.
$
{
artifactIdPackage
};
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
@SpringBootApplication
public
class
Application
{
public
static
void
main
(
String
[]
args
)
{
SpringApplication
.
run
(
Application
.
class
,
args
);
}
}
\ No newline at end of file
whatsmars-archetypes/dubbo-archetype/src/main/resources/archetype-resources/__artifactId__-service/src/main/java/org/hongxi/__artifactIdPackage__/service/impl/DemoServiceImpl.java
0 → 100644
浏览文件 @
dfed8c50
package
org.hongxi.
$
{
artifactIdPackage
}.
service
.
impl
;
import
org.apache.dubbo.config.annotation.Service
;
import
org.hongxi.
$
{
artifactIdPackage
}.
api
.
DemoService
;
@Service
public
class
DemoServiceImpl
implements
DemoService
{
@Override
public
String
hello
(
String
name
)
{
return
"Hello "
+
name
;
}
}
whatsmars-archetypes/dubbo-archetype/src/main/resources/archetype-resources/__artifactId__-service/src/main/resources/application.yml
0 → 100644
浏览文件 @
dfed8c50
spring
:
application
:
name
:
${artifactId}
dubbo
:
registry
:
protocol
:
zookeeper
address
:
127.0.0.1:2181
id
:
defaultRegistry
protocol
:
port
:
20882
name
:
dubbo
status
:
server
id
:
dubbo
application
:
name
:
${artifactId}
id
:
${artifactId}
qosEnable
:
true
qosPort
:
22223
scan
:
basePackages
:
org.hongxi.whatsmars.dubbo.demo.provider.service
provider
:
threadpool
:
fixed
threads
:
200
dispatcher
:
message
whatsmars-archetypes/dubbo-archetype/src/main/resources/archetype-resources/pom.xml
0 → 100644
浏览文件 @
dfed8c50
<?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"
>
<parent>
<artifactId>
whatsmars-parent
</artifactId>
<groupId>
org.hongxi
</groupId>
<version>
Rocket.S8
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<groupId>
${groupId}
</groupId>
<artifactId>
${artifactId}
</artifactId>
<version>
${version}
</version>
<packaging>
pom
</packaging>
<modules>
<module>
${artifactId}-api
</module>
<module>
${artifactId}-service
</module>
</modules>
</project>
\ No newline at end of file
whatsmars-archetypes/pom.xml
0 → 100644
浏览文件 @
dfed8c50
<?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"
>
<parent>
<artifactId>
whatsmars-parent
</artifactId>
<groupId>
org.hongxi
</groupId>
<version>
Rocket.S8
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
whatsmars-archetypes
</artifactId>
<packaging>
pom
</packaging>
<modules>
<module>
web-archetype
</module>
<module>
dubbo-archetype
</module>
</modules>
</project>
\ No newline at end of file
whatsmars-archetypes/web-archetype/pom.xml
0 → 100644
浏览文件 @
dfed8c50
<?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"
>
<parent>
<artifactId>
whatsmars-archetypes
</artifactId>
<groupId>
org.hongxi
</groupId>
<version>
Rocket.S8
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
web-archetype
</artifactId>
<packaging>
jar
</packaging>
</project>
\ No newline at end of file
whatsmars-archetypes/web-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml
0 → 100644
浏览文件 @
dfed8c50
<?xml version="1.0" encoding="UTF-8"?>
<archetype-descriptor
name=
"standard"
>
<requiredProperties>
<requiredProperty
key=
"artifactIdCamelCase"
>
<defaultValue>
${artifactId.replaceAll("^a|-a", "A").replaceAll("^b|-b", "B").replaceAll("^c|-c", "C").replaceAll("^d|-d", "D").replaceAll("^e|-e", "E").replaceAll("^f|-f", "F").replaceAll("^g|-g", "G").replaceAll("^h|-h", "H").replaceAll("^i|-i", "I").replaceAll("^j|-j", "J").replaceAll("^k|-k", "K").replaceAll("^l|-l", "L").replaceAll("^m|-m", "M").replaceAll("^n|-n", "N").replaceAll("^o|-o", "O").replaceAll("^p|-p", "P").replaceAll("^q|-q", "Q").replaceAll("^r|-r", "R").replaceAll("^s|-s", "S").replaceAll("^t|-t", "T").replaceAll("^u|-u", "U").replaceAll("^v|-v", "V").replaceAll("^w|-w", "W").replaceAll("^x|-x", "X").replaceAll("^y|-y", "Y").replaceAll("^z|-z", "Z")}
</defaultValue>
</requiredProperty>
<requiredProperty
key=
"artifactIdPackage"
>
<defaultValue>
${artifactId.replace("-",".")}
</defaultValue>
</requiredProperty>
</requiredProperties>
<fileSets>
<fileSet
filtered=
"true"
>
<directory></directory>
<includes>
<include>
**/*
</include>
</includes>
</fileSet>
</fileSets>
</archetype-descriptor>
whatsmars-archetypes/web-archetype/src/main/resources/META-INF/maven/archetype.xml
0 → 100644
浏览文件 @
dfed8c50
<archetype
xmlns=
"http://maven.apache.org/plugins/maven-archetype-plugin/archetype/1.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/plugins/maven-archetype-plugin/archetype/1.0.0 http://maven.apache.org/xsd/archetype-1.0.0.xsd"
>
<id>
web-archetype
</id>
</archetype>
\ No newline at end of file
whatsmars-archetypes/web-archetype/src/main/resources/archetype-resources/.gitigore
0 → 100644
浏览文件 @
dfed8c50
.idea*
*.iml
*.log
target/
whatsmars-archetypes/web-archetype/src/main/resources/archetype-resources/pom.xml
0 → 100644
浏览文件 @
dfed8c50
<?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"
>
<parent>
<groupId>
org.hongxi
</groupId>
<artifactId>
whatsmars-parent
</artifactId>
<version>
Rocket.S8
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<groupId>
${groupId}
</groupId>
<artifactId>
${artifactId}
</artifactId>
<version>
${version}
</version>
<packaging>
jar
</packaging>
<dependencies>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-web
</artifactId>
<exclusions>
<exclusion>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-logging
</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-log4j2
</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
whatsmars-archetypes/web-archetype/src/main/resources/archetype-resources/src/main/java/org/hongxi/__artifactIdPackage__/Application.java
0 → 100644
浏览文件 @
dfed8c50
package
org.hongxi.
$
{
artifactIdPackage
};
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
@SpringBootApplication
public
class
Application
{
public
static
void
main
(
String
[]
args
)
{
SpringApplication
.
run
(
Application
.
class
,
args
);
}
}
\ No newline at end of file
whatsmars-archetypes/web-archetype/src/main/resources/archetype-resources/src/main/java/org/hongxi/__artifactIdPackage__/controller/GreetingController.java
0 → 100644
浏览文件 @
dfed8c50
package
org.hongxi.
$
{
artifactIdPackage
}.
controller
;
import
com.hongxi.
$
{
artifactIdPackage
}.
model
.
Greeting
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.Random
;
import
java.util.concurrent.atomic.AtomicLong
;
@RestController
public
class
GreetingController
{
private
final
AtomicLong
counter
=
new
AtomicLong
();
@RequestMapping
(
"/greeting"
)
public
Greeting
greeting
(
@RequestParam
(
value
=
"name"
)
String
name
)
{
try
{
Thread
.
sleep
(
new
Random
().
nextInt
(
1000
));
}
catch
(
Exception
e
)
{}
return
new
Greeting
(
counter
.
incrementAndGet
(),
String
.
format
(
"Hello, %s!"
,
name
));
}
}
\ No newline at end of file
whatsmars-archetypes/web-archetype/src/main/resources/archetype-resources/src/main/java/org/hongxi/__artifactIdPackage__/model/Greeting.java
0 → 100644
浏览文件 @
dfed8c50
package
org.hongxi.
$
{
artifactIdPackage
}.
model
;
public
class
Greeting
{
private
long
id
;
private
String
content
;
public
Greeting
()
{}
public
Greeting
(
long
id
,
String
content
)
{
this
.
id
=
id
;
this
.
content
=
content
;
}
public
long
getId
()
{
return
id
;
}
public
String
getContent
()
{
return
content
;
}
}
\ No newline at end of file
whatsmars-archetypes/web-archetype/src/main/resources/archetype-resources/src/main/resources/application.yml
0 → 100644
浏览文件 @
dfed8c50
spring
:
application
:
name
:
${artifactId}
\ No newline at end of file
whatsmars-archetypes/web-archetype/src/main/resources/archetype-resources/src/main/resources/log4j2.xml
0 → 100644
浏览文件 @
dfed8c50
<?xml version="1.0" encoding="UTF-8"?>
<Configuration
status=
"info"
monitorInterval=
"2"
>
<Properties>
<Property
name=
"log_path"
>
/tmp/logs/${artifactId}
</Property>
</Properties>
<Appenders>
<Console
name=
"Console"
target=
"SYSTEM_OUT"
>
<ThresholdFilter
level=
"info"
onMatch=
"ACCEPT"
onMismatch=
"DENY"
/>
<PatternLayout
pattern=
"%d{yyyy-MM-dd HH:mm:ss,SSS} %5p (%c{1}#%M:%L) %t - %m%n"
/>
</Console>
<RollingFile
name=
"debug"
fileName=
"${log_path}/debug.log"
filePattern=
"${log_path}/debug-%d{yyyy-MM-dd}-%i.log.gz"
>
<PatternLayout>
<Pattern>
%d{yyyy-MM-dd HH:mm:ss,SSS} %5p (%c{1}#%M:%L) %t - %m%n
</Pattern>
</PatternLayout>
<Filters>
<ThresholdFilter
level=
"INFO"
onMatch=
"DENY"
onMismatch=
"ACCEPT"
/>
<ThresholdFilter
level=
"DEBUG"
onMatch=
"ACCEPT"
onMismatch=
"DENY"
/>
</Filters>
<Policies>
<TimeBasedTriggeringPolicy
interval=
"1"
/>
<SizeBasedTriggeringPolicy
size=
"1GB"
/>
</Policies>
</RollingFile>
<RollingFile
name=
"info"
fileName=
"${log_path}/${artifactId}.log"
filePattern=
"${log_path}/${artifactId}-%d{yyyy-MM-dd}-%i.log.gz"
>
<PatternLayout>
<Pattern>
%d{yyyy-MM-dd HH:mm:ss,SSS} %5p (%c{1}#%M:%L) %t - %m%n
</Pattern>
</PatternLayout>
<Filters>
<ThresholdFilter
level=
"WARN"
/>
<ThresholdFilter
level=
"ERROR"
onMatch=
"DENY"
onMismatch=
"NEUTRAL"
/>
</Filters>
<Policies>
<TimeBasedTriggeringPolicy
interval=
"1"
/>
<SizeBasedTriggeringPolicy
size=
"1GB"
/>
</Policies>
</RollingFile>
<RollingFile
name=
"error"
fileName=
"${log_path}/error.log"
filePattern=
"${log_path}/error-%d{yyyy-MM-dd}-%i.log.gz"
>
<PatternLayout>
<Pattern>
%d{yyyy-MM-dd HH:mm:ss,SSS} %5p (%c{1}#%M:%L) %t - %m%n
</Pattern>
</PatternLayout>
<ThresholdFilter
level=
"ERROR"
/>
<Policies>
<TimeBasedTriggeringPolicy
interval=
"1"
/>
<SizeBasedTriggeringPolicy
size=
"1GB"
/>
</Policies>
</RollingFile>
</Appenders>
<Loggers>
<Root
level=
"INFO"
>
<AppenderRef
ref=
"Console"
/>
<AppenderRef
ref=
"debug"
/>
<AppenderRef
ref=
"info"
/>
<AppenderRef
ref=
"error"
/>
</Root>
</Loggers>
</Configuration>
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录