Can someone give me a example for a dependency injection.

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

This widget could not be displayed.

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

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
Community showcase
Published Aug 21, 2018 in Bitbucket

Branch Management with Bitbucket

As a project manager, I have discovered that different developers want to bring their previous branching method with them when they join the team. Some developers are used to performing individual wo...

1,597 views 9 11
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you