Hi, I'm developing a Jira addon and need to use JIRA's ProjectHelper API in a web action (Spring scanner 2 enabled), so I used autowire annotation like this:
public class AddCustomPanelAction extends JiraWebActionSupport {
// Problematic lines
@Autowired
private ProjectHelper projectHelper;
public AddCustomPanelAction() {
super();
}
@Override
public String execute() throws Exception {
return super.execute();
}
The problem is: If I remove the injection (@Autowired private ProjectHelper projectHelper), the excute method can be reach, but if I keep the injection like above, it can reach only the constructor method but cause an error about dependency injection and cannot reach the execute method.
Did I do something wrong with my injection? Thank you.
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.