-
JSP 에서 환경설정 값 사용하기개발 2020. 6. 29. 11:36
VM argument
<% String addr = System.getProperty("common.service.type"); %>
application.properties
<%@ page language="java" import="java.util.*" %> <%@ page import = "java.util.ResourceBundle" %> <% ResourceBundle resource = ResourceBundle.getBundle("application"); String addr = resource.getString("common.service.type"); %>
사용
<%=addr %>
'개발' 카테고리의 다른 글
mysqlclient 1.4.0 or newer is required; you have 0.10.0 (0) 2020.08.26 IoT (Internet of Things), ICT (Information & Communication Technology) (0) 2020.08.13 React is not exported from (0) 2020.06.18 React axios POST DataForm 전달하기 (insert) (0) 2020.06.17 @Scheduled - spring boot scheduling 설정 (0) 2020.06.11