Eclipse error … cannot be resolved to a type

前端 未结 17 1866
清歌不尽
清歌不尽 2020-11-28 08:09

I have a dynamic web project that I am working on to migrate a jsp/servlet app from JRun to Tomcat.

I am getting the error: com.ibm.ivj.eab.dab.DatastoreJDBC<

17条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-28 08:18

    First you need to update the pom.xml by adding below

        
        org.springframework
        spring-web
        4.1.6.RELEASE
        
    

    1] Right click your project name.

    2] Click Properties.

    3] Click Java Build Path.

    4] Check on 'Maven Dependencies' in Order and Export tabl.

    In my case, previously it was not enabled. So when I enabled it my @GetMapping annotation works fine..

提交回复
热议问题