Skip to content

Scanning and annotations not working #14

Description

@Vortilion

Hi,

I'm trying to use spring in a Play 1 project, together with the ldap library. So far it works, but only if I use @Inject for injecting two Beans "ldapTemplate" and "ldapPerson". I added the lines

play.spring.component-scan=true
play.spring.component-scan.base-packages=ldap.dao

in application.conf, but it seems they're not making any difference. If I change @Inject to "@Autowired" e.g. I get a NullPointer Exception in the code

Security.ldap.authenticate(DistinguishedName.EMPTY_PATH, filter.encode(), password)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions