本人新导入一个maven项目可是jsp页面一直报错,我先按照网上的经验操作如下步骤:

  在pom.xml配置文件中添加上javax.servlet的相关依赖:

    <dependency> 
    <groupId>javax.servlet</groupId> 
    <artifactId>servlet-api</artifactId> 
    <version>2.5</version> 
    <scope>provided</scope> 
    </dependency>

 依赖tomcat类库:

    项目右击—>build path —> configure build path — >libraries — > add libraries —> Server Runtime — >选择一个服务器lib —> ok

  此方法并没有解决jsp报错问题,最终经过搜索发现如下方法:

    windows—>Preferences—>Validation—>把Show a confirmation dialog when performng manual validations 前边的√去掉—>Disable All —> apply —> ok

  此方法最终解决问题

相关文章:

  • 2021-06-11
  • 2021-06-13
  • 2021-12-28
  • 2021-06-16
  • 2021-11-05
  • 2021-05-04
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-02-07
  • 2021-10-28
  • 2022-12-23
  • 2021-12-26
  • 2021-05-21
  • 2021-11-11
  • 2021-05-16
相关资源
相似解决方案