当前位置: 首页 > 知识库问答 >
问题:

如何修复错误加载项目:无法加载Intellij想法中的facet Spring?

陆畅
2023-03-14

我试图通过从Gitlab下载源代码,在Intellij IDEA中运行一个Spring Boot项目。但是项目没有运行,并且显示了以下错误:1。加载项目时出错:无法加载facet Spring 2。加载项目时出错:无法加载方面JPA3。加载项目时出错:无法加载facet Web

以下是错误的屏幕截图:

我的主要spring starter文件的代码是:

package com.trucklagbe.tech.payment.nagad;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;


import org.apache.catalina.Context;
import org.apache.catalina.connector.Connector;
import org.apache.tomcat.util.descriptor.web.SecurityCollection;
import org.apache.tomcat.util.descriptor.web.SecurityConstraint;
import org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory;
import org.springframework.boot.web.servlet.server.ServletWebServerFactory;
import org.springframework.context.annotation.Bean;



@SpringBootApplication
public class StarterApplication extends SpringBootServletInitializer {

/**
 * @param args
 */

private static final Logger LOGGER = LoggerFactory.getLogger(StarterApplication.class); 


private static Class<StarterApplication> application = StarterApplication.class;

public static void main(String[] args) {
    // TODO Auto-generated method stub
    LOGGER.info("payment-module-nagad started!");
    
    SpringApplication.run(StarterApplication.class, args);

}

@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
    LOGGER.info("payment-module-nagad production deployment initiated!");
    
    return builder.sources(application);
}

共有1个答案

濮宇定
2023-03-14

正如在错误上方的信息消息中提到的,Spring只支持IntelliJ IDEA Ultimate。

您需要安装Ultimate edition,以便能够为Spring、JPA等框架提供可配置的专用方面和向导(请参见与Community edition的比较)。

 类似资料:
  • 我刚刚更新了我的ubuntu和Android Studio。说明书告诉我把SDK文件夹移到它自己的文件夹中,以便安装新的Android Studio,我做到了。我和gradle有麻烦。现在我甚至无法加载我正在处理的项目。 错误消息是: 无法加载项目:com。intellij。石斑鱼类。插件。PluginManager$StartupAbortedException:初始化'com'时发生致命错误。

  • 我刚刚在Intellij中创建了一个简单的helloworldscala项目。我的主要课程只是打印Hello World- 我的项目结构 在项目结构设置中,我将“scala”作为我的源文件夹。我能够在我创建的应用程序运行配置中正确选择我的主类。到目前为止一切顺利。在此之后,当我尝试运行我的运行配置时,我得到了可怕的错误- 在这一点上,我已经尝试了所有我能在谷歌上找到的东西,比如使缓存失效、重新加载

  • 我在intellij中创建了一个gradle/scala项目。这是我的项目结构 这些是我build.gradle文件的内容 主要课程内容 当我试图构建jar并执行它时,会出现一个错误。这里可能出了什么错?

  • 所以我设定了我的道路 我不知道这是怎么回事...如有任何建议,不胜感激。

  • 我正在使用AndroidStudio 1.5.1,当我打开AndroidStudio时,我在控制台中遇到一个错误-“加载项目时出错:无法加载3个方面的详细信息…” 有人对我如何解决这个问题有什么想法吗?

  • 问题内容: 我一直有一些奇怪的问题。主要的问题是,在尝试将WSDL添加到新项目时,我始终收到以下错误: 这是error.log文件中记录的消息: 我验证了该URL上的应用程序已启动并正在运行,并且可以从Web浏览器访问WSDL,但是无论如何我始终会收到此错误消息。我在Windows 7机器上使用SoapUI 4.5.0(32位)。我也尝试了64位版本,但结果相同。无论我是否使用VPN,都会发生这种