Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Can someone give me a example for a dependency injection.

Joel Suter September 5, 2017

I have a weird problem and its driving me crazy. I am using the version two of the atlassian plugin. I am trying to import some services into my classes. I can import the ProjectService Interface but thats it. I find that very confusing because the import should always look the same with the annotations. That seems so illogical to me because a week earlier i wasnt able to import that interface but another. What am i supposed to do?

Can someone give me their project(verison 2) where they import a service, or tell me what the problem is. The atlassian documentation is a little bit all over the place and doesn't really help.

1 answer

1 accepted

0 votes
Answer accepted
Jobin Kuruvilla [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 5, 2017

Check if you have spring scanner enabled in your pom.xml in the plugin where you were not able to import it.

https://bitbucket.org/atlassian/atlassian-spring-scanner

Joel Suter September 7, 2017

Quick question, I am trying to enable CORS for my plugin REST api. Do you know how to do that? Can you give me an explenation, everything I found is very confusing or just not helpfull. 

Thx

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events