If your entity is in the same package then no need to use @EntityScan
reference: @EnableJpaRepositories/@EntityScan annotations mandatory in spring data jpa configuration setup?