Skip to content

Commit 9255b9a

Browse files
committed
Java:对 SpringBoot 3.0+ 的 Demo 新增引导日志
1 parent 34f9cd0 commit 9255b9a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

APIJSON-Java-Server/APIJSONDemo-SpringBoot3/src/main/java/apijson/demo/DemoApplication.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
package apijson.demo;
1616

17+
import apijson.Log;
1718
import org.springframework.boot.SpringApplication;
1819
import org.springframework.boot.autoconfigure.SpringBootApplication;
1920
import org.springframework.boot.context.properties.EnableConfigurationProperties;
@@ -41,7 +42,11 @@ public class DemoApplication implements WebServerFactoryCustomizer<ConfigurableS
4142
public static void main(String[] args) throws Exception {
4243
SpringApplication.run(DemoApplication.class, args);
4344

44-
// Log.DEBUG = true;
45+
Log.DEBUG = true; // TODO 上线前改为 false
46+
System.out.println("官方网站: http://apijson.cn");
47+
System.out.println("设计规范: https://github.com/Tencent/APIJSON/blob/master/Document.md#3");
48+
System.out.println("测试链接: http://apijson.cn/api?type=JSON&url=http://localhost:8080/get");
49+
System.out.println("\n\n<<<<<<<<<<<<<<<<<<<<<<<<< APIJSON 启动完成,试试调用零代码万能通用 API 吧 ^_^ >>>>>>>>>>>>>>>>>>>>>>>>\n");
4550
}
4651

4752
// SpringBoot 2.x 自定义端口方式

0 commit comments

Comments
 (0)