package com.pj.more;

import org.springframework.context.annotation.Configuration;

/**
 * 以代码方式配置路由转发规则
 * 
 * @author kong
 *
 */
@Configuration
public class RouteConfigure {
	
//	@Bean
//	public RouteLocator myRoutes(RouteLocatorBuilder builder) {
//	    return builder.routes()
//	        .route(p -> p
//	            .path("/sp-admin/**")
//	            .filters(f -> f.stripPrefix(1).addRequestHeader(SaIdUtil.ID_TOKEN, SaIdUtil.getToken()))
//	            .uri("lb://sp-admin")
//	        ).build();
//	}
	
}