项目导入报错,之前的环境没问题

import org.apache.tomcat.jni.User;这是报错代码

eclipse里面在项目上面右键properties-->target runtime,选中你当前的tomcat,然后apply、ok。

解决!!!

项目上面右键,Build Path-->Configure Build Path-->Libraries-->Add Library-->Server Runtime-->next-->finish

原文地址:https://www.cnblogs.com/heyuxiu/p/5649058.html