Can't open application.properties in Eclipse - spring

I've encountered a problem as I'm practising with Spring Boot. I've installed in Eclipse the Spring Tool 4 plugin and then created a Spring project. The problem is I can't open the application.properties file within Eclipse and I do not understand the reason. I double click and nothing happens.
Is this a known problem or am I doing something wrong? The file is openable from outside the IDE with a text editor but it seems empty.
Thanks

Try to open the file by pressing ctrl+shift+R and application. properties.

Related

Spring application.properties is grayed out with Spring Initilizr

I am new to spring and trying to use Spring Initilizr for my project.
I am using the code that was generated by this tool after adding dependencies for 'Spring Web' and 'Spring Data Redis'.
When I open the generated code in IntelliJ and try to edit the file application.properties, I notice that everything I type there is grayed out. According to IntelliJ it is an 'unused property'.
Any idea how to enable application.properties in my project?
As it was mentioned in one of the comments, it is indeed an issue with InteliJ. The properties are working as expected, IntelliJ for some reason doesn't display it correctly.
I see that the answer is accepted; but do not see the solution provided explicitly. In the event it helps others, the property file will be read even if it is greyed out or says "unused property". But if you want the color coded keys, this is what I did to make Intellij recognize the application properties file.
Option-1) Recomplile application.properties under Build -> Recomplile 'application.properties' https://i.stack.imgur.com/I6MXc.png
Option-2) Invalidate cache under File -> Invalidate Caches with IDE restart
Rebuild the project with either of these options and see if the file is recognized.

Intellij Idea hides my spring cloud contracts under test/resources

I have written my first spring-cloud-contract using Intellij Idea 2018.2. Everything works fine, but I cannot edit the contract from within Idea because it hides the complete src/test/resources/contracts folder in the project view. So I have to individually open each contract vi the file -> open... menu.
Can anybody tell me how I can access my contract files in Idea from the project view?
I have the same problem with maven. It enough to refresh the project and the folder will be added to the classpath

I am not able to see the tabs in spring config editor in Spring STS plugin

I am trying to see the graphical user interface to look my spring batch jobs.
I can't see spring batch graphs in Editor.
In dependency graph, the tabs are not shown at the bottom.
Someone please help me.
I miss information in your question, but i can think of 3 possibilities:
.) You didnt open your xml with the spring config editor. Close the file in your IDE, right click -> open with -> other -> spring config editor.
.) You didnt add spring project nature to your project. Right click on your project -> Spring tools -> add spring project nature.
.) You miss the batch-context in your xml. Open the file with the spring config editor, click namespaces, add batch, save it and you should see the batch and batch-graph tab at the bottom.
Spring config files are not added. They were not automatically detected.
The way add that.
Project properites -> Spring -> Bean Support -> Config files.

Spring Tool Suite doesn't show integration-graph for a spring-integration-context.xml file

I have a fully functional Spring Integration project. I'm using Spring Tool Suite 3.5.1. When I open my spring-integration-context.xml file I only get Design and Source for tabs at the bottom of the editor window. I'm looking for integration-graph but cannot figure out how to enable it or show it.
On my work machine I'm using Spring Tool Suite 3.5.0 and I get Source, Namespaces, Overview, beans, integration, and integration-graph as tabs for the xml file. Any ideas? Thanks~
Right-click on the project and enable "Spring Nature".
Right click on the file and select "open with" -> "spring config editor"

In debug mode, the dynamically generated script file doesn't reflect saved changes

In VS 2010, I have an asp.net web application project. I made a change to a java-script file and saved it. I then run the application in debug mode and looked at the corresponding dynamically generated java script file. The dynamically generated file still represents the code before i made the recent changes. I tried restarting VS and my computer to no avail... This issue just started happening for no apparent reason.
Thanks,
Right click on solution, and click clean.

Resources