Spring bean injection Icon not being displayed - intellij-idea

I'm having this issue where intellij not showing spring bean gutter icon. Spring bean has been injected correctly in the xml and when I click on it, it does take me to the injected class. However, I don't see the injection Icon next to the class. Does anyone know how to resolve this?
Tried resetting caches, changing modules, doing build, restarted intellij.
Expecting: Spring Icon next to classes where it has spring bean injection

Related

Intellij idea thymeleaf completion in spring boot project

I'm having a code assist issue in a SpringBoot / Thymeleaf project in Intellij idea.
I have setted up a simple Spring boot project using gradle and I want to use thymeleaf as a template engine; however I'm not getting any code assistance in my HTML pages.
The application runs properly however the only code assistance that I have is for the i18n messages, no code assistance for POJOs or any other thing.
My project has the Spring facet configured.
I'm running :
Intellij Idea 2016.2
Spring boot 1.3.6
Do I have to do anything else in the project to have this working?
Thanks
Ulises
Actually this is a known bug from Intellij :
https://youtrack.jetbrains.com/issue/IDEA-132738
for which there's no fix yet but only a workaround :
<!--/*--><!--#thymesVar id="loginFormBean" type="sample.system.login.LoginFormBean"--><!--*/-->

Intellij Hot swap webapp folder not working

I am running a simple Maven web application using spring. My project structure is as following
src-main-java
src-main-webapp
My HTML file in the webapp folder. When I do update class and resource in debug mode it updates my Java classes but not my HTML files.
How to fix this?
There is a known issue. You may need disable cache in your view resolver. then it should work just fine.
e.g. resolver.setCacheable(false); for Spring or ThymeLeaf application.
Use exploded artifact which name ends with .war or .ear.
See more here:
IntelliJ hot swapping classes, but not JSF pages

How to vizualize spring integration file in intellij idea 14?

On the page https://www.jetbrains.com/idea/whatsnew/ it is said that Intellij Idea 14 has got a visual diagrams for spring integration.
But I can't find how to visualize my integration xml file.
(right click on file)/Diagrams/Show Diagram... shows a diagram with links between the beans. It is not very usefull.
Spring Integration Patterns plugin is enabled
I have Intellij Idea installed on a computer without access to the internet. May it be the reason why the diagrams are not working properly?
What do you want to see there?
For example.
We have stomp-chat sample: https://github.com/spring-projects/spring-integration-samples/tree/master/applications/stomp-chat
And here is a diagram for this config: https://github.com/spring-projects/spring-integration-samples/blob/master/applications/stomp-chat/src/main/resources/org/springframework/integration/samples/chat/stomp/server/stomp-server.xml
I'd say that it is OK, however I agree that it would better if I'd provide id attribute for all components.
Of course, Spring Integration Patterns plugin has to be switched on.
This link helps - https://devnet.jetbrains.com/message/5529839#5529839
"Please make sure the XML file is correctly configured in Spring context setup via Spring facet.
It requires spring-integration-core to be in module dependency of selected XML file."
I had the same problem, and found that in addition to having the Spring facet enabled, and having the spring-integration-core dependency and having the relevant context file set as an application context under the facet, you also need to have just the containing module open. i.e. the stomp-chat spring-integration sample provides the "Spring Integration" diagram option if it is opened from its own pom.xml, however if you open the parent applications\pom.xml then the "Spring Integration" diagram option is not available, regardless of facets etc.
I have the same problem in a project where I use spring integration 2.1.4.
In a newer project I use 4.0.0 and there Intellij Idea offers the option to open the spring integration diagram.
Perhaps that is the reason and you "only" need a newer version of spring integration.
The issue is that the newer versions of Intellij create separate modules per source set by default which somehow ends up conflicting with earlier setups. Using Intellij 2016.1, I instead reimported my project with the following options checked:
Once I did that then (right click on file)/Diagrams/Show Diagram once again gave me the Spring Integration Option.
Yes, click on your Spring Integration context file > Diagrams > Show Diagram... > Spring Integration., but if you haven't this menu follow below:
You should have identified integration context as Spring XML based configurations. Instruction here : Create a Intellij file set
I don't know why, but I had a problem with Spring Integration Diagram when I installed Springirun plugin.

Working with IntelliJ + Spring Data + AspectJ

I am attempting to work with a Spring Data Graph project in IntelliJ 11.1.4 Ultimate edition. The project builds fine but the editor says that the persist() method on my classes annotated with #NodeEntity can't be found. Additionally, none if the aspect enhanced methods, like persist, show up for auto-complete suggestions.
I am using the AspectJ Support plugin and I have the compiler set to AJC. Both IntelliJ and Maven can build and run the project, it appears that the editor is the only piece that has the problem.
Am I missing something obvious? Is this a limitation of IntelliJ? I thought 11.1.4 addressed this but I might be mistaken.
Unfortunately AspectJ support isn't fully implemented yet - though resolve and completion should work. Could you please file a ticket in the tracker with a small demo project attached?

IntelliJ Idea 10.5.2 WebLogic Deployment tab is missing context dropdown

IntelliJ Idea 10.5.0 WebLogic Run/Debug configuration documentation mentions context dropdown. I am using 10.5.2 version and cannot find this dropdown. Is there a way to configure application context without editing application server specific descriptor?
Actually it is mistake in documentation. There is no such option for WebLogic run configurations.