【springboot3分支 issues/7353】The bean 'dataSource', defined in class path resource #7353

This commit is contained in:
JEECG
2024-10-19 19:30:05 +08:00
parent 6d432bc186
commit 79f7134bd5
12 changed files with 53 additions and 33 deletions

View File

@ -50,8 +50,8 @@ public class JeecgGatewayApplication implements CommandLineRunner {
* @param indexHtml
* @return
*/
// @Bean
// public RouterFunction<ServerResponse> indexRouter(@Value("classpath:/META-INF/resources/doc.html") final org.springframework.core.io.Resource indexHtml) {
// return route(GET("/"), request -> ok().contentType(MediaType.TEXT_HTML).syncBody(indexHtml));
// }
@Bean
public RouterFunction<ServerResponse> indexRouter(@Value("classpath:/META-INF/resources/doc.html") final org.springframework.core.io.Resource indexHtml) {
return route(GET("/"), request -> ok().contentType(MediaType.TEXT_HTML).syncBody(indexHtml));
}
}