解决IDEA中程序包org.springframework.stereotype不存在问题 File --> Settings --> Build -->runner 勾选箭头所示部分,点击OK即可使用