不需要,不是web服务就不需要服务器,直接main方法执行就可以
不需要,只要没有引用spring mvc或netty等需要端口的框架,就可以不需要tomact。
spring项目并不一定是web项目
不一定,比如springboot可以建立命令行,非web项目,是不需要的