Intellij Idea Spring Facet only recognizes resources with application.* - spring-boot

Question states it a lot. Is there a way to let any resource file named other than application.* to be scanned by spring facet?
Version of IntelliJ Idea is: 2017.1.3
Tagging Spring Boot in the question too, may be someone from that community knows configuration as well?

2017.2 allows this: Open Spring Facet, select Spring Boot autodetected fileset and click on "Customize Spring Boot" icon in toolbar and enter custom "spring.config.name" value in dialog.

Related

Where can I find the Spring Documentation for Gradle Application Properties Configuration?

Where can I find the Spring Documentation for Gradle Application Properties Configuration? Image below
enter image description here
The Spring properties documentation is scattered across several places, and it depends on which Spring components you're using.
It would be best to open your project with an IDE such as IntelliJ, which will help showing you the properties javadoc directly from your application.properties file.
For the common properties, see this link:
https://docs.spring.io/spring-boot/docs/current/reference/html/application-properties.html
Spring Gradle Documentation
You can get started with this.

Spring Tools 4 for Eclipse info about running app

I am new to Spring and trying to understand a few things. In spring docs read about spring tools and thought to give it a try.
I installed Spring Tools 4.9.0 from Eclipse Marketplace and use it to import a tutorial project (File > New > Other > Import Spring Getting Started Context). Run the app with Boot Dashboard and it works as it should.
Saw in some tutorial videos when the app runs annotations become greenish and if you hover over them you get info like bean id etc.
In my case nothing like that happens. Do i need to configure something in eclipse or am i missing something else?
Thanks in advance.
The feature you are referring to is the "Live Application Information", the user guide section for this is here: https://github.com/spring-projects/sts4/wiki/Live-Application-Information.
In order to have an app showing that live information in the tools, it has to have the spring boot actuators on the classpath: https://docs.spring.io/spring-boot/docs/current/reference/html/production-ready-features.html.
Depending on the exact guide that you chose it might not have actuators on the classpath out-of-the-box. In that case, add the actuator dependency to your pom.xml file, do a "Maven -> Update Project" from the context menu and start the app again using the dashboard. Then the green live information highlights should appear.

Mapping missing in Intellij IDEA for Spring Boot application

I am using Spring Boot 2.3.4 , IntelliJ IDEA Ultimate version 2020.2.2 . (Example project can be found here https://github.com/ehmkah/springbootintellij ) I don't see the "mappings" sub-view in IntelliJ IDEA Services View for my springboot-application. It should be right to Health. There are several endpoints configured - they are working I see them in the browser. I guess something is not configured correctly, but I only see errors like
AM Error Loading Project: Cannot load facet Web in EventLog.
Where should I look for errors or are there any known incompatibilities?
Mappings tab as a feature requires Spring MVC bundled plugin. Please make sure it is enabled in Settings(Preferences) | Plugins.
Spring boot application mapping is only accessible with Intellij Ultimate
use plugin Endpoints Explorer, it works well with Intellij Community

IntelliJ IDEA does not display run icon for #RequestMapping

I am in the middle of setting up a Spring Boot application in IntelliJ idea. I was reading about IntelliJ's Spring Boot support and I'm supposed to be able to see a green run icon in the gutter of my #RestController next to my #RequestMapping. The application is working fine and I can even see the mapping in the Run tab under Mappings. I was wondering what I'm missing?
I've created a project using Spring Initializr to show the problem. The issue is reproducible in the DemoController and the project is available on Github
It doesn't work because of the known IntelliJ IDEA bug specific to Spring Boot 2.2.x versions.

Is there any source to search for spring boot starter dependencies?

I want to use "feign" dependency in my spring boot project, Is there any source like https://mvnrepository.com/ to get dependency?
You can use spring initializer. https://start.spring.io/. I would suggest you to always use one version lower than the latest version of snapshot. Cause newer version might not be that standard.
You may use spring initializer i.e https://start.spring.io/. Go to the site and fill in all the details.Select the dependency you want(in your case feign). Select generate. It will generate a zip file with your starter project. Import it and you can start coding.You can see a picture demonstrating the same in this link The spring initializer
Alternatively you can do the same using Spring tool suite. You can download STS here Spring Tool Suite.
->Install and open spring tool suite.
->Click File>>New and select spring starter project. If u don't get the option there, choose other and then search for spring starter project.
->After choosing spring starter project, fill in all the necessary details and click next.
->In the next section choose all the dependencies you require(in your case feign).
->click finish and you are good to go.
Happy Coding.
I found that,we can search search same in https://mvnrepository.com/ with spring suffix
Ex: feign spring

Resources