Skip to content

Commit a67095c

Browse files
committed
text block
1 parent 120031f commit a67095c

File tree

4 files changed

+34
-18
lines changed

4 files changed

+34
-18
lines changed

content-checker/content-checker-service/src/main/java/gt/contentchecker/ContentCheckerService.java

+7-5
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,13 @@ public static void main(String[] args) throws UnknownHostException {
2424
SpringApplication app = new SpringApplication(ContentCheckerService.class);
2525
Environment env = app.run(args).getEnvironment();
2626

27-
log.info("Access URLs:\n----------------------------------------------------------\n\t" +
28-
"Local: \t\t\thttp://localhost:{}\n\t" +
29-
"External: \t\thttp://{}:{}\n\t" +
30-
"Environment: \t{} \n" +
31-
"----------------------------------------------------------",
27+
log.info("""
28+
Access URLs:
29+
----------------------------------------------------------
30+
\tLocal: \t\t\thttp://localhost:{}
31+
\tExternal: \t\thttp://{}:{}
32+
\tEnvironment: \t{}\s
33+
----------------------------------------------------------""",
3234
env.getProperty("server.port"),
3335
InetAddress.getLocalHost().getHostAddress(),
3436
env.getProperty("server.port"),

email/email-service/src/main/java/gt/mail/EmailServiceApp.java

+7-5
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,13 @@ public static void main(String[] args) throws UnknownHostException {
1818
SpringApplication app = new SpringApplication(EmailServiceApp.class);
1919
Environment env = app.run(args).getEnvironment();
2020

21-
log.info("Access URLs:\n----------------------------------------------------------\n\t" +
22-
"Local: \t\t\thttp://localhost:{}\n\t" +
23-
"External: \t\thttp://{}:{}\n\t" +
24-
"Environment: \t{} \n" +
25-
"----------------------------------------------------------",
21+
log.info("""
22+
Access URLs:
23+
----------------------------------------------------------
24+
\tLocal: \t\t\thttp://localhost:{}
25+
\tExternal: \t\thttp://{}:{}
26+
\tEnvironment: \t{}\s
27+
----------------------------------------------------------""",
2628
env.getProperty("server.port"),
2729
InetAddress.getLocalHost().getHostAddress(),
2830
env.getProperty("server.port"),

main-app/report-service/src/main/java/gt/report/ReportServiceApp.java

+13-3
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,30 @@
66
import org.springframework.core.env.Environment;
77
import org.springframework.scheduling.annotation.EnableScheduling;
88

9+
import java.net.InetAddress;
10+
import java.net.UnknownHostException;
911
import java.util.Arrays;
1012

1113
@SpringBootApplication
1214
@Slf4j
1315
@EnableScheduling
1416
public class ReportServiceApp {
1517

16-
public static void main(String[] args) {
18+
public static void main(String[] args) throws UnknownHostException {
1719

1820
SpringApplication app = new SpringApplication(ReportServiceApp.class);
1921
Environment env = app.run(args).getEnvironment();
2022

21-
log.info("Environment: \t{} \n\t" +
22-
"----------------------------------------------------------",
23+
log.info("""
24+
Access URLs:
25+
----------------------------------------------------------
26+
\tLocal: \t\t\thttp://localhost:{}
27+
\tExternal: \t\thttp://{}:{}
28+
\tEnvironment: \t{}\s
29+
----------------------------------------------------------""",
30+
env.getProperty("server.port"),
31+
InetAddress.getLocalHost().getHostAddress(),
32+
env.getProperty("server.port"),
2333
Arrays.toString(env.getActiveProfiles())
2434
);
2535
}

trend/trend-service/src/main/java/gt/trend/TrendServiceApp.java

+7-5
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,13 @@ public static void main(String[] args) throws UnknownHostException {
2020
SpringApplication app = new SpringApplication(TrendServiceApp.class);
2121
Environment env = app.run(args).getEnvironment();
2222

23-
log.info("Access URLs:\n----------------------------------------------------------\n\t" +
24-
"Local: \t\t\thttp://localhost:{}\n\t" +
25-
"External: \t\thttp://{}:{}\n\t" +
26-
"Environment: \t{} \n" +
27-
"----------------------------------------------------------",
23+
log.info("""
24+
Access URLs:
25+
----------------------------------------------------------
26+
\tLocal: \t\t\thttp://localhost:{}
27+
\tExternal: \t\thttp://{}:{}
28+
\tEnvironment: \t{}\s
29+
----------------------------------------------------------""",
2830
env.getProperty("server.port"),
2931
InetAddress.getLocalHost().getHostAddress(),
3032
env.getProperty("server.port"),

0 commit comments

Comments
 (0)