首页 > 解决方案 > 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-bootspring-mvc

解决方案


推荐阅读