composer install 时遇到错误: Your requirements could not be resolved to an installable set of packages. 原因是我的PHP版本是7.0的,低了,默认的是7.1版本的. 项目里composer.json的PHP要求是 "php": ">=7.0.0",所以7.0版本的也是支持的. composer可以设置忽略版本匹配,命令如下: composer install --i
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [annotation.xml]; nested exception is java.lang.IllegalStateException: Context namespace element 'component-scan' and i