엔티티를 지속적으로 저장하고 있는 속성을 영속성 컨텍스트 라고 말할 수 있다. JPA에서는 기본적으로 EntityManagerFactory객체를 이용해서 EntityManager객체를 생성하고,이 EntityManager객체의 메서드를 이용해서 조회, 저장, 변경, 삭제의 작업을 수행한다. 영속성 컨텍스트는 눈으로 확인 할 수는 없지만, EntityManager를 생성할 때 같이 만들어지고 EntityManager를 닫을 때 사라진다. Entity에는 다음과 같은 상태가 존재한다. ▶ 비영속@Entity로 지정한 객체를 생성했을 뿐 EntityManager를 사용하고 있지 않은 상태이다. ▶ 영속영속성 컨텍스트가 엔티티를 관리할 수 있는 상태를 '영속' 상태라 한다.EntityManager의 persis..
1. pom.xml dependency org.springframework.data spring-data-jpa 1.2.0.RELEASE org.hibernate.javax.persistence hibernate-jpa-2.0-api 1.0.1.Final org.hibernate hibernate-core 4.1.9.Final org.hibernate hibernate-entitymanager 4.1.9.Final org.hibernate hibernate-ehcache 4.1.9.Final com.jolbox bonecp 0.7.1.RELEASE mysql mysql-connector-java 5.1.22 runtime 2. dao-context.xml hibernate.cache.use_second_..
서버환경 : 리눅스 CentOS 6.9이 글은 우선 아파치와 mod_jk, openssl 그리고 톰캣이 설치되어 있고 웹환경이 다 구현되어 있다는 전제로 설정하는 부분만 적는다.서버에 Let'sEncrpyt도 마찬가지로 설치되어 있어야 한다. Let'sEncrpyt 디렉토리로 이동..RPM방식으로 설치하니 두 가지 경로가 나온다.[root@host ~]# whereis letsencrypt letsencrypt: /etc/letsencrypt /usr/local/letsencrypt 인증서를 생성하는 명령어가 위치하는 곳은 /usr/local/letsencrypt이다
1. 이곳으로 가서 최신 설치파일의 주소를 가져온다.http://humdi.net/vnstat/ 2. wget http://humdi.net/vnstat/vnstat-1.17.tar.gz 3. tar -zxvf vnstat-1.17.tar.gz 4. cd vnstat-1.17makemake allmake install 5. 정상적으로 동작하는지 확인# vnstat --testkernelThis test will take about 60 seconds.Everything is ok. 6. # vnstat -u -i eth0Error: Unable to read database "/var/lib/vnstat/eth0".Info: -> A new database has been created. 7.# vnst..
mod_jk 설치를 위해서는 사전에 다음과 같은 패키지들을 설치하거나 설치되어 있어야 한다. yum -y install gcc gcc-c++ yum install httpd-devel 1. 먼저 mod_jk 설치 파일을 받는다. 그 다음 압축을 푼다. wget http://apache.mirror.cdnetworks.com/tomcat/tomcat-connectors/jk/tomcat-connectors-1.2.42-src.tar.gz tar -zxvf tomcat-connectors-1.2.42-src.tar.gz