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

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 Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

654 views 0 4
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot