Eclipse - How can I change a 'Project Facet' from Tomcat 6 to Tomcat 5.5?

前端 未结 7 1459
萌比男神i
萌比男神i 2021-01-31 14:01

(Eclipse 3.4, Ganymede)

I have an existing Dynamic Web Application project in Eclipse. When I created the project, I specified \'Default configuration for Apache Tomcat

7条回答
  •  野性不改
    2021-01-31 14:20

    If you are using maven you can generated the eclipse settings using the maven eclipse plugin.

    For the jst.web version the Maven eclipse pluging takes into account the dependencies of the project. If you have a servlet api dependency defined :

    
        org.apache.tomcat
        servlet-api
        6.0.32
     
    

    You jst.web parameter will be 6.0

    
      ...
      
      ...
    
    

提交回复
热议问题