Skip to content

Issue in code execution #2

@Ashutoshjava

Description

@Ashutoshjava

Issue 1:
In Application.java (Spring boot main class) we have to specify base packages in @componentscan.
(Example: @componentscan( basePackages = "com.cb.soap.service.*")
In the same class we also have to add following annotations:
@EntityScan("com.cb.soap.service.domain")
@EnableJpaRepositories("com.cb.soap.service.repository")

Issue 2:
We have to migrate our validation constraints from service implementation class to its parent interface.
Constraint are: @NotNull, @Valid, final
Modified interface method will look like:
User save( @NotNull @Valid final User user );

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