shinnosuke
2026-08-28 0b064045b0af20040b6ad976a7ce33cdc03d91f7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package com.talentcard.server;
 
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.ConfigurationPropertiesScan;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.scheduling.annotation.EnableScheduling;
 
@SpringBootApplication
@ConfigurationPropertiesScan
@EnableScheduling
public class TalentCardServerApplication {
 
    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(TalentCardServerApplication.class, args);
        String port = context.getEnvironment().getProperty("local.server.port", "8080");
        System.out.printf("Swagger UI: http://localhost:%s/swagger-ui/index.html%n", port);
    }
 
}