将h2-cnsole传递到那里一次,同时尝试保留Web安全配置。我认为必须启用Spring Security,以便提供允许未经...
@Component@Profile("test")// <-- up to youpublicclassH2{privateorg.h2.tools.Server webServer;privateorg.h2.tools.Server tcpServer;@EventListener(org.springframework.context.event.ContextRefreshedEvent.class)publicvoidstart()throwsjava.sql.SQLException{this.webServer = org.h2.tools.Server.createWeb...