Bael 4461 2 (#4409)
* Deleted md file as a conflict * [BAEL-4461] - Fixed PMD violation * [BAEL-4461] - Fixed PMD violation * [BAEL-4461] - Ignore empty TC * Fix Spring 5 tests
This commit is contained in:
committed by
Grzegorz Piwowarek
parent
11fa0cf492
commit
2e683411e2
@@ -1,10 +1,9 @@
|
||||
package com.baeldung.persistence;
|
||||
|
||||
import com.baeldung.web.Foo;
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
|
||||
|
||||
import com.baeldung.web.Foo;
|
||||
|
||||
public interface FooRepository extends JpaRepository<Foo, Long>, JpaSpecificationExecutor<Foo> {
|
||||
|
||||
}
|
||||
|
||||
@@ -7,6 +7,7 @@ import org.springframework.http.HttpStatus;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.PostConstruct;
|
||||
import javax.validation.constraints.Max;
|
||||
import javax.validation.constraints.Min;
|
||||
import java.util.List;
|
||||
@@ -14,6 +15,11 @@ import java.util.List;
|
||||
@RestController("/foos")
|
||||
public class FooController {
|
||||
|
||||
@PostConstruct
|
||||
public void init(){
|
||||
System.out.println("test");
|
||||
}
|
||||
|
||||
@Autowired
|
||||
private FooRepository repo;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user