![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JAVA初学问题
Angel_Diane_Yang
JAVA学习,人工智能爱好,强化学习,深度学习
展开
-
初学SpringMvc userServlet Http404
有可能是地址的问题,添加Deploy的时候可能会自动生成一个地址导致你直接访问http://localhost:8080/userServlet报错404如果你访问的地址是http://localhost:8080**/spring_mvc1_war_exploded**/userServlet加粗地方为红色箭头自动生成的一个地址 可能就能输出你要的结果...原创 2021-05-31 17:19:09 · 189 阅读 · 0 评论 -
org.apache.maven.plugins:maven-archetype-plugin:RELEASE
Error running ’ [org.apache.maven.plugins:maven-archetype-plugin:RELEASE:generate]’: No valid Maven installation found. Either set the home directory in the configuration dialog or set the M2_HOME environment variable on your system.No valid Maven install原创 2021-05-31 11:37:05 · 1831 阅读 · 0 评论 -
关于Java对象,非静态方法创建对象调用方法获取返回值的缩写形式
今天在学习的时候,实现一个练习:定义一个方法,获取数据库表中的数据,将其封装为对象,并装在到集合里;代码如下public class JDBCDemo3 { public static void main(String[] args) { List<eMP> list = new JDBCDemo3().findAll(); System.out.println(list); JDBCDemo3 jd = new JDBCDemo.原创 2021-05-25 17:21:38 · 263 阅读 · 0 评论 -
解决Dependency ‘org.springframework:spring-context:x.x.x.RELEASE‘ not found问题
在学习Spring框架的时候,对于XML配置文件出现,红色问题红色感叹号提示:“Dependency ‘org.springframework:spring-context:x.x.x.RELEASE‘ not found”解决步骤:1.点击IDEA 编辑器的右边栏Maven按钮2.点击后右击如下图所示.点击下载就可以了,然后红字就消失了!!!...原创 2021-05-19 18:10:36 · 8333 阅读 · 3 评论