SSM实战-新闻发布管理实战学习遇到的问题----wsdchong

时间:2020/4/27

前言:创建数据库、编写五个配置文件、引入包和创建文件、创建持久类po、实现DAO、实现service、实现controller、实现页面功能。

百度翻译和百度真的是神器;

一、问题

1- javax.servlet.jsp.PageContext cannot be resolved to a type

原因:缺失servlet.jsp.jar包

解决方法:在build path引入这个包;

教程1:https://www.cnblogs.com/strive-study/p/5098528.html

 

2HttpServletRequest cannot be resolved to a type

原因:缺失Jsp-api.jar

解决方法:把Tomcat的这个包引入到lib;

教程1:https://blog.51cto.com/tianxingzhe/1679924

 

3 Element (frame) is obsolete. Its use is discouraged in HTML5 documents.

原因:元素过时;

解决方法:声明

教程1:https://blog.csdn.net/onceing/article/details/75106238

 

4 Invalid location of tag (input).

原因:输入的位置无效;

教程1:http://blog.sina.com.cn/s/blog_13e82a3820102x03w.html

教程2:https://www.cnblogs.com/sjxbg/p/9378965.html

 

5 Undefined attribute name (placeholder).

原因:未定义的属性名

解决方法:改声明

教程:https://blog.csdn.net/legendaryhaha/article/details/80208860

 

6 Request processing failed; nested exception is org.mybatis.spring.

原因:招不到sql文件;

教程:https://blog.csdn.net/tianshuhao/article/details/93376932

 

7 Classpath entry C:/Users/jsp-api.jar will not be exported or published. Runtime ClassNotFoundExceptions may result.

原因:buildpath中的包为外部导入或者非web-inf目录下的lib文件夹保证的。

解决方法:把把复制到web-inf目录下;

教程1:https://blog.csdn.net/qq_36620997/article/details/83186633

 

二、总结

归结下来,就是两个主要问题,一个是数据库的缺失,造成服务器500;一个是JSP文件在web-inf目录中,不能被引用。

解决方法:配置数据库MySQL;学习eclipse的使用

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值