zoukankan      html  css  js  c++  java
  • idea报Unmapped Spring configuration files found.

    用IntelliJ 导入现有工程时,如果原来的工程中有spring,每次打开工程就会提示:Spring Configuration Check

    Unmapped Spring configuration files found.

    工程结构(Project Structure)有一个Facets 选项,可以设置各种框架。

    Facets中则可以设置当前项目所用的框架,如Hibernate和Spring,如果是Web项目,也需要添加Web的Facets,这个界面中的显示和Modules中的很类似。如果想要通过idea做Hibernate的映射文件(.hbm)生成或jpa注解配置代码生成,则需要添加Hibernate配置,如果添加了Spring,则在Spring的xml中properties文件的占位符可以被自动替换为properties中已配置的值。 

    把spring的配置文件由IntelliJ来管理,打Project Structure->Facets 配置。添加spring配置文件的模块。

    这样不会再有这个提示了。

  • 相关阅读:
    super与this的区别?
    springboot(4)-thymeleaf
    springboot(3)-自定义josn
    springboot(2)-Http协议接口开发
    springboot(1)-HelloWorld
    SpringSecurityOauth2.0
    Docker 应用部署
    RabbitMQ02
    RabbitMQ01
    011通用寄存器
  • 原文地址:https://www.cnblogs.com/cdcr/p/9740438.html
Copyright © 2011-2022 走看看