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

This commit is contained in:
JEECG
2024-10-19 20:18:35 +08:00
parent d9e8bd2bc8
commit 03739f2837
14 changed files with 34 additions and 34 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));
}
}