Hi
I have a confluence page that start
public class ConfigActionSupport extends ConfluenceActionSupport {
private static final Logger LOG = Logger.getLogger(ConfigActionSupport.class);
private XsrfTokenService tokenService;
private UserManager userMgr;
@Inject
public ConfigActionSupport(XsrfTokenService tokenService, UserManager userMgr){
this.tokenService = tokenService;
this.userMgr = userMgr;
}
When I try to load the page I get the error:
No qualifying bean of type âcom.atlassian.sal.api.user.UserManagerâ available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}
If I change the constructor to
public ConfigActionSupport(@ComponentImport XsrfTokenService tokenService, @ComponentImport UserManager userMgr){
this.tokenService = tokenService;
this.userMgr = userMgr;
}
If I add @Named or @Scanned to the front it produces the error:
java.lang.IllegalArgumentException: Method âdoDefault()â is not defined in action âclass com.redmoon.confluence.secureadmin.panel.ConfigActionSupportâ
I have sal-api 2.6.0 in my pom.xml
What do I need to get this working?
Thanks
Paul