我有SomeInterface的几种实现。问题是SomeInterface的所有实现中的executeSomething方法的切入点是什么。
public class SomeImplementation implements SomeInterface {
public String executeSomething(String parameter) {
// Do something
}
}
public class AnotherImplementation implements SomeInterface {
public String executeSomething(String parameter) {
// Do something different way
}
}
Run Code Online (Sandbox Code Playgroud) 默认情况下,Spring Boot具有许多依赖项,例如Web / DB / Security和嵌入式Tomcat等许多其他项。
在大多数项目中,我只需要依赖注入,读取application.properties参数和TestNG支持。没有其他的。
问题是如何以最少的配置获得Spring Boot?。