我想使用spring-boot-starter-data-jpa功能来创建非Web应用程序。在52.4文档中说:ApplicationcodethatyouwanttorunasyourbusinesslogiccanbeimplementedasaCommandLineRunneranddroppedintothecontextasa@Beandefinition.我的AppPrincipalFrame看起来像:@ComponentpublicclassAppPrincipalFrameextendsJFrameimplementsCommandLineRunner{privateJ
我想使用spring-boot-starter-data-jpa功能来创建非Web应用程序。在52.4文档中说:ApplicationcodethatyouwanttorunasyourbusinesslogiccanbeimplementedasaCommandLineRunneranddroppedintothecontextasa@Beandefinition.我的AppPrincipalFrame看起来像:@ComponentpublicclassAppPrincipalFrameextendsJFrameimplementsCommandLineRunner{privateJ