The web page appears 406 generally for the following two situations:

1.Missing jar package

2.If the URL of the access url has a suffix ending in .html, the server cannot respond to the json data. Because springMVC will mistakenly think that the request with .html suffix is a request to access an html file, then springMVC cannot process the response json data

Solution

	Solution:
	1.Check if the dependent jar packages are complete
	2.Change or add the suffix of the SpringMVC front-end controller mapping in the web.xml file

E.g:

	<servlet-mapping>
		<servlet-name>taotao-portal</servlet-name>
		<url-pattern>*.html</url-pattern>
	</servlet-mapping>
	
	<servlet-mapping>
		<servlet-name>taotao-portal</servlet-name>
		<url-pattern>*.action</url-pattern>
	</servlet-mapping>

Related articles

webservice example

What is webservice: WebService is a remote invocation technology across programming languages and operating system platforms. The so-called cross programming language and cross operating platform means that the server program is written in java, and the

Install Tomcat

Tomcat relies on the java runtime environment, so it is necessary to have the appropriate version of the JDK before it can run properly. Tip: The current version is 9.0.5, but the version demonstrated here is 8.5.28, the reason is that CMDBuild officially

hbase Deployment

The deployment of hbase is relatively simple compared to java. The main process is as follows: 1. Download the latest stable version of hbase 2. Copy to the corresponding directory 3. Modify hbase-env.sh in the conf directory, and set java and inapplic

Java methods for creating threads

1.Inherits the Thread class and overrides the run( method. The run() method represents the task to be performed by the thread. • Thread is a thread class, located under the java.lang package

Java methods for creating threads

1.Inherits the Thread class and overrides the run( method. The run() method represents the task to be performed by the thread. • Thread is a thread class, located under the java.lang package