mirror of
https://github.com/jeecgboot/JeecgBoot.git
synced 2026-01-03 20:35:29 +08:00
【springboot3分支 issues/7353】The bean 'dataSource', defined in class path resource #7353
This commit is contained in:
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user