일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- @Entity
- 자바ORM표준프로그래밍
- 매핑정보가없는필드
- 멱등활용
- ERROR TYPE : org.apache.ibatis.binding.BindingException
- HTTPMESSAGE
- http
- gitreset
- KAKAOLOGINAPI
- 네이버로그인API
- 김영한JPA
- 데이터베이스 방언
- hibernate.dialect
- Transaction not successfully started
- DB방언
- @Table
- SpringBoot
- JPA
- gitrevert
- 무상태프로토콜
- Git
- 네이버 연결된 서비스
- org.apache.ibatis.binding.BindingException
- initialDelay
- HTTP3
- RFC723x
- anyMatch
- fixedDelay
- Invalid bound statement (not found)
- 캐쉬가능
Archives
- Today
- Total
twocowsong
@Value 어노테이션 본문
@Value어노테이션은 스프링빈에 등록된 객체에 기본값을 부여할수있다.
@Component
public class Car{
@Value("10")
public int speed;
}
위처럼 Car Class @Value에 10으로 주면 기본값이 10으로 출력된다.
@Component
public class Car{
@Value("${test.value}")
public int speed;
}
application.properties
test.value=100
@Value에 ${properties값}으로 설정하여 사용도가능하다.
'IT > SpringBoot' 카테고리의 다른 글
@RestController @Controller (0) | 2022.01.24 |
---|---|
@Scheduled (0) | 2022.01.23 |
Redirect, forward, RedirectAttributes (0) | 2022.01.23 |
@ModelAttribute, @PathVariable, @RequestBody (0) | 2022.01.18 |
@Data (0) | 2022.01.18 |