File tree Expand file tree Collapse file tree 4 files changed +34
-18
lines changed
content-checker/content-checker-service/src/main/java/gt/contentchecker
email/email-service/src/main/java/gt/mail
main-app/report-service/src/main/java/gt/report
trend/trend-service/src/main/java/gt/trend Expand file tree Collapse file tree 4 files changed +34
-18
lines changed Original file line number Diff line number Diff 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 \t http://localhost:{}\n \t " +
29- "External: \t \t http://{}:{}\n \t " +
30- "Environment: \t {} \n " +
31- "----------------------------------------------------------" ,
27+ log .info ("""
28+ Access URLs:
29+ ----------------------------------------------------------
30+ \t Local: \t \t \t http://localhost:{}
31+ \t External: \t \t http://{}:{}
32+ \t Environment: \t {}\s
33+ ----------------------------------------------------------""" ,
3234 env .getProperty ("server.port" ),
3335 InetAddress .getLocalHost ().getHostAddress (),
3436 env .getProperty ("server.port" ),
Original file line number Diff line number Diff 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 \t http://localhost:{}\n \t " +
23- "External: \t \t http://{}:{}\n \t " +
24- "Environment: \t {} \n " +
25- "----------------------------------------------------------" ,
21+ log .info ("""
22+ Access URLs:
23+ ----------------------------------------------------------
24+ \t Local: \t \t \t http://localhost:{}
25+ \t External: \t \t http://{}:{}
26+ \t Environment: \t {}\s
27+ ----------------------------------------------------------""" ,
2628 env .getProperty ("server.port" ),
2729 InetAddress .getLocalHost ().getHostAddress (),
2830 env .getProperty ("server.port" ),
Original file line number Diff line number Diff line change 66import org .springframework .core .env .Environment ;
77import org .springframework .scheduling .annotation .EnableScheduling ;
88
9+ import java .net .InetAddress ;
10+ import java .net .UnknownHostException ;
911import java .util .Arrays ;
1012
1113@ SpringBootApplication
1214@ Slf4j
1315@ EnableScheduling
1416public 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+ \t Local: \t \t \t http://localhost:{}
27+ \t External: \t \t http://{}:{}
28+ \t Environment: \t {}\s
29+ ----------------------------------------------------------""" ,
30+ env .getProperty ("server.port" ),
31+ InetAddress .getLocalHost ().getHostAddress (),
32+ env .getProperty ("server.port" ),
2333 Arrays .toString (env .getActiveProfiles ())
2434 );
2535 }
Original file line number Diff line number Diff 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 \t http://localhost:{}\n \t " +
25- "External: \t \t http://{}:{}\n \t " +
26- "Environment: \t {} \n " +
27- "----------------------------------------------------------" ,
23+ log .info ("""
24+ Access URLs:
25+ ----------------------------------------------------------
26+ \t Local: \t \t \t http://localhost:{}
27+ \t External: \t \t http://{}:{}
28+ \t Environment: \t {}\s
29+ ----------------------------------------------------------""" ,
2830 env .getProperty ("server.port" ),
2931 InetAddress .getLocalHost ().getHostAddress (),
3032 env .getProperty ("server.port" ),
You can’t perform that action at this time.
0 commit comments