Class HttpPathConfiguration
java.lang.Object
com.alibaba.nacos.mcpregistry.config.HttpPathConfiguration
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.boot.web.embedded.tomcat.TomcatConnectorCustomizerorg.springframework.security.config.annotation.web.configuration.WebSecurityCustomizer
-
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()
-