Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

optimize: add version to the console banner #6417

Open
wants to merge 12 commits into
base: 2.x
Choose a base branch
from
4 changes: 4 additions & 0 deletions changes/en-us/2.x.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@ Add changes here for all PR submitted to the 2.x branch.
retry mechanism
- [[#6387](https://github.com/apache/incubator-seata/pull/6387)] optimize tcc use compatible
- [[#6402](https://github.com/apache/incubator-seata/pull/6402)] optimize rm-datasource use compatible
- [[#6417](https://github.com/apache/incubator-seata/pull/6417)] add version to the console banner

### refactor:
- [[#6269](https://github.com/apache/incubator-seata/pull/6269)] standardize Seata Exception
- [[#6403](https://github.com/apache/incubator-seata/pull/6403)] optimize config compatible module
- [[#6419](https://github.com/apache/incubator-seata/pull/6419)] optimize integration-tx-api compatible
- [[#6427](https://github.com/apache/incubator-seata/pull/6427)] support spi、saga、spring module compatible
Expand Down
1 change: 1 addition & 0 deletions changes/zh-cn/2.x.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@
- [[#6387](https://github.com/apache/incubator-seata/pull/6387)] 优化tcc使用兼容
- [[#6403](https://github.com/apache/incubator-seata/pull/6403)] 优化 Config 兼容模块
- [[#6402](https://github.com/apache/incubator-seata/pull/6402)] 优化rm-datasource向下兼容
- [[#6417](https://github.com/apache/incubator-seata/pull/6417)] 控制台banner添加版本号
- [[#6419](https://github.com/apache/incubator-seata/pull/6419)] 优化integration-tx-api向下兼容
- [[#6427](https://github.com/apache/incubator-seata/pull/6427)] 支持spi、saga、spring模块的向下兼容
- [[#6442](https://github.com/apache/incubator-seata/pull/6442)] 阐明 if
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,22 @@

import java.io.IOException;

import org.apache.seata.core.protocol.Version;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
* Server Application
*/
@SpringBootApplication(scanBasePackages = {"org.apache.seata"})
public class ServerApplication {
private static final Logger LOGGER = LoggerFactory.getLogger(ServerApplication.class);

public static void main(String[] args) throws IOException {
// run the spring-boot application
LOGGER.info("current version: {}", Version.getCurrent());
SpringApplication.run(ServerApplication.class, args);
}
}
17 changes: 10 additions & 7 deletions server/src/main/resources/banner.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
███████╗███████╗ █████╗ ████████╗ █████╗
██╔════╝██╔════╝██╔══██╗╚══██╔══╝██╔══██╗
███████╗█████╗ ███████║ ██║ ███████║
╚════██║██╔══╝ ██╔══██║ ██║ ██╔══██║
███████║███████╗██║ ██║ ██║ ██║ ██║
╚══════╝╚══════╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝

_ _____ _
/\ | | / ____| | |
/ \ _ __ __ _ ___| |__ ___ | (___ ___ __ _| |_ __ _
/ /\ \ | '_ \ / _` |/ __| '_ \ / _ \ \___ \ / _ \/ _` | __/ _` |
/ ____ \| |_) | (_| | (__| | | | __/ ____) | __/ (_| | || (_| |
/_/ \_\ .__/ \__,_|\___|_| |_|\___| |_____/ \___|\__,_|\__\__,_|
| |
|_|
document:https://seata.apache.org
github:https://github.com/apache/incubator-seata
Loading