1、创建maven项目
2、先在pom.xml中添加spring-context依赖
Spring创建项目

  • 可能会找不到依赖,那么我们就在Maven Repository中搜索
    Spring创建项目
    Spring创建项目
    然后将代码复制到pom.xml中
    Spring创建项目
    Spring创建项目
    可能maven的主路径出错了:
    settings - Build,Execution,Deployment - Build Tools - Maven - Maven Home Directory 修改成maven的主路径,重新刷新程序即可!
    Spring创建项目

相关文章:

  • 2021-05-04
  • 2021-06-25
  • 2021-08-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-01
  • 2021-03-27
  • 2021-04-23
  • 2021-07-18
  • 2021-04-07
  • 2021-05-24
相关资源
相似解决方案