나의 마음을 ctrl+c,너의 가슴에 ctrl+v

video
https://msdn.microsoft.com/ko-kr/library/hh924823(v=vs.85).aspx

Spring3 properites call

설정

<util:properties id="globals" location="classpath:/egrovframework/egovProps/globals.properties"/>

<!-- Messages .properties Path -->
<util:list id="configMessages" list-class="java.util.LinkedList">

   <value>egovframework.message.com.message-common</value>

   <!-- 
   <value>egovframework.message.com.validation</value>            <value>egovframework.message.com.javascript</value>
    -->

</util:list>


호출 - xml

<property name="maxUploadSize">
    <value>#{globals['File.maxUploadSize']}</value>
</property>


호출 - java

@Value("#{globals['Server.charset']}")
private String charset;

@Value("#{prop['global.arrs'].split(',')}") private String arr; // split 처리

// Bean 으로 생성되었으므로, Autowired 가능
@Autowired Properties globals;


호출 - jsp

<spring:eval expression="@config['']" />


'java > framework' 카테고리의 다른 글

jsp 에서 Spring framework 연동  (0) 2013.07.19
Spring Controller intercepter By 3.0 , annotation  (0) 2012.07.06

cd /etc/sysconfig
vi iptables

또는 
vi 
/etc/sysconfig/iptables

# 포트추가 - SVN 3690 (svn://)

# Firewall configuration written by system-config-firewall
# Manual customization of this file is not recommended.
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A INPUT -p icmp -j DROP
-A INPUT -i lo -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 1055 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 3690 -j ACCEPT
-A INPUT -j REJECT --reject-with icmp-host-prohibited
-A FORWARD -j REJECT --reject-with icmp-host-prohibited
COMMIT

# 재실행
/etc/init.d/iptables restart

 

# 직접실행

[root@test ~]# iptables -I INPUT 1 -p tcp --dport 8080 -j ACCEPT [root@test ~]# service iptables save iptables: Saving firewall rules to /etc/sysconfig/iptables:[ OK ]