【问题标题】:Spring MVC jsp not found when path contains multiple parts路径包含多个部分时找不到 Spring MVC jsp
【发布时间】:2021-02-06 03:15:50
【问题描述】:

感谢任何帮助。我有 Spring Boot MVC 应用程序,并注意到我的视图呈现的一些不一致。我目前正在使用版本为 2.3.4.RELEASE、Spring Security 和嵌入式 Tomcat 服务器和 Kotlin 的 Spring Boot starter parent(在 eclipse 中。是的,我同意这可能是一个错误,因为 ecliplse 中的 kotlin 支持非常缺乏)

当仅使用单个 /findData 映射获取请求时,我的应用程序会正确找到并呈现视图。使用多部分 /moreSpecific/findData url,应用程序返回 404 not found for the jsp。我不确定有什么区别,但应用程序无法根据 requestMapping 找到我的 jsp?

403 并没有失败,所以我不认为这是 Spring Security 问题

Application.properties
spring.mvc.view.prefix=WEB-INF/jsp/
spring.mvc.view.suffix=.jsp

RequestMappings / 堆栈

@RequestMapping( value=["/findData"], method = [RequestMethod.GET])
fun get(): String {
    return "findData"
}

2020-10-22 22:08:39.482 调试 16376 --- [io-61558-exec-6] os.web.servlet.view.JstlView :转发到 [WEB-INF/jsp/findData.jsp] 2020-10-22 22:08:39.485 调试 16376 --- [io-61558-exec-6] os.web.servlet.DispatcherServlet:完成 200 O

@RequestMapping( value=["/moreSpecific/findData"], method = [RequestMethod.GET])
fun get(): String {
    return "findData"
}

2020-10-22 22:08:39.482 调试 16376 --- [io-61558-exec-6] os.web.servlet.view.JstlView :转发到 [WEB-INF/jsp/findData.jsp] 2020-10-22 22:08:39.485 调试 16376 --- [io-61558-exec-6] os.web.servlet.DispatcherServlet:已完成 404 NOT_FOUND

我真的对此感到困惑。这是tomcat的行为吗?

【问题讨论】:

  • jsp文件如何映射?
  • 在属性文件中添加logging.level.org.springframework=TRACE logging.level.com=TRACE进行详细调试
  • 请发布控制器文件

标签: spring-boot spring-mvc jsp kotlin


【解决方案1】:

感谢您查看此帖子@fabriziogianni7

这是我的控制器 (kotlin),请注意与控制器级别映射或方法级别映射相同的问题

@Controller()
@RequestMapping("privacy")
class StaticContentController() {

    @RequestMapping( value=["/myApp"], method = [RequestMethod.GET])
        fun getPrivacy(): String {
            return "privacy"
    }

}

@Controller()
class StaticContentController() {

    @RequestMapping( value=["/privacy/myApp"], method = [RequestMethod.GET])
        fun getPrivacy(): String {
            return "privacy"
    }

}

这是日志级别变为 TRACE 的堆栈跟踪

2020-10-23 21:18:08.531 TRACE 14212 --- [io-61558-exec-3] o.s.b.w.s.f.OrderedRequestContextFilter :将请求上下文绑定到线程:org.apache.catalina.connector.RequestFacade@21ffb6a5 2020-10-23 21:18:08.532 DEBUG 14212 --- [io-61558-exec-3] o.s.security.web.FilterChainProxy : /privacy/myApp 在附加过滤器链中的第 13 个位置;触发过滤器:'WebAsyncManagerIntegrationFilter' 2020-10-23 21:18:08.532 DEBUG 14212 --- [io-61558-exec-3] o.s.security.web.FilterChainProxy : /privacy/myApp 位于附加过滤器链中 13 的第 2 位;触发过滤器:'SecurityContextPersistenceFilter' 2020-10-23 21:18:08.532 调试 14212 --- [io-61558-exec-3] w.c.HttpSessionSecurityContextRepository:当前不存在 HttpSession 2020-10-23 21:18:08.532 调试 14212 --- [io-61558-exec-3] w.c.HttpSessionSecurityContextRepository:HttpSession 中没有可用的 SecurityContext:null。将创建一个新的。 2020-10-23 21:18:08.532 DEBUG 14212 --- [io-61558-exec-3] o.s.security.web.FilterChainProxy : /privacy/myApp 位于附加过滤器链中 13 的第 3 位;触发过滤器:'HeaderWriterFilter' 2020-10-23 21:18:08.532 DEBUG 14212 --- [io-61558-exec-3] o.s.security.web.FilterChainProxy : /privacy/myApp 位于附加过滤器链中 13 个位置的第 4 位;触发过滤器:'CorsFilter' 2020-10-23 21:18:08.532 TRACE 14212 --- [io-61558-exec-3] o.s.b.f.s.DefaultListableBeanFactory:返回单例 bean 'staticContentController' 的缓存实例 2020-10-23 21:18:08.532 TRACE 14212 --- [io-61558-exec-3] s.w.s.m.m.a.RequestMappingHandlerMapping:映射到 com.stuff.controller.StaticContentController#getPrivacy() 2020-10-23 21:18:08.532 TRACE 14212 --- [io-61558-exec-3] oswshandler.SimpleUrlHandlerMapping:使用 [ResourceHttpRequestHandler ["classpath:/META-INF/resources/", "classpath :/resources/", "classpath:/static/", "classpath:/public/", "/"]] 和 4 个拦截器 2020-10-23 21:18:08.532 DEBUG 14212 --- [io-61558-exec-3] o.s.security.web.FilterChainProxy : /privacy/myApp 位于附加过滤器链中 13 个位置的第 5 位;触发过滤器:'CsrfFilter' 2020-10-23 21:18:08.532 调试 14212 --- [io-61558-exec-3] os.s.w.util.matcher.AndRequestMatcher :尝试使用 org.springframework.security.web.csrf.CsrfFilter$DefaultRequiresCsrfMatcher@363b8ade 进行匹配 2020-10-23 21:18:08.532 调试 14212 --- [io-61558-exec-3] os.s.w.util.matcher.AndRequestMatcher:不匹配 2020-10-23 21:18:08.532 DEBUG 14212 --- [io-61558-exec-3] os.security.web.FilterChainProxy : /privacy/myApp 位于附加过滤器链中 13 个位置的第 6 位;触发过滤器:'LogoutFilter' 2020-10-23 21:18:08.533 调试 14212 --- [io-61558-exec-3] os.s.w.u.matcher.AntPathRequestMatcher:请求“GET /privacy/myApp”与“POST /logout”不匹配 2020-10-23 21:18:08.533 DEBUG 14212 --- [io-61558-exec-3] os.security.web.FilterChainProxy : /privacy/myApp 位于附加过滤器链中 13 个位置的第 7 位;触发过滤器:'JwtAuthorizationFilter' 2020-10-23 21:18:08.533 DEBUG 14212 --- [io-61558-exec-3] os.security.web.FilterChainProxy : /privacy/myApp 位于附加过滤器链中 13 个位置的第 8 位;触发过滤器:'RequestCacheAwareFilter' 2020-10-23 21:18:08.533 调试 14212 --- [io-61558-exec-3] os.s.w.s.HttpSessionRequestCache:保存的请求不匹配 2020-10-23 21:18:08.533 DEBUG 14212 --- [io-61558-exec-3] o.s.security.web.FilterChainProxy : /privacy/myApp 位于附加过滤器链中 13 个位置的第 9 位;触发过滤器:'SecurityContextHolderAwareRequestFilter' 2020-10-23 21:18:08.533 DEBUG 14212 --- [io-61558-exec-3] os.security.web.FilterChainProxy : /privacy/myApp 位于附加过滤器链中 13 的第 10 位;触发过滤器:'AnonymousAuthenticationFilter' 2020-10-23 21:18:08.533 调试 14212 --- [io-61558-exec-3] os.s.w.a.AnonymousAuthenticationFilter:使用匿名令牌填充 SecurityContextHolder:'org.springframework.security.authentication.AnonymousAuthenticationToken@78b7cb1:主体:anonymousUser;凭证:[受保护];已认证:真实;详细信息:org.springframework.security.web.authentication.WebAuthenticationDetails@b364:RemoteIpAddress:0:0:0:0:0:0:0:1;会话ID:空;授予权限:ROLE_ANONYMOUS' 2020-10-23 21:18:08.534 DEBUG 14212 --- [io-61558-exec-3] os.security.web.FilterChainProxy : /privacy/myApp 位于附加过滤器链中 13 个位置的第 11 位;触发过滤器:'SessionManagementFilter' 2020-10-23 21:18:08.534 调试 14212 --- [io-61558-exec-3] os.s.w.session.SessionManagementFilter:请求的会话 ID C68A517C1245DFE21F171CAB87E7A320 无效。 2020-10-23 21:18:08.534 DEBUG 14212 --- [io-61558-exec-3] os.security.web.FilterChainProxy : /privacy/myApp 位于附加过滤器链中 13 的第 12 位;触发过滤器:'ExceptionTranslationFilter' 2020-10-23 21:18:08.534 DEBUG 14212 --- [io-61558-exec-3] os.security.web.FilterChainProxy : /privacy/myApp 位于附加过滤器链中 13 个位置的第 13 位;触发过滤器:'FilterSecurityInterceptor' 2020-10-23 21:18:08.534 调试 14212 --- [io-61558-exec-3] os.s.w.u.matcher.AntPathRequestMatcher:检查请求的匹配:'/privacy/myApp';反对 '/rest/auth/' 2020-10-23 21:18:08.534 调试 14212 --- [io-61558-exec-3] os.s.w.u.matcher.AntPathRequestMatcher:检查请求的匹配:'/privacy/myApp';反对'/privacy/' 2020-10-23 21:18:08.534 调试 14212 --- [io-61558-exec-3] o.s.s.w.a.i.FilterSecurityInterceptor:安全对象:FilterInvocation:URL:/privacy/myApp;属性:[permitAll] 2020-10-23 21:18:08.534 DEBUG 14212 --- [io-61558-exec-3] o.s.s.w.a.i.FilterSecurityInterceptor:以前经过身份验证:org.springframework.security.authentication.AnonymousAuthenticationToken@78b7cb1:主体:anonymousUser;凭证:[受保护];已认证:真实;详细信息:org.springframework.security.web.authentication.WebAuthenticationDetails@b364:RemoteIpAddress:0:0:0:0:0:0:0:1;会话ID:空;授予权限:ROLE_ANONYMOUS 2020-10-23 21:18:08.534 调试 14212 --- [io-61558-exec-3] ossaccess.vote.AffirmativeBased:投票者:org.springframework.security.web.access.expression.WebExpressionVoter@2d1dae66,返回: 1 2020-10-23 21:18:08.534 DEBUG 14212 --- [io-61558-exec-3] os.s.w.a.i.FilterSecurityInterceptor:授权成功 2020-10-23 21:18:08.534 调试 14212 --- [io-61558-exec-3] os.s.w.a.i.FilterSecurityInterceptor:RunAsManager 没有更改身份验证对象 2020-10-23 21:18:08.534 DEBUG 14212 --- [io-61558-exec-3] os.security.web.FilterChainProxy:/privacy/myApp 到达附加过滤器链的末尾;继续原链 2020-10-23 21:18:08.535 TRACE 14212 --- [io-61558-exec-3] osweb.servlet.DispatcherServlet:获取“/privacy/myApp”,参数={},标头={masked} DispatcherServlet 'dispatcherServlet' 2020-10-23 21:18:08.536 TRACE 14212 --- [io-61558-exec-3] o.s.b.f.s.DefaultListableBeanFactory:返回单例 bean 'staticContentController' 的缓存实例 2020-10-23 21:18:08.536 TRACE 14212 --- [io-61558-exec-3] s.w.s.m.m.a.RequestMappingHandlerMapping:映射到 com.stuff.controller.StaticContentController#getPrivacy() 2020-10-23 21:18:08.537 调试 14212 --- [io-61558-exec-3] o.j.s.OpenEntityManagerInViewInterceptor:在 OpenEntityManagerInViewInterceptor 中打开 JPA EntityManager 2020-10-23 21:18:08.537 TRACE 14212 --- [io-61558-exec-3] .stsTransactionSynchronizationManager :键 [org.springframework.orm.jpa.EntityManagerHolder@42c852f1] 的绑定值。 orm.jpa.LocalContainerEntityManagerFactoryBean@51d719bc] 到线程 [http-nio-61558-exec-3] 2020-10-23 21:18:08.537 TRACE 14212 --- [io-61558-exec-3] .w.s.m.m.a.ServletInvocableHandlerMethod:参数:[] 2020-10-23 21:18:08.537 TRACE 14212 --- [io-61558-exec-3] o.s.w.s.v.InternalResourceViewResolver:使用缓存提供的密钥 [privacy] 查看 2020-10-23 21:18:08.537 调试 14212 --- [io-61558-exec-3] oswsvContentNegotiatingViewResolver:给定 [text/html, application/xhtml+xml, image/avif, image /webp, image/apng, application/xml;q=0.9, application/signed-exchange;v=b3;q=0.9, /;q=0.8] 2020-10-23 21:18:08.538 TRACE 14212 --- [io-61558-exec-3] osweb.servlet.DispatcherServlet:渲染视图 [org.springframework.web.servlet.view.JstlView:名称“隐私” ; URL [WEB-INF/jsp/privacy.jsp]] 2020-10-23 21:18:08.538 调试 14212 --- [io-61558-exec-3] os.web.servlet.view.JstlView:视图名称“隐私”,模型 {} 2020-10-23 21:18:08.538 TRACE 14212 --- [io-61558-exec-3] o.s.b.f.s.DefaultListableBeanFactory:返回单例 bean 'requestDataValueProcessor' 的缓存实例 2020-10-23 21:18:08.538 调试 14212 --- [io-61558-exec-3] os.web.servlet.view.JstlView:转发到 [WEB-INF/jsp/privacy.jsp] 2020-10-23 21:18:08.539 DEBUG 14212 --- [io-61558-exec-3] osswheader.writers.HstsHeaderWriter:不注入 HSTS 标头,因为它与 requestMatcher org.springframework.security.web 不匹配。 header.writers.HstsHeaderWriter$SecureRequestMatcher@2aadaf18 2020-10-23 21:18:08.539 调试 14212 --- [io-61558-exec-3] w.c.HttpSessionSecurityContextRepository:SecurityContext 为空或内容是匿名的 - 上下文不会存储在 HttpSession 中。 2020-10-23 21:18:08.539 TRACE 14212 --- [io-61558-exec-3] .stsTransactionSynchronizationManager:删除了键 [org.springframework.orm.jpa.EntityManagerHolder@42c852f1] 的值 [org.springframework. orm.jpa.LocalContainerEntityManagerFactoryBean@51d719bc] 来自线程 [http-nio-61558-exec-3] 2020-10-23 21:18:08.539 调试 14212 --- [io-61558-exec-3] o.j.s.OpenEntityManagerInViewInterceptor:在 OpenEntityManagerInViewInterceptor 中关闭 JPA EntityManager 2020-10-23 21:18:08.539 调试 14212 --- [io-61558-exec-3] os.web.servlet.DispatcherServlet:已完成 404 NOT_FOUND,标头 = {masked} 2020-10-23 21:18:08.539 DEBUG 14212 --- [io-61558-exec-3] os.s.w.a.ExceptionTranslationFilter:链处理正常 2020-10-23 21:18:08.539 调试 14212 --- [io-61558-exec-3] s.s.w.c.SecurityContextPersistenceFilter:SecurityContextHolder 现在已清除,因为请求处理已完成 2020-10-23 21:18:08.539 TRACE 14212 --- [io-61558-exec-3] o.s.b.w.s.f.OrderedRequestContextFilter:清除线程绑定请求上下文:org.apache.catalina.connector.RequestFacade@21ffb6a5 2020-10-23 21:18:08.540 TRACE 14212 --- [io-61558-exec-3] o.s.b.w.s.f.OrderedRequestContextFilter:将请求上下文绑定到线程:org.apache.catalina.core.ApplicationHttpRequest@323c5966 2020-10-23 21:18:08.540 调试 14212 --- [io-61558-exec-3] o.s.security.web.FilterChainProxy:/错误在附加过滤器链中的 13 位置 1;触发过滤器:'WebAsyncManagerIntegrationFilter' 2020-10-23 21:18:08.540 调试 14212 --- [io-61558-exec-3] o.s.security.web.FilterChainProxy:/错误在附加过滤器链中的第 13 位的第 2 位;触发过滤器:'SecurityContextPersistenceFilter' 2020-10-23 21:18:08.540 调试 14212 --- [io-61558-exec-3] w.c.HttpSessionSecurityContextRepository:当前不存在 HttpSession 2020-10-23 21:18:08.540 调试 14212 --- [io-61558-exec-3] w.c.HttpSessionSecurityContextRepository:HttpSession 中没有可用的 SecurityContext:null。将创建一个新的。 2020-10-23 21:18:08.540 调试 14212 --- [io-61558-exec-3] o.s.security.web.FilterChainProxy : /error 在附加过滤器链中的第 13 位的第 3 位;触发过滤器:'HeaderWriterFilter' 2020-10-23 21:18:08.540 调试 14212 --- [io-61558-exec-3] o.s.security.web.FilterChainProxy:/错误在附加过滤器链中的第 13 位的第 4 位;触发过滤器:'CorsFilter' 2020-10-23 21:18:08.540 调试 14212 --- [io-61558-exec-3] o.s.security.web.FilterChainProxy:/错误在附加过滤器链中的 13 个位置的第 5 位;触发过滤器:'CsrfFilter' 2020-10-23 21:18:08.540 调试 14212 --- [io-61558-exec-3] o.s.security.web.FilterChainProxy:/错误在附加过滤器链中的第 13 位中的第 6 位;触发过滤器:'LogoutFilter' 2020-10-23 21:18:08.540 调试 14212 --- [io-61558-exec-3] os.s.w.u.matcher.AntPathRequestMatcher:请求“GET /error”与“POST /logout”不匹配 2020-10-23 21:18:08.540 调试 14212 --- [io-61558-exec-3] o.s.security.web.FilterChainProxy:/错误在附加过滤器链中的第 13 位中的第 7 位;触发过滤器:'JwtAuthorizationFilter' 2020-10-23 21:18:08.540 调试 14212 --- [io-61558-exec-3] o.s.security.web.FilterChainProxy:/错误在附加过滤器链中 13 个位置的第 8 位;触发过滤器:'RequestCacheAwareFilter' 2020-10-23 21:18:08.540 调试 14212 --- [io-61558-exec-3] os.s.w.s.HttpSessionRequestCache:保存的请求不匹配 2020-10-23 21:18:08.540 调试 14212 --- [io-61558-exec-3] os.security.web.FilterChainProxy:/错误在附加过滤器链中的 13 个位置的第 9 位;触发过滤器:'SecurityContextHolderAwareRequestFilter' 2020-10-23 21:18:08.540 调试 14212 --- [io-61558-exec-3] os.security.web.FilterChainProxy:/错误在附加过滤器链中的 13 个位置的第 10 位;触发过滤器:'AnonymousAuthenticationFilter' 2020-10-23 21:18:08.540 调试 14212 --- [io-61558-exec-3] os.s.w.a.AnonymousAuthenticationFilter:使用匿名令牌填充 SecurityContextHolder:'org.springframework.security.authentication.AnonymousAuthenticationToken@78b7cb1:主体:anonymousUser;凭证:[受保护];已认证:真实;详细信息:org.springframework.security.web.authentication.WebAuthenticationDetails@b364:RemoteIpAddress:0:0:0:0:0:0:0:1;会话ID:空;授予权限:ROLE_ANONYMOUS' 2020-10-23 21:18:08.540 调试 14212 --- [io-61558-exec-3] o.s.security.web.FilterChainProxy:/错误在附加过滤器链中的 13 个位置的第 11 位;触发过滤器:'SessionManagementFilter' 2020-10-23 21:18:08.540 调试 14212 --- [io-61558-exec-3] o.s.security.web.FilterChainProxy:/错误在附加过滤器链中的 13 个位置的第 12 位;触发过滤器:'ExceptionTranslationFilter' 2020-10-23 21:18:08.540 调试 14212 --- [io-61558-exec-3] os.security.web.FilterChainProxy:/错误在附加过滤器链中的 13 个位置的第 13 位;触发过滤器:'FilterSecurityInterceptor' 2020-10-23 21:18:08.540 调试 14212 --- [io-61558-exec-3] os.security.web.FilterChainProxy:/错误到达附加过滤器链的末尾;继续原链 2020-10-23 21:18:08.540 TRACE 14212 --- [io-61558-exec-3] osweb.servlet.DispatcherServlet:GET“/error”的“错误”调度,参数={},标题={在 DispatcherServlet 'dispatcherServlet' 中屏蔽} 2020-10-23 21:18:08.540 TRACE 14212 --- [io-61558-exec-3] s.w.s.m.m.a.RequestMappingHandlerMapping:2 个匹配映射:[{ /error,产生 [text/html]},{ /error}] 2020-10-23 21:18:08.541 TRACE 14212 --- [io-61558-exec-3] o.s.b.f.s.DefaultListableBeanFactory:返回单例 bean 'basicErrorController' 的缓存实例 2020-10-23 21:18:08.541 TRACE 14212 --- [io-61558-exec-3] swsmmaRequestMappingHandlerMapping:映射到 org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController#errorHtml(HttpServletRequest, HttpServletResponse ) 2020-10-23 21:18:08.541 调试 14212 --- [io-61558-exec-3] o.j.s.OpenEntityManagerInViewInterceptor:在 OpenEntityManagerInViewInterceptor 中打开 JPA EntityManager 2020-10-23 21:18:08.541 TRACE 14212 --- [io-61558-exec-3] .stsTransactionSynchronizationManager:键 [org.springframework.orm.jpa.EntityManagerHolder@4ac0951f] 的绑定值 [org.springframework.orm.jpa.EntityManagerHolder@4ac0951f]。 orm.jpa.LocalContainerEntityManagerFactoryBean@51d719bc] 到线程 [http-nio-61558-exec-3] 2020-10-23 21:18:08.541 TRACE 14212 --- [io-61558-exec-3] .wsmmaServletInvocableHandlerMethod:参数:[SecurityContextHolderAwareRequestWrapper [org.springframework.security.web.context.HttpSessionSecurityContextRepository$SaveToSessionRequestWrapper@63daa785], org.springframework.security.web.context.HttpSessionSecurityContextRepository$SaveToSessionResponseWrapper@4fc55aad] 2020-10-23 21:18:08.541 TRACE 14212 --- [io-61558-exec-3] o.s.c.e.PropertySourcesPropertyResolver:在 PropertySource 'server.ports' 中搜索键 'spring.template.provider.cache' 2020-10-23 21:18:08.541 TRACE 14212 --- [io-61558-exec-3] o.s.c.e.PropertySourcesPropertyResolver:在 PropertySource 'configurationProperties' 中搜索键 'spring.template.provider.cache' 2020-10-23 21:18:08.541 TRACE 14212 --- [io-61558-exec-3] o.s.c.e.PropertySourcesPropertyResolver:在 PropertySource 'servletConfigInitParams' 中搜索键 'spring.template.provider.cache' 2020-10-23 21:18:08.541 TRACE 14212 --- [io-61558-exec-3] o.s.c.e.PropertySourcesPropertyResolver:在 PropertySource 'servletContextInitParams' 中搜索键 'spring.template.provider.cache' 2020-10-23 21:18:08.541 TRACE 14212 --- [io-61558-exec-3] o.s.c.e.PropertySourcesPropertyResolver:在 PropertySource 'systemProperties' 中搜索键 'spring.template.provider.cache' 2020-10-23 21:18:08.541 TRACE 14212 --- [io-61558-exec-3] o.s.c.e.PropertySourcesPropertyResolver:在 PropertySource 'systemEnvironment' 中搜索键 'spring.template.provider.cache' 2020-10-23 21:18:08.541 TRACE 14212 --- [io-61558-exec-3] o.s.c.e.PropertySourcesPropertyResolver:在 PropertySource 'random' 中搜索键 'spring.template.provider.cache' 2020-10-23 21:18:08.541 TRACE 14212 --- [io-61558-exec-3] oscePropertySourcesPropertyResolver:在 PropertySource 'applicationConfig: [classpath:/application.特性]' 2020-10-23 21:18:08.541 TRACE 14212 --- [io-61558-exec-3] o.s.c.e.PropertySourcesPropertyResolver:在任何属性源中找不到键“spring.template.provider.cache” 2020-10-23 21:18:08.542 TRACE 14212 --- [io-61558-exec-3] o.s.c.e.PropertySourcesPropertyResolver:在 PropertySource 'server.ports' 中搜索键 'spring.template.provider.cache' 2020-10-23 21:18:08.542 TRACE 14212 --- [io-61558-exec-3] o.s.c.e.PropertySourcesPropertyResolver:在 PropertySource 'configurationProperties' 中搜索键 'spring.template.provider.cache' 2020-10-23 21:18:08.542 TRACE 14212 --- [io-61558-exec-3] o.s.c.e.PropertySourcesPropertyResolver:在 PropertySource 'servletConfigInitParams' 中搜索键 'spring.template.provider.cache' 2020-10-23 21:18:08.542 TRACE 14212 --- [io-61558-exec-3] o.s.c.e.PropertySourcesPropertyResolver:在 PropertySource 'servletContextInitParams' 中搜索键 'spring.template.provider.cache' 2020-10-23 21:18:08.542 TRACE 14212 --- [io-61558-exec-3] o.s.c.e.PropertySourcesPropertyResolver:在 PropertySource 'systemProperties' 中搜索键 'spring.template.provider.cache' 2020-10-23 21:18:08.542 TRACE 14212 --- [io-61558-exec-3] o.s.c.e.PropertySourcesPropertyResolver:在 PropertySource 'systemEnvironment' 中搜索键 'spring.template.provider.cache' 2020-10-23 21:18:08.542 TRACE 14212 --- [io-61558-exec-3] o.s.c.e.PropertySourcesPropertyResolver:在 PropertySource 'random' 中搜索键 'spring.template.provider.cache' 2020-10-23 21:18:08.542 TRACE 14212 --- [io-61558-exec-3] oscePropertySourcesPropertyResolver:在 PropertySource 'applicationConfig: [classpath:/application.特性]' 2020-10-23 21:18:08.542 TRACE 14212 --- [io-61558-exec-3] o.s.c.e.PropertySourcesPropertyResolver:在任何属性源中找不到键“spring.template.provider.cache” 2020-10-23 21:18:08.543 TRACE 14212 --- [io-61558-exec-3] o.s.b.f.s.DefaultListableBeanFactory:返回单例 bean 的缓存实例“错误” 2020-10-23 21:18:08.543 TRACE 14212 --- [io-61558-exec-3] o.s.w.s.v.InternalResourceViewResolver:使用缓存提供的键 [错误] 查看 2020-10-23 21:18:08.543 调试 14212 --- [io-61558-exec-3] o.s.w.s.v.ContentNegotiatingViewResolver:给定 [text/html, text/html;q=0.8] 选择的 'text/html' 2020-10-23 21:18:08.543 TRACE 14212 --- [io-61558-exec-3] osweb.servlet.DispatcherServlet:渲染视图 [org.springframework.boot.autoconfigure.web.servlet.error.ErrorMvcAutoConfiguration$静态视图@322e49ee] 2020-10-23 21:18:08.543 TRACE 14212 --- [io-61558-exec-3] .stsTransactionSynchronizationManager:删除了键 [org.springframework.orm.jpa.EntityManagerHolder@4ac0951f] 的值 [org.springframework. orm.jpa.LocalContainerEntityManagerFactoryBean@51d719bc] 来自线程 [http-nio-61558-exec-3] 2020-10-23 21:18:08.543 调试 14212 --- [io-61558-exec-3] o.j.s.OpenEntityManagerInViewInterceptor:在 OpenEntityManagerInViewInterceptor 中关闭 JPA EntityManager 2020-10-23 21:18:08.543 调试 14212 --- [io-61558-exec-3] os.web.servlet.DispatcherServlet:退出“错误”调度,状态 404,标头 = {masked} 2020-10-23 21:18:08.543 DEBUG 14212 --- [io-61558-exec-3] os.s.w.a.ExceptionTranslationFilter:链处理正常 2020-10-23 21:18:08.543 调试 14212 --- [io-61558-exec-3] w.c.HttpSessionSecurityContextRepository:SecurityContext 为空或内容是匿名的 - 上下文不会存储在 HttpSession 中。 2020-10-23 21:18:08.543 DEBUG 14212 --- [io-61558-exec-3] s.s.w.c.SecurityContextPersistenceFilter:SecurityContextHolder 现在被清除,请求处理完成 2020-10-23 21:18:08.543 TRACE 14212 --- [io-61558-exec-3] o.s.b.w.s.f.OrderedRequestContextFilter:清除线程绑定请求上下文:org.apache.catalina.core.ApplicationHttpRequest@323c5966

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2020-01-10
    • 2011-04-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-04-08
    • 1970-01-01
    相关资源
    最近更新 更多