Springboot helloworld错误汇总

编程入门 行业动态 更新时间:2024-10-09 03:32:53

Springboot helloworld<a href=https://www.elefans.com/category/jswz/34/1771449.html style=错误汇总"/>

Springboot helloworld错误汇总

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

更多推荐

Springboot helloworld错误汇总

本文发布于:2024-02-13 06:45:28,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1757755.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:错误   Springboot   helloworld

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!