zoukankan      html  css  js  c++  java
  • Myeclipse报错:“Versions of Spring facet could not be detected”的解决方法

    解决方法如下:

    VERSION OF SPRING FACET COULD NOT BE DETECTED.

    The migration process needs to detect the correct version of Spring support used by a project. If the process fails to detect the version based on containers used by the project, it tries to read it from the .springBeans file. If the file is missing, the migration process is unable to continue.

    You need to manually create the file in the root of the project, before invoking the Migration wizard. To do so, right-click the project, and select New>File from the menu. Enter .springBeans as the file name, and click Finish. The .springBeans file editor should open. Paste the following code into it, and save the file.

    <?xml version="1.0" encoding="UTF-8"?>
    <beansProjectDescription>
      <springVersion>2.0</springVersion>
    </beansProjectDescription>

    Now you can rerun the migration process by selecting MyEclipse>Migrate Projects from theMyEclipsemenu, or run the process from the Project Migration view.

    Note: The .springBeans file might not appear in the Package Explorer view; you will need to disable the.* resources filter to see it. To do so, click the white triangle (View menu) in the top-right corner of the Package Explorer view and select Filters. Next, deselect the .* resources filter, and click OK. You should now be able to see the .springBeans file.


    译:

    1.新建文件(file),命名为:.springBeans,不能有后缀,如果不能新建这样的文件,就在IDE中新建这样的文件(file)

    2.将下文粘贴进.springBeans,不能有任何修改

    <?xml version="1.0" encoding="UTF-8"?>
    <beansProjectDescription>
      <springVersion>2.0</springVersion>
    </beansProjectDescription>

    3.将文件复制粘贴到项目根目录

    4.导入项目至IDE就不会报这个错误了

  • 相关阅读:
    Nginx禁止IP,只允许指定域名访问
    预防vsphere勒索病毒,适用于 ESXi 6.x 中的 OpenSLP 安全漏洞 (CVE-2019-5544) 的权宜措施 (76372)
    解决 vCenter root 密码过期无法登陆 User password expired
    停用Veritas Smart Meter-概念与操作
    centos7.0 没有netstat 和 ifconfig命令问题
    MAVEN剪除传递依赖
    Spring+SpringMVC+MyBatis+Maven框架整合
    CentOS7配置MongoDB
    利用mybatis-generator自动生成代码
    idea提交本地项目到git
  • 原文地址:https://www.cnblogs.com/xiang--liu/p/9710257.html
Copyright © 2011-2022 走看看