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
Answer accepted

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 Mar 14, 2019 in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder :  #!/bin/bash source "$(dirname "$0")/" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

274 views 0 12
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