
A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

A template for quickly building an MCP server with Spring Boot, supporting JUnit unit tests and both STDIO and SSE transport modes.
Spring Boot MCP server template with JUnit testing is cataloged as an MCP server attributed to dreamcenter. A template for quickly building an MCP server with Spring Boot, supporting JUnit unit tests and both STDIO and SSE transport modes. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for Spring Boot MCP server template with JUnit testing are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
It supports both STDIO and SSE transport modes.
Yes, the project supports JUnit unit tests.
README.md · b201c77e89b6 · 采集于 2026-11-13 10:06:51 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
使用springboot快速构建一个mcp项目,项目支持 JUNIT单元测试。
模式支持: STDIO 和 SSE
解说视频:
- 全网首发:从零搭建 Springboot+MCP+JUnit 项目 【搭配CherryStudio】BV1qUXkYRE6C
- 全网首发:Springboot+MCP(SSE)+JUnit 从搭建到上线 BV1rSXWYGEVz
命令(Command):
java
参数(Arguments):
-jar
-Dfile.encoding=UTF-8
-Dspring.ai.mcp.server.stdio=true
AbsolutePath/**/xxx.jar
环境(Environments):
env1=xxx
env2=yyy
指令是java(如果本地主环境不是17+,注意切换);
参数file.encoding指定System.in和System.out为UTF-8编码,避免编码问题;
参数spring.ai.mcp.server.stdio表示以stdio的方式启用该服务;
环境配置,是将配置写入当前系统环境,以供当前程序调取。
SSE地址填写如下链接即可
http://主机地址:端口/sse
配置文件参见:McpServerProperties
spring.ai.mcp.server.sseMessageEndpoint=/mcp/message
原始的sse端点在/sse,而配置文件没有提供sse端点的配置方式,所以需要重新注入 ServerMcpTransport 来换掉原来的。
注意下面两个Bean配置都要加,因为自动注入文件 MpcWebMvcServerAutoConfiguration 中,对整个注册的注入条件是 @ConditionalOnMissingBean(ServerMcpTransport.class),导致下面两个bean都不会注入
private final String SSE_ENDPOINT = "/sse";
@Bean
@ConditionalOnMissingBean
public WebMvcSseServerTransport webMvcSseServerTransport(ObjectMapper objectMapper,
McpServerProperties serverProperties) {
return new WebMvcSseServerTransport(objectMapper, serverProperties.getSseMessageEndpoint(), SSE_ENDPOINT);
}
@Bean
public RouterFunction<ServerResponse> mvcMcpRouterFunction(WebMvcSseServerTransport transport) {
return transport.getRouterFunction();
}
需要重新注入多个 McpSyncServer ,详见类 MpcServerAutoConfiguration 。
因为多端点可能会涉及到的东西非常多,感兴趣的可以自己研究,我就只提供这样的指引啦!
在2025.03.26 的MCP官方协议文档中,更新了鉴权方案, 期待Spring的更新。
Bye.ヾ(•ω•`)o
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for Spring Boot MCP server template with JUnit testing from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/springboot-mcpserver-junit)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.