|
@@ -1,23 +0,0 @@
|
|
|
-package com.caimei.www.config;
|
|
|
-
|
|
|
-import org.springframework.context.annotation.Bean;
|
|
|
-import org.springframework.context.annotation.Configuration;
|
|
|
-import org.springframework.core.io.ClassPathResource;
|
|
|
-import org.springframework.web.reactive.function.server.RouterFunction;
|
|
|
-import org.springframework.web.reactive.function.server.RouterFunctions;
|
|
|
-import org.springframework.web.reactive.function.server.ServerResponse;
|
|
|
-
|
|
|
-/**
|
|
|
- * 静态资源路径
|
|
|
- *
|
|
|
- * @author : Charles
|
|
|
- * @date : 2020/8/7
|
|
|
- */
|
|
|
-@Configuration
|
|
|
-public class StaticRoute {
|
|
|
- @Bean
|
|
|
- RouterFunction<ServerResponse> staticResourceRouter(){
|
|
|
- return RouterFunctions.resources("/static/**",
|
|
|
- new ClassPathResource("static/"));
|
|
|
- }
|
|
|
-}
|