1.setting.xml里改源
2.
pom.xml里加配置:
<dependency>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<version>2.4</version>
<type>maven-plugin</type>
</dependency>
<dependency>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
<type>maven-plugin</type>
</dependency>
3.***************************
APPLICATION FAILED TO START
Description:
Failed to configure a DataSource: ‘url’ attribute is not specified and no embedded datasource could be configured.
Reason: Failed to determine a suitable driver class
The method's class, javax.persistence.Table, is available from the following locations:
jar:file:/F:/jdk/jre/lib/ext/servlet-api.jar!/javax/servlet/ServletContext.class
jar:file:/C:\Users\fan\.m2\repository\javax\servlet\javax.servlet-api\3.1.0\javax.servlet-api-3.1.0.jar!/javax/servlet/ServletContext.class
4.run
删除其中一个,看哪个留下能跑就行
错误:
Cannot determine local hostname
解决方法:
,这个异常的意思就是在方法中有非法的参数,于是我觉得问题应该出在请求上。果然,我发现我写的ajax请求地址写的是 https,可是我并没有加密,是无法用https协议的,将https改为http即可。
别用https