I am trying to run a spring boot project in Intellij IDEA by downloading the source code from gitlab. But the project is not running and showing these errors: 1. Error Loading Project: Cannot load facet Spring 2. Error Loading Project: Cannot load facet JPA 3. Error Loading Project: Cannot load facet Web
Here is the screen shot of the errors:
My main spring starter file's code is:
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);
}
As mentioned in the info message right above the errors, Spring is supported IntelliJ IDEA Ultimate only.
You need to install the Ultimate edition in order for things like configurable dedicated facets and wizards to become available for frameworks like Spring, JPA, etc. (see comparison with Community edition).
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.