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

0 votes
Accepted answer

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

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. 


Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

417 views 5 9
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