一般情况的处理,网上可以搜到很多,这里记录一下个人遇到的情形解决。
File Type 设定配置
写好启动类(必须)
@SpringBootApplication
@
ComponentScan({"com.ezerbel.grain"})
@EnableDiscoveryClient
@EnableFeignClients
public class ServiceCmsApplication {
public static void main(String
[] args
)
{
SpringApplication
.run(ServiceCmsApplication
.class,args
);
}
}
将Resources置为资源文件(必须)
如果Idea不抽风则会自动添加