This problem occurs when spring boot} integrates thymeleaf
By querying other people’s blogs. I understand that there are several possible errors
1 when the method corresponding to your controller layer returns the HTML path and name, add an additional /.
For example, return “/index”. If this ‘/’ causes an error, the solution is to remove the ‘/’ in front of the return, such as return “/index”
2. Introduction package problem (I solved it this way)
Add dependency in porn
<dependency>
<groupId>net.sourceforge.nekohtml</groupId>
<artifactId>nekohtml</artifactId>
<version>1.9.22</version>
</dependency>
Read More:
- [Solved] Using GCP copy to report errors in Linux: DBUS. Exceptions. Dbusexception: org. Freedesktop. DBUS. Error. Notsupported:
- Resolving yum source-related issues: Cannot retrieve metalink for repository: epel/x86_64. Please verify its path and try again
- [Solved] Linux Error: Failed to start bean ‘webServerStartStop‘; nested exception is org.springframework.
- ros2 apt-get install error: E: Failed to fetch http://packages.ros.org…
- linux yum Error: PYCURL ERROR 6 – “Couldn’t resolve host ‘mirrorlist.centos.org’”
- How to Skip testing when Maven is packaged
- Hadoop 3.2.0 idea development environment construction and HDFS read write API operation
- [Solved] Environment: failed conda all InvalidVersionSpecError: Invalid version spec: =2.7
- [Solved] Jenkins build error: esbuild install failed
- [Solved] docker: Error response from daemon: OCI runtime create failed: container_linux.go:380
- Ubuntu: How to deal with the fatal: the remote end hung up unexpected error of GIT clone Android kernel
- [Solved] CUDA initialization: Unexpected error from cudaGetDeviceCount()
- How to Fix Linux sub process /usr/bin/dpkg returned an error code (1)
- [Solved] Git Error: GnuTLS recv error (-54): Error in the pull function
- C#: How to Use Itextsharp to Manipulate PDF Files
- Common configuration methods of nginx
- Ubuntu Error: dpkg: error processing package mysql-community-server (–configure):
- [Solved] Error in OpenSSL when compiling code locally for raspberry pie
- The prefix “mvc” for element “mvc:view-controller” is not bound
- How to Fix No default.conf file in conf.d after Installing Nginx