19 lines
601 B
Java
19 lines
601 B
Java
package com.baeldung.buildproperties;
|
|
|
|
import org.springframework.boot.SpringApplication;
|
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|
import org.springframework.context.annotation.ComponentScan;
|
|
import org.springframework.context.annotation.PropertySource;
|
|
|
|
@SpringBootApplication
|
|
@ComponentScan(basePackages = "com.baeldung.buildproperties")
|
|
@PropertySource("classpath:build.properties")
|
|
//@PropertySource("classpath:build.yml")
|
|
public class Application {
|
|
|
|
public static void main(String[] args) {
|
|
SpringApplication.run(Application.class, args);
|
|
}
|
|
|
|
}
|