Skip to content

Scanning and annotations not working #14

@Vortilion

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)

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