专栏首页别先生springboot 使用 freemarker 无法正常跳转的问题?

springboot 使用 freemarker 无法正常跳转的问题?

1、springboot 使用 freemarker 无法正常跳转的问题?

参考:https://blog.csdn.net/Lin_xiaofeng/article/details/79122053

  1 "C:\Program Files\Java\jdk1.8.0_161\bin\java.exe" -XX:TieredStopAtLevel=1 -noverify -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=50349 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=localhost -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true -javaagent:D:\biehl\idea\lib\idea_rt.jar=50350:D:\biehl\idea\bin -Dfile.encoding=UTF-8 -classpath "C:\Program Files\Java\jdk1.8.0_161\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.8.0_161\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.8.0_161\jre\lib\ext\access-bridge-64.jar;C:\Program Files\Java\jdk1.8.0_161\jre\lib\ext\cldrdata.jar;C:\Program Files\Java\jdk1.8.0_161\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.8.0_161\jre\lib\ext\jaccess.jar;C:\Program Files\Java\jdk1.8.0_161\jre\lib\ext\jfxrt.jar;C:\Program Files\Java\jdk1.8.0_161\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.8.0_161\jre\lib\ext\nashorn.jar;C:\Program Files\Java\jdk1.8.0_161\jre\lib\ext\sunec.jar;C:\Program Files\Java\jdk1.8.0_161\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.8.0_161\jre\lib\ext\sunmscapi.jar;C:\Program Files\Java\jdk1.8.0_161\jre\lib\ext\sunpkcs11.jar;C:\Program Files\Java\jdk1.8.0_161\jre\lib\ext\zipfs.jar;C:\Program Files\Java\jdk1.8.0_161\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.8.0_161\jre\lib\jce.jar;C:\Program Files\Java\jdk1.8.0_161\jre\lib\jfr.jar;C:\Program Files\Java\jdk1.8.0_161\jre\lib\jfxswt.jar;C:\Program Files\Java\jdk1.8.0_161\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.8.0_161\jre\lib\management-agent.jar;C:\Program Files\Java\jdk1.8.0_161\jre\lib\plugin.jar;C:\Program Files\Java\jdk1.8.0_161\jre\lib\resources.jar;C:\Program Files\Java\jdk1.8.0_161\jre\lib\rt.jar;D:\biehl\idea\workspace\dinner\target\classes;D:\maven\apache-maven-3.5.4\repository\org\springframework\boot\spring-boot-starter-web\2.1.6.RELEASE\spring-boot-starter-web-2.1.6.RELEASE.jar;D:\maven\apache-maven-3.5.4\repository\org\springframework\boot\spring-boot-starter\2.1.6.RELEASE\spring-boot-starter-2.1.6.RELEASE.jar;D:\maven\apache-maven-3.5.4\repository\org\springframework\boot\spring-boot\2.1.6.RELEASE\spring-boot-2.1.6.RELEASE.jar;D:\maven\apache-maven-3.5.4\repository\org\springframework\boot\spring-boot-autoconfigure\2.1.6.RELEASE\spring-boot-autoconfigure-2.1.6.RELEASE.jar;D:\maven\apache-maven-3.5.4\repository\org\springframework\boot\spring-boot-starter-logging\2.1.6.RELEASE\spring-boot-starter-logging-2.1.6.RELEASE.jar;D:\maven\apache-maven-3.5.4\repository\ch\qos\logback\logback-classic\1.2.3\logback-classic-1.2.3.jar;D:\maven\apache-maven-3.5.4\repository\ch\qos\logback\logback-core\1.2.3\logback-core-1.2.3.jar;D:\maven\apache-maven-3.5.4\repository\org\apache\logging\log4j\log4j-to-slf4j\2.11.2\log4j-to-slf4j-2.11.2.jar;D:\maven\apache-maven-3.5.4\repository\org\apache\logging\log4j\log4j-api\2.11.2\log4j-api-2.11.2.jar;D:\maven\apache-maven-3.5.4\repository\org\slf4j\jul-to-slf4j\1.7.26\jul-to-slf4j-1.7.26.jar;D:\maven\apache-maven-3.5.4\repository\javax\annotation\javax.annotation-api\1.3.2\javax.annotation-api-1.3.2.jar;D:\maven\apache-maven-3.5.4\repository\org\yaml\snakeyaml\1.23\snakeyaml-1.23.jar;D:\maven\apache-maven-3.5.4\repository\org\springframework\boot\spring-boot-starter-json\2.1.6.RELEASE\spring-boot-starter-json-2.1.6.RELEASE.jar;D:\maven\apache-maven-3.5.4\repository\com\fasterxml\jackson\core\jackson-databind\2.9.9\jackson-databind-2.9.9.jar;D:\maven\apache-maven-3.5.4\repository\com\fasterxml\jackson\core\jackson-annotations\2.9.0\jackson-annotations-2.9.0.jar;D:\maven\apache-maven-3.5.4\repository\com\fasterxml\jackson\core\jackson-core\2.9.9\jackson-core-2.9.9.jar;D:\maven\apache-maven-3.5.4\repository\com\fasterxml\jackson\datatype\jackson-datatype-jdk8\2.9.9\jackson-datatype-jdk8-2.9.9.jar;D:\maven\apache-maven-3.5.4\repository\com\fasterxml\jackson\datatype\jackson-datatype-jsr310\2.9.9\jackson-datatype-jsr310-2.9.9.jar;D:\maven\apache-maven-3.5.4\repository\com\fasterxml\jackson\module\jackson-module-parameter-names\2.9.9\jackson-module-parameter-names-2.9.9.jar;D:\maven\apache-maven-3.5.4\repository\org\springframework\boot\spring-boot-starter-tomcat\2.1.6.RELEASE\spring-boot-starter-tomcat-2.1.6.RELEASE.jar;D:\maven\apache-maven-3.5.4\repository\org\apache\tomcat\embed\tomcat-embed-core\9.0.21\tomcat-embed-core-9.0.21.jar;D:\maven\apache-maven-3.5.4\repository\org\apache\tomcat\embed\tomcat-embed-el\9.0.21\tomcat-embed-el-9.0.21.jar;D:\maven\apache-maven-3.5.4\repository\org\apache\tomcat\embed\tomcat-embed-websocket\9.0.21\tomcat-embed-websocket-9.0.21.jar;D:\maven\apache-maven-3.5.4\repository\org\hibernate\validator\hibernate-validator\6.0.17.Final\hibernate-validator-6.0.17.Final.jar;D:\maven\apache-maven-3.5.4\repository\javax\validation\validation-api\2.0.1.Final\validation-api-2.0.1.Final.jar;D:\maven\apache-maven-3.5.4\repository\org\jboss\logging\jboss-logging\3.3.2.Final\jboss-logging-3.3.2.Final.jar;D:\maven\apache-maven-3.5.4\repository\com\fasterxml\classmate\1.4.0\classmate-1.4.0.jar;D:\maven\apache-maven-3.5.4\repository\org\springframework\spring-web\5.1.8.RELEASE\spring-web-5.1.8.RELEASE.jar;D:\maven\apache-maven-3.5.4\repository\org\springframework\spring-webmvc\5.1.8.RELEASE\spring-webmvc-5.1.8.RELEASE.jar;D:\maven\apache-maven-3.5.4\repository\org\springframework\spring-aop\5.1.8.RELEASE\spring-aop-5.1.8.RELEASE.jar;D:\maven\apache-maven-3.5.4\repository\org\springframework\spring-context\5.1.8.RELEASE\spring-context-5.1.8.RELEASE.jar;D:\maven\apache-maven-3.5.4\repository\org\springframework\spring-expression\5.1.8.RELEASE\spring-expression-5.1.8.RELEASE.jar;D:\maven\apache-maven-3.5.4\repository\net\bytebuddy\byte-buddy\1.9.13\byte-buddy-1.9.13.jar;D:\maven\apache-maven-3.5.4\repository\org\springframework\spring-core\5.1.8.RELEASE\spring-core-5.1.8.RELEASE.jar;D:\maven\apache-maven-3.5.4\repository\org\springframework\spring-jcl\5.1.8.RELEASE\spring-jcl-5.1.8.RELEASE.jar;D:\maven\apache-maven-3.5.4\repository\org\projectlombok\lombok\1.18.8\lombok-1.18.8.jar;D:\maven\apache-maven-3.5.4\repository\mysql\mysql-connector-java\8.0.16\mysql-connector-java-8.0.16.jar;D:\maven\apache-maven-3.5.4\repository\org\springframework\boot\spring-boot-starter-data-jpa\2.1.6.RELEASE\spring-boot-starter-data-jpa-2.1.6.RELEASE.jar;D:\maven\apache-maven-3.5.4\repository\org\springframework\boot\spring-boot-starter-aop\2.1.6.RELEASE\spring-boot-starter-aop-2.1.6.RELEASE.jar;D:\maven\apache-maven-3.5.4\repository\org\aspectj\aspectjweaver\1.9.4\aspectjweaver-1.9.4.jar;D:\maven\apache-maven-3.5.4\repository\org\springframework\boot\spring-boot-starter-jdbc\2.1.6.RELEASE\spring-boot-starter-jdbc-2.1.6.RELEASE.jar;D:\maven\apache-maven-3.5.4\repository\com\zaxxer\HikariCP\3.2.0\HikariCP-3.2.0.jar;D:\maven\apache-maven-3.5.4\repository\org\springframework\spring-jdbc\5.1.8.RELEASE\spring-jdbc-5.1.8.RELEASE.jar;D:\maven\apache-maven-3.5.4\repository\javax\transaction\javax.transaction-api\1.3\javax.transaction-api-1.3.jar;D:\maven\apache-maven-3.5.4\repository\javax\xml\bind\jaxb-api\2.3.1\jaxb-api-2.3.1.jar;D:\maven\apache-maven-3.5.4\repository\javax\activation\javax.activation-api\1.2.0\javax.activation-api-1.2.0.jar;D:\maven\apache-maven-3.5.4\repository\org\hibernate\hibernate-core\5.3.10.Final\hibernate-core-5.3.10.Final.jar;D:\maven\apache-maven-3.5.4\repository\javax\persistence\javax.persistence-api\2.2\javax.persistence-api-2.2.jar;D:\maven\apache-maven-3.5.4\repository\org\javassist\javassist\3.23.2-GA\javassist-3.23.2-GA.jar;D:\maven\apache-maven-3.5.4\repository\antlr\antlr\2.7.7\antlr-2.7.7.jar;D:\maven\apache-maven-3.5.4\repository\org\jboss\jandex\2.0.5.Final\jandex-2.0.5.Final.jar;D:\maven\apache-maven-3.5.4\repository\org\dom4j\dom4j\2.1.1\dom4j-2.1.1.jar;D:\maven\apache-maven-3.5.4\repository\org\hibernate\common\hibernate-commons-annotations\5.0.4.Final\hibernate-commons-annotations-5.0.4.Final.jar;D:\maven\apache-maven-3.5.4\repository\org\springframework\data\spring-data-jpa\2.1.9.RELEASE\spring-data-jpa-2.1.9.RELEASE.jar;D:\maven\apache-maven-3.5.4\repository\org\springframework\spring-orm\5.1.8.RELEASE\spring-orm-5.1.8.RELEASE.jar;D:\maven\apache-maven-3.5.4\repository\org\springframework\spring-tx\5.1.8.RELEASE\spring-tx-5.1.8.RELEASE.jar;D:\maven\apache-maven-3.5.4\repository\org\springframework\spring-aspects\5.1.8.RELEASE\spring-aspects-5.1.8.RELEASE.jar;D:\maven\apache-maven-3.5.4\repository\org\springframework\data\spring-data-commons\2.1.9.RELEASE\spring-data-commons-2.1.9.RELEASE.jar;D:\maven\apache-maven-3.5.4\repository\org\springframework\spring-beans\5.1.8.RELEASE\spring-beans-5.1.8.RELEASE.jar;D:\maven\apache-maven-3.5.4\repository\org\slf4j\slf4j-api\1.7.26\slf4j-api-1.7.26.jar;D:\maven\apache-maven-3.5.4\repository\com\google\code\gson\gson\2.8.5\gson-2.8.5.jar;D:\maven\apache-maven-3.5.4\repository\org\springframework\boot\spring-boot-starter-freemarker\2.1.6.RELEASE\spring-boot-starter-freemarker-2.1.6.RELEASE.jar;D:\maven\apache-maven-3.5.4\repository\org\freemarker\freemarker\2.3.28\freemarker-2.3.28.jar;D:\maven\apache-maven-3.5.4\repository\org\springframework\spring-context-support\5.1.8.RELEASE\spring-context-support-5.1.8.RELEASE.jar;D:\maven\apache-maven-3.5.4\repository\org\springframework\boot\spring-boot-starter-thymeleaf\2.1.6.RELEASE\spring-boot-starter-thymeleaf-2.1.6.RELEASE.jar;D:\maven\apache-maven-3.5.4\repository\org\thymeleaf\thymeleaf-spring5\3.0.11.RELEASE\thymeleaf-spring5-3.0.11.RELEASE.jar;D:\maven\apache-maven-3.5.4\repository\org\thymeleaf\thymeleaf\3.0.11.RELEASE\thymeleaf-3.0.11.RELEASE.jar;D:\maven\apache-maven-3.5.4\repository\org\attoparser\attoparser\2.0.5.RELEASE\attoparser-2.0.5.RELEASE.jar;D:\maven\apache-maven-3.5.4\repository\org\unbescape\unbescape\1.1.6.RELEASE\unbescape-1.1.6.RELEASE.jar;D:\maven\apache-maven-3.5.4\repository\org\thymeleaf\extras\thymeleaf-extras-java8time\3.0.4.RELEASE\thymeleaf-extras-java8time-3.0.4.RELEASE.jar;D:\maven\apache-maven-3.5.4\repository\net\sourceforge\nekohtml\nekohtml\1.9.22\nekohtml-1.9.22.jar;D:\maven\apache-maven-3.5.4\repository\xerces\xercesImpl\2.11.0\xercesImpl-2.11.0.jar;D:\maven\apache-maven-3.5.4\repository\xml-apis\xml-apis\1.4.01\xml-apis-1.4.01.jar" com.bie.dinner.DinnerApplication
  2 
  3   .   ____          _            __ _ _
  4  /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
  5 ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
  6  \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  7   '  |____| .__|_| |_|_| |_\__, | / / / /
  8  =========|_|==============|___/=/_/_/_/
  9  :: Spring Boot ::        (v2.1.6.RELEASE)
 10 
 11 17:13:15.768 default [main] INFO  com.bie.dinner.DinnerApplication Starting DinnerApplication on DESKTOP-T450s with PID 15692 (D:\biehl\idea\workspace\dinner\target\classes started by Aiyufei in D:\biehl\idea\workspace\dinner)
 12 17:13:15.774 default [main] INFO  com.bie.dinner.DinnerApplication No active profile set, falling back to default profiles: default
 13 17:13:17.752 default [main] INFO  o.s.d.r.c.RepositoryConfigurationDelegate Bootstrapping Spring Data repositories in DEFAULT mode.
 14 17:13:17.989 default [main] INFO  o.s.d.r.c.RepositoryConfigurationDelegate Finished Spring Data repository scanning in 206ms. Found 4 repository interfaces.
 15 17:13:18.836 default [main] INFO  o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$572a4fb0] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
 16 17:13:19.433 default [main] INFO  o.s.b.w.e.tomcat.TomcatWebServer Tomcat initialized with port(s): 8080 (http)
 17 17:13:19.461 default [main] INFO  o.a.coyote.http11.Http11NioProtocol Initializing ProtocolHandler ["http-nio-8080"]
 18 17:13:19.483 default [main] INFO  o.a.catalina.core.StandardService Starting service [Tomcat]
 19 17:13:19.483 default [main] INFO  o.a.catalina.core.StandardEngine Starting Servlet engine: [Apache Tomcat/9.0.21]
 20 17:13:19.946 default [main] INFO  o.a.c.c.C.[.[localhost].[/sell] Initializing Spring embedded WebApplicationContext
 21 17:13:19.946 default [main] INFO  o.s.web.context.ContextLoader Root WebApplicationContext: initialization completed in 3966 ms
 22 17:13:20.404 default [main] INFO  com.zaxxer.hikari.HikariDataSource HikariPool-1 - Starting...
 23 17:13:20.407 default [main] WARN  c.z.hikari.util.DriverDataSource Registered driver with driverClassName=com.mysql.jdbc.Driver was not found, trying direct instantiation.
 24 17:13:21.009 default [main] INFO  com.zaxxer.hikari.HikariDataSource HikariPool-1 - Start completed.
 25 Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary.
 26 17:13:25.516 default [main] INFO  o.h.jpa.internal.util.LogHelper HHH000204: Processing PersistenceUnitInfo [
 27     name: default
 28     ...]
 29 17:13:25.651 default [main] INFO  org.hibernate.Version HHH000412: Hibernate Core {5.3.10.Final}
 30 17:13:25.656 default [main] INFO  org.hibernate.cfg.Environment HHH000206: hibernate.properties not found
 31 17:13:25.940 default [main] INFO  o.h.annotations.common.Version HCANN000001: Hibernate Commons Annotations {5.0.4.Final}
 32 17:13:26.251 default [main] INFO  org.hibernate.dialect.Dialect HHH000400: Using dialect: org.hibernate.dialect.MySQL5Dialect
 33 17:13:27.868 default [main] INFO  o.s.o.j.LocalContainerEntityManagerFactoryBean Initialized JPA EntityManagerFactory for persistence unit 'default'
 34 17:13:29.378 default [main] INFO  o.s.s.c.ThreadPoolTaskExecutor Initializing ExecutorService 'applicationTaskExecutor'
 35 17:13:29.462 default [main] WARN  o.s.b.a.o.j.JpaBaseConfiguration$JpaWebConfiguration$JpaWebMvcConfiguration spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
 36 17:13:30.227 default [main] WARN  o.s.b.a.f.FreeMarkerAutoConfiguration Cannot find template location(s): [/templates/] (please add some templates, check your FreeMarker configuration, or set spring.freemarker.checkTemplateLocation=false)
 37 17:13:30.607 default [main] INFO  o.a.coyote.http11.Http11NioProtocol Starting ProtocolHandler ["http-nio-8080"]
 38 17:13:30.670 default [main] INFO  o.s.b.w.e.tomcat.TomcatWebServer Tomcat started on port(s): 8080 (http) with context path '/sell'
 39 17:13:30.682 default [main] INFO  com.bie.dinner.DinnerApplication Started DinnerApplication in 16.696 seconds (JVM running for 21.486)
 40 17:19:44.622 default [http-nio-8080-exec-1] INFO  o.a.c.c.C.[.[localhost].[/sell] Initializing Spring DispatcherServlet 'dispatcherServlet'
 41 17:19:44.623 default [http-nio-8080-exec-1] INFO  o.s.web.servlet.DispatcherServlet Initializing Servlet 'dispatcherServlet'
 42 17:19:44.645 default [http-nio-8080-exec-1] INFO  o.s.web.servlet.DispatcherServlet Completed initialization in 22 ms
 43 17:19:44.935 default [http-nio-8080-exec-1] INFO  o.h.h.i.QueryTranslatorFactoryInitiator HHH000397: Using ASTQueryTranslatorFactory
 44 Hibernate: select ordermaste0_.order_id as order_id1_1_, ordermaste0_.buyer_address as buyer_ad2_1_, ordermaste0_.buyer_name as buyer_na3_1_, ordermaste0_.buyer_openid as buyer_op4_1_, ordermaste0_.buyer_phone as buyer_ph5_1_, ordermaste0_.create_time as create_t6_1_, ordermaste0_.order_amount as order_am7_1_, ordermaste0_.order_status as order_st8_1_, ordermaste0_.pay_status as pay_stat9_1_, ordermaste0_.update_time as update_10_1_ from order_master ordermaste0_ limit ?
 45 17:19:47.116 default [http-nio-8080-exec-1] ERROR org.thymeleaf.TemplateEngine [THYMELEAF][http-nio-8080-exec-1] Exception processing template "order/list": Error resolving template [order/list], template might not exist or might not be accessible by any of the configured Template Resolvers
 46 org.thymeleaf.exceptions.TemplateInputException: Error resolving template [order/list], template might not exist or might not be accessible by any of the configured Template Resolvers
 47     at org.thymeleaf.engine.TemplateManager.resolveTemplate(TemplateManager.java:869)
 48     at org.thymeleaf.engine.TemplateManager.parseAndProcess(TemplateManager.java:607)
 49     at org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1098)
 50     at org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1072)
 51     at org.thymeleaf.spring5.view.ThymeleafView.renderFragment(ThymeleafView.java:362)
 52     at org.thymeleaf.spring5.view.ThymeleafView.render(ThymeleafView.java:189)
 53     at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1371)
 54     at org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1117)
 55     at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1056)
 56     at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:942)
 57     at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1005)
 58     at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:897)
 59     at javax.servlet.http.HttpServlet.service(HttpServlet.java:634)
 60     at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:882)
 61     at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
 62     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
 63     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
 64     at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
 65     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
 66     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
 67     at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)
 68     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:109)
 69     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
 70     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
 71     at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:92)
 72     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:109)
 73     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
 74     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
 75     at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:93)
 76     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:109)
 77     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
 78     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
 79     at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200)
 80     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:109)
 81     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
 82     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
 83     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)
 84     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
 85     at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490)
 86     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
 87     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
 88     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
 89     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
 90     at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408)
 91     at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
 92     at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:853)
 93     at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1587)
 94     at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
 95     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
 96     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
 97     at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
 98     at java.lang.Thread.run(Thread.java:748)
 99 17:19:47.653 default [http-nio-8080-exec-1] ERROR o.a.c.c.C.[.[.[.[dispatcherServlet] Servlet.service() for servlet [dispatcherServlet] in context with path [/sell] threw exception [Request processing failed; nested exception is org.thymeleaf.exceptions.TemplateInputException: Error resolving template [order/list], template might not exist or might not be accessible by any of the configured Template Resolvers] with root cause
100 org.thymeleaf.exceptions.TemplateInputException: Error resolving template [order/list], template might not exist or might not be accessible by any of the configured Template Resolvers
101     at org.thymeleaf.engine.TemplateManager.resolveTemplate(TemplateManager.java:869)
102     at org.thymeleaf.engine.TemplateManager.parseAndProcess(TemplateManager.java:607)
103     at org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1098)
104     at org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1072)
105     at org.thymeleaf.spring5.view.ThymeleafView.renderFragment(ThymeleafView.java:362)
106     at org.thymeleaf.spring5.view.ThymeleafView.render(ThymeleafView.java:189)
107     at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1371)
108     at org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1117)
109     at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1056)
110     at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:942)
111     at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1005)
112     at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:897)
113     at javax.servlet.http.HttpServlet.service(HttpServlet.java:634)
114     at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:882)
115     at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
116     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
117     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
118     at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
119     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
120     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
121     at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)
122     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:109)
123     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
124     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
125     at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:92)
126     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:109)
127     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
128     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
129     at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:93)
130     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:109)
131     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
132     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
133     at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200)
134     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:109)
135     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
136     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
137     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)
138     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
139     at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490)
140     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
141     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
142     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
143     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
144     at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408)
145     at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
146     at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:853)
147     at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1587)
148     at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
149     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
150     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
151     at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
152     at java.lang.Thread.run(Thread.java:748)

2、解决方法:

在pom文件里面引入依赖包。

 1 <!-- framework -->
 2 <dependency>
 3     <groupId>org.springframework.boot</groupId>
 4     <artifactId>spring-boot-starter-freemarker</artifactId>
 5 </dependency>
 6 <dependency>
 7     <groupId>org.springframework.boot</groupId>
 8     <artifactId>spring-boot-starter-thymeleaf</artifactId>
 9 </dependency>
10 <dependency>
11     <groupId>net.sourceforge.nekohtml</groupId>
12     <artifactId>nekohtml</artifactId>
13 </dependency>

我加上了@ResponseBody注解,根据自己情况判断吧。

千万别加的配置:

待续......

本文参与腾讯云自媒体分享计划,欢迎正在阅读的你也加入,一起分享。

我来说两句

0 条评论
登录 后参与评论

相关文章

  • java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.metastore.HiveMetaStoreClie

    别先生
  • org.apache.thrift.transport.TTransportException: Could not create ServerSocket on address 0.0.0.0/0.

    1、启动hive的过程中,[hadoop@slaver1 soft]$ hive --service metastore & 错误如下所示: 原因:之前启动hi...

    别先生
  • Caused by: java.lang.ClassNotFoundException: backtype.storm.topology.IRichSpout

    1:初次运行Strom程序出现如下所示的错误,贴一下,方便脑补,也希望帮助到看到的小伙伴: 错误如下所示,主要问题是刚开始使用maven获取jar包的时候需要写...

    别先生
  • maven build时报错

    可能原因有很多个,  1. maven私服连不上了, 有一些jar包没有下载到本地, 或者是私服的路径配置错误

    MonroeCode
  • 详述 IntelliJ IDEA 遇到 Maven 项目打开(Open)或者导入(Import)失败的解决方法

    现有一个 Maven 项目,通过 IntelliJ IDEA 的Open或者Import Project来打开或者导入该项目:

    CG国斌
  • maven build时报错Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test

    maven build时报错Failed to execute goal org.apache.maven.plugins:maven-surefire-plu...

    MonroeCode
  • java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.metastore.HiveMetaStoreClie

    别先生
  • DOCX to PDF conversion is successfully done document builder

    版权声明:署名,允许他人基于本文进行创作,且必须基于与原先许可协议相同的许可协议分发本文 (Creative Commons)

    Jerry Wang
  • adb设备信息查询修改刷机等命令

    ADB很强大,记住一些ADB命令有助于提高工作效率。 通过ADB命令查看wifi密码、MAC地址、设备信息、操作文件、查看文件、日志信息、卸载、启动和安装APK...

    ihoey
  • SpringBoot2版本Caused by: java.sql.SQLSyntaxErrorException: Table 'dinner.hibernate_sequenc

    1、SpringBoot2版本Caused by: java.sql.SQLSyntaxErrorException: Table 'dinner.hibern...

    别先生

扫码关注云+社区

领取腾讯云代金券