springboot 썸네일형 리스트형 [Spring] 기본 생성자가 없는 객체 바인딩시키기 참고) Bean 설정이 아닙니다. Controller에서 매핑된 URL로 메서드가 실행되는데요~ 이 경우 파라메터에 모델을 선언했다면 URL queryString에 있는 프로퍼티 값이 모델 멤버(setter)와 동일하다면 자동으로 Binding됩니다. public class Foo { private int id; public void setId(int id) { this.id = id; } public int getid() { return this.id; } } @Controller public class FooController { @RequestMapping("/foo") public String getFooView(Foo fooModel) { return "foo"; } } - 인자가 없는 기본 생.. Spring Endpoint Health 설정 구글에 Spring Endpoint라고 검색하면 많은 설정 정보들이 존재하는데 이번에 사용할 기능은 health check만 설정하도록 해본다. application.properties # springboot에서 제공하는 기능 - 서버 정보를 알수 있음 # http://docs.spring.io/spring-boot/docs/current/reference/html/production-ready-endpoints.html endpoints.enabled=false endpoints.health.enabled=true # health 체크시 여러가지 응답 정보가 가는데, status 정보만 노출하도록 설정 endpoints.health.sensitive=true build.gradle compile("or.. 이전 1 다음