How to define a spring bean as jira spring component module in atlassian-plugins.xml file
For example, how can i convert this spring bean in spring-beans.xml to jira component
<bean id="testSingleton" class="org.test.Test" scope="singleton"/>
Hello,
Try to use the scope annotation:
@Scope("singleton")
If it does not work, then you can read my artilcle here:
No, you can not set a scope in atlassian-plugin.xml. You should set it via annotation or in the main/resources/META-INF/spring/plugin-context.xml
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.