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
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 {
24
24
SpringApplication app = new SpringApplication (ContentCheckerService .class );
25
25
Environment env = app .run (args ).getEnvironment ();
26
26
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
+ ----------------------------------------------------------""" ,
32
34
env .getProperty ("server.port" ),
33
35
InetAddress .getLocalHost ().getHostAddress (),
34
36
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 {
18
18
SpringApplication app = new SpringApplication (EmailServiceApp .class );
19
19
Environment env = app .run (args ).getEnvironment ();
20
20
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
+ ----------------------------------------------------------""" ,
26
28
env .getProperty ("server.port" ),
27
29
InetAddress .getLocalHost ().getHostAddress (),
28
30
env .getProperty ("server.port" ),
Original file line number Diff line number Diff line change 6
6
import org .springframework .core .env .Environment ;
7
7
import org .springframework .scheduling .annotation .EnableScheduling ;
8
8
9
+ import java .net .InetAddress ;
10
+ import java .net .UnknownHostException ;
9
11
import java .util .Arrays ;
10
12
11
13
@ SpringBootApplication
12
14
@ Slf4j
13
15
@ EnableScheduling
14
16
public class ReportServiceApp {
15
17
16
- public static void main (String [] args ) {
18
+ public static void main (String [] args ) throws UnknownHostException {
17
19
18
20
SpringApplication app = new SpringApplication (ReportServiceApp .class );
19
21
Environment env = app .run (args ).getEnvironment ();
20
22
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" ),
23
33
Arrays .toString (env .getActiveProfiles ())
24
34
);
25
35
}
Original file line number Diff line number Diff line change @@ -20,11 +20,13 @@ public static void main(String[] args) throws UnknownHostException {
20
20
SpringApplication app = new SpringApplication (TrendServiceApp .class );
21
21
Environment env = app .run (args ).getEnvironment ();
22
22
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
+ ----------------------------------------------------------""" ,
28
30
env .getProperty ("server.port" ),
29
31
InetAddress .getLocalHost ().getHostAddress (),
30
32
env .getProperty ("server.port" ),
You can’t perform that action at this time.
0 commit comments