问题记录: 在idea中项目启动后报错,并且目录中不生成target文件。 选中项目右键open in terminal -> mvn clean compile -> mvn compile 之后target文件就生成了,并且成功启动