Spring入门程序

入门程序:漏泄+敲键盘错养的习惯,没啥其他问题

1.下载依赖太慢,等了一中午都不行

不懂,但是用了之后50s完成

(118条消息) 解决maven 在IDEA 下载依赖包速度慢的问题_idea下载依赖很慢_Specif1c的博客-CSDN博客

2.URI is not registered (Settings | Languages & Frameworks | Schemas and DTDs)

Cannot resolve symbol 'http://www.springframework.org/schema/beans/spring-beans.xsd'

Cannot resolve symbol"framework"

按着这个做了做发现不对劲只是忘记刷新了......我这种人怎么还活着?!

(118条消息) idea 出现Cannot resolve symbol ‘springframework‘解决方法_wjtc的博客-CSDN博客

3.我老把frame打成framen,下意识会多打一个n,留神不打这个n居然有一种小手无处可去的感觉......匪夷所思

4.<constructor-arg>没写完

No matching constructor found in class 'User1'User1(...):Bean:int id    ??? String name    ??? String password    ??? 

5.吧  .  打成   /   了

xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd">

 Exception in thread "main" org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 5 in XML document from class path resource [applicationContext-User.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 5; columnNumber: 70; cvc-elt.1.a: 找不到元素 'beans' 的声明。

6.new吃了

Method call expected

7.main函数吃了

cannot resolve symbol "println

8.applicationContext-User2.xml的.xml吃了

n in thread "main" org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [applicationContext-User2]; nested exception is java.io.FileNotFoundException: class path resource [applicationContext-User2] cannot be opened because it does not exist

9.忘了是什么,反正是什么没写全

Class 'UserServiceImpl' must either be declared abstract or implement abstract method 'login(String, String)' in 'UserService'
    

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值