草庐IT

AppPrincipalFrame

全部标签

java - 如何使用 Swing 应用程序配置 spring-boot

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

java - 如何使用 Swing 应用程序配置 spring-boot

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