How to vizualize spring integration file in intellij idea 14?

The page https://www.jetbrains.com/idea/whatsnew/ says that Intellij Idea 14 has visual diagrams for spring integration.

But I can not find how to render my XML integration file.

(right click on file) / Charts / Show Chart ... shows a chart with links between beans. This is not very helpful. enter image description here

Spring Template Integration Plugin Included

I have Intellij Idea installed on a computer without Internet access. Perhaps this is the reason charts are not working correctly?

+6
source share
6 answers

What do you want to see there?

For instance.

We have a stomp-chat sample: https://github.com/spring-projects/spring-integration-samples/tree/master/applications/stomp-chat

And here is the diagram for this configuration: 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

enter image description here

I would say that everything is in order, but I agree that it would be better if I provided the id attribute for all components.

Of course, the Spring Integration Patterns plugin should be included.

+4
source

This link helps - https://devnet.jetbrains.com/message/5529839#5529839

"Please ensure that the XML file is configured correctly to configure Spring context through the Spring facet. It requires that the spring-integration-core be dependent on the module of the selected XML file."

+1
source

I had the same problem, and I found that in addition to having the Spring facet turned on and having the spring-integration-core dependency and having the corresponding context file defined as the application context below the edge, you also need to have only an open module. those. sample stomp-chat spring-integration provides the "Spring Integration" chart parameter if it is opened from your own pom.xml, however if you open the parent \ pom.xml applications, then the "Spring Integration" chart option is not available, regardless of facets, etc. d.

+1
source

I have the same problem in a project where I am using spring 2.1.4 integration.

In a newer project, I use 4.0.0, and there Intellij Idea offers the possibility of opening a spring integration scheme.

Perhaps this is the reason, and you only need a newer version of the spring integration.

0
source

The problem is that newer versions of Intellij create, by default, separate modules for each source, which somehow end up in conflicts with earlier settings. Using Intellij 2016.1, I instead re-imported my project with the following options:

Gradle Import Options

As soon as I did this, (right-click on the file) / Diagrams / Show Diagram again provided me with the Spring integration option.

0
source

Yes, click on your Spring Integration Context file> Charts> Show Chart ...> Spring Integration. but if this menu is not listed below:

  • You should have defined the integration context as Spring XML configuration . Instructions here: Create a set of Intellij files

  • I don’t know why, but I had a problem with Spring Integration Diagram when I installed Springirun plugin.

0
source

Source: https://habr.com/ru/post/979103/


All Articles