Contents
see List우선 root-context 에
jsp 에서는
<c:set var="baseImgPath"><spring:eval expression="@config['base.img.path']"/></c:set>
이렇게 jstl 로 선언후 사용가능하고
java 에서는
@Value("#{app['base.img.path']}")
private String baseImgPath;
상위와 같이 매핑하여 사용이 가능하다.
Loading...
mobile : 010-5139-4813
[ spring ] properties 파일 쉽게 사용하기(jsp,javs 소스)
| No | Title |
|---|---|
| 2008 | Spring Cloud Gateway로 API Gateway 구축 |
| 2007 | Spring WebFlux - 리액티브 프로그래밍 입문 |
| 2006 | Spring Data JPA 쿼리 메서드 완벽 가이드 |
| 2005 | Spring Security 6 JWT 인증 구현 |
| 2004 | Spring Boot 3.x 새로운 기능 정리 |
| 1824 | [ spring ] interceptor 등 스프링에서 @Autowired 인식을 못할때 |
| 421 | [ spring-security ] 스프링 시큐리티 csrf (크로스도메인) 설정방법 |
| 349 | [ spring ] spring4 jsonp callback |
| 346 | [ spring 4 ] 스프링 4 websocket 및 stomp (채팅 및 쪽지 구현) |
| 344 | [ spring-security ] 스프링 시큐리티 4 버전에서 hasRole 및 hasAnyRole 안될경우 |