echo $([ ${UID} == 501 ] && echo "true" || echo "false")
ls | xargs rm -f
find $SRC/* -maxdepth 0 -type f -exec mv {} $DEST \;
import org.springframework.beans.factory.BeanNameAware;import org.springframework.beans.factory.NamedBean; public class MyBean implements NamedBean, BeanNameAware {/** * 빈 이름 */private String beanName; @Overridepublic String getBeanName() {return this.beanName;} @Overridepublic void setBeanName(String name) {this.beanName = name;}}
public class MyBean implements BeanNameAware, BeanFactoryAware {/** * 빈 이름 */protected String beanName; @Overridepublic void setBeanName(String name) {this.beanName = name;} @Overridepublic void setBeanFactory(BeanFactory beanFactory) throws BeansException {// scope가 prototype만 허용if (beanFactory.isPrototype(this.beanName) == false) {throw new BeanCreationException(this.beanName, "Scope of bean m..
특정 호스트로 접속하면 redirect하도록 Apache 웹 서버 .htaccess의 rewrite engine을 설정하는 방법이다.yourmain.com과 home.yourdomain.com으로 접근하면 www.yourdomain.com으로 redirect한다. RewriteEngine On RewriteCond %{HTTP_HOST} ^yourdomain.com$ [OR]RewriteCond %{HTTP_HOST} ^home.yourdomain.com$RewriteRule .* http://www.yourdomain.com? [R=302,L]
allow1.yourdomain.com과 allow2.yourdomain.com으로만 아파치 웹서버로 접근가능하도록 .htaccess의 rewrite engine을 설정하는 방법이다.allow3.yourdomain.com으로 접근하면 forbidden(403) 오류가 발생한다. RewriteEngine On RewriteCond %{HTTP_HOST} !^allow1.yourdomain.com$RewriteCond %{HTTP_HOST} !^allow2.yourdomain.com$RewriteRule .* - [F,L]
Customer actionCSR 생성openssl 이용키 생성openssl genrsa -des3 -out customer.pem 2048비밀번호 입력CSR 생성openssl req -new -key customer.pem -out customer.csr개인정보 입력DER로 변환openssl req -inform pem -outform der -in customer.csr -out customer.der customer.derMacOS 키체인 이용메뉴: 키체인 접근 -> 인증서 지원 -> 인증 기관에서 인증서 요청CSR 파일 (.certSigningRequest) 생성.csr로 확장자 변경DER로 변환 customer.der생성한 CSR 파일(customer.der)을 MDM verdor에게 전송 (혼..
두 개(내부망/외부망)의 네트워크에 연결되어 있을 때, 목적지 IP별로 다른 이더넷 인터페이스 사용하기 # 설정: Dest. IP가 10.XXX.XXX.XX이면 en0 인터페이스 사용sudo route -nv add -net 10 -interface en0 # 해제sudo route delete -net 10 -interface en0 Linux에서도 되는지는 확인안해봤습니다.
Tomcat 8 기준 server.xml... ...