spring-boot - SpringBootApplication 与 Spring Starter Web 错误
问题描述
即使是在 STS 中使用 Spring Web Starter 开发的最简单的 SpringBoot 应用程序也不适合我。我最初可以毫无错误地运行该应用程序,但是当我尝试使用 localhost:8080 访问时,我在控制台上收到以下消息:
java.lang.IllegalArgumentException:在方法名称中发现无效字符 [0x160x030x010x020x000x010x000x010xfc0x030x03/0xaf70x14n0xc70x8dF0x120x060x07e20xf70xe60xc30xff0xfa0xb7lXJx980x:x] HTTP 方法名称必须是标记。
该应用程序只是一个默认的 Spring Boot 应用程序:
@SpringBootApplication
public class TestewebApplication {
public static void main(String[] args) {
SpringApplication.run(TestewebApplication.class, args);
}
}
可能是什么错误?
解决方案
推荐阅读
- spring-mvc - 如何优化这个控制器和 Thymeleaf-View?
- powershell - 变量powershell的新值
- java - 如何在 MpChart 的 BarChart 中使 bar 独立且不相关?
- javascript - 如何使用 InboxSDK 在 Gmail 和其他网站上运行 chrome 扩展程序?
- blueprism - Blue Prism : 需要帮助来更新收藏
- python - 如何从点云或 3d 对象分析/计算人体部位的周长?
- javascript - “system.Action”不是有效的 Windows 运行时参数类型
- c# - 从 Session 更改 dbContext 连接字符串
- python - 地理分割不匹配
- javascript - Wordpress 高级自定义字段重复器问题,重复器字段一次为所有这些字段激活相同的动画