日志条目
2019-03-27 18:42:09.812 WARN 400 --- [io-8080-exec-10] o.s.web.servlet.PageNotFound : No mapping for POST /inform
2019-03-27 18:42:24.923 WARN 400 --- [nio-8080-exec-1] o.s.web.servlet.PageNotFound : No mapping for POST /inform
2019-03-27 18:42:39.961 WARN 400 --- [nio-8080-exec-2] o.s.web.servlet.PageNotFound : No mapping for POST /inform
2019-03-27 18:42:54.998 WARN 400 --- [nio-8080-exec-3] o.s.web.servlet.PageNotFound : No mapping for POST /inform
我找不到此问题的根源,我已经在Google上搜索了/ inform端点,甚至整行都找不到与此相关的任何内容
由于警告,它不会影响我所看到的结果,但是我想在投产时对此加以控制
我怀疑它是由spring-boot生成的,但是没有关于它存在的文档。
有人知道是什么原因吗?如果我能控制的话,它可能对我有用!
我的依赖项是:
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<dependency>
<groupId>org.jsondoc</groupId>
<artifactId>spring-boot-starter-jsondoc</artifactId>
<version>1.2.20</version>
</dependency>
<dependency>
<groupId>org.jsondoc</groupId>
<artifactId>jsondoc-ui-webjar</artifactId>
<version>1.2.20</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.module</groupId>
<artifactId>jackson-module-kotlin</artifactId>
</dependency>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-reflect</artifactId>
</dependency>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-stdlib-jdk8</artifactId>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
答案 0 :(得分:0)
某件事正在您的应用程序中向POST
发出/inform
请求。由于应用程序中没有此类映射,因此正在记录警告。如果您不想记录警告,则可以通过将以下属性添加到application.properties
中来调整未找到记录器页面的日志级别:
logging.level.org.springframework.web.servlet.PageNotFound=error