Class HttpPathConfiguration

java.lang.Object
com.alibaba.nacos.mcpregistry.config.HttpPathConfiguration

@Configuration public class HttpPathConfiguration extends Object
In the MCP community API definition, the MCP server name is passed as a path parameter. Because the server name can contain '/', we need to configure Tomcat and WebSecurity to allow '/' in the path.
Author:
xinluo
  • Constructor Details

    • HttpPathConfiguration

      public HttpPathConfiguration()
  • Method Details

    • connectorCustomizer

      @Bean public org.springframework.boot.web.embedded.tomcat.TomcatConnectorCustomizer connectorCustomizer()
    • webSecurityCustomizer

      @Bean public org.springframework.security.config.annotation.web.configuration.WebSecurityCustomizer webSecurityCustomizer()