본문 바로가기

728x90

Dev

인텔리제이에서 DB 스키마 unknown 으로 표시 될 때 the solution is to "Right-click -> Database tools -> Forget cached schema" and then "Rick-click -> Refresh" 더보기
망분리 상태에서 Git History Merge > git bundle create {묶을 파일이름_내경우_로컬브랜치명}.bundle --allgit 프로젝트 파일 내에서 위 명령어를 실행하면, 소스까지 다 묶인 bundle 파일이 생성된다. (파일명 확장자를 꼭 붙이지 않아도 되는 듯하다) > git init #git 초기화가 안 된 빈 폴더일 경우> git bundle unbundle {묶을 파일이름_내경우_로컬브랜치명}.bundle> git pull {묶을 파일이름_내경우_로컬브랜치명}.bundle 이렇게 하면 소스가 없는 경우는 처음 master 브랜치에서 clone 한 것 처럼 소스와 이력이 풀린다.(git clone {묶을 파일이름_내경우_로컬브랜치명}.bundle 도 사실 가능하기는 함) 한 쪽 방향으로만 가능한 것은 아니고, 양방향으로 .. 더보기
스프링 스케쥴러 CRON 식 https://sun-p.tistory.com/115 98DAY / 스프링 스케쥴러 CRON식 스프링 스케쥴러 https://spring.io/guides/gs/scheduling-tasks/ CRON 크론 표현식 초 | 분 | 시 | 일 | 월 | 요일 | 연도 0~59 | 0~59 | 0~23 | 1~31 | 1~12 | 0~6 | 생략가능 요일 : 0 (일요일) ~ 6( 토요일) ?.. sun-p.tistory.com 더보기
SpringBoot + JPA + QueryDSL https://docs.spring.io/spring-data/jpa/docs/2.1.3.RELEASE/reference/html/#repositories.custom-implementations Spring Data JPA - Reference Documentation Example 100. Using @Transactional at query methods @Transactional(readOnly = true) public interface UserRepository extends JpaRepository { List findByLastname(String lastname); @Modifying @Transactional @Query("delete from User u where u.active =.. 더보기
SpringBoot + JSP https://github.com/mariuszs/spring-boot-web-jsp-example mariuszs/spring-boot-web-jsp-example Contribute to mariuszs/spring-boot-web-jsp-example development by creating an account on GitHub. github.com https://stackoverflow.com/questions/21243690/is-it-possible-with-spring-boot-to-serve-up-jsps-with-a-jar-packaging Is it possible with Spring Boot to serve up JSPs with a JAR packaging? I'm familia.. 더보기
자바스크립트 특정 시간 설정 및 현재시간 얻어오기 this.emergencyStartTime = new Date('2019-10-31T22:00:00'); this.emergencyEndTime = new Date('2019-11-01T00:00:00'); let currentTime = Date.now() if((currentTime >= this.emergencyStartTime.getTime() && currentTime = this.emergencyStartTime && currentTime 더보기
인텔리제이 한글 깨짐 :: 같은 것을 다른 방법으로 참고 사이트 https://baejangho.com/entry/IntelliJ-resolve-garbled-korean-problem [IntelliJ] 한글깨짐 해결 UTF-8 Encoding 설정 [IntelliJ] 한글깨짐 해결 UTF-8 Encoding 설정 1. IntelliJ 가상머신 Encoding 설정 IntelliJ 실행시 사용되는 가상머신 Encoding 설정. Windows 환경에서 기본 설정으로 IntelliJ를 설치할 경우를 기준으로 C:\P.. baejangho.com 내 경우 위의 방법 모두를 동원해도 적용 되지 않았는데, https://www.jetbrains.com/help/idea/2019.2/configuring-individual-file-encoding.html#co.. 더보기
Map vs JsonPath vs Gson vs Jackson @Test void comparePasingTime() throws IOException { String param = "{\"api_name\":\"api\"}"; long before1 = 0; long before2 = 0; long before3 = 0; long before4 = 0; before1 = System.currentTimeMillis(); Map pMap = Util.parseJsonString2HashMap4String(param); logger.trace("PARAM VALUE ::: "+ pMap.get("api_name")); logger.trace("MAP PASING INTO MAP WAS TAKING ::: " + (System.currentTimeMillis() - b.. 더보기
키워드 IPFS 더보기
Apache Server에서 TLS 설정 개념잡기 1. 테스트 인증서로, 초기설정 시, 정리한 내용 2. 실 구매 인증서 적용하며 정리된 개념 - 포트별 NameVirtualHost 설정과 VirtualHost 설정의 관계와 동작방식 - 보안 인증서 적용의 의미가 없지만, 시스템 설정 관점에서 는 80,443 포트 모두에 설정하면 두개의 포트를 통해 별개로 사용 가능. 80 포트에 대한 NameVirtualHost 설정을 제외하고, TLS(SSL) 인증서와 설정만 적용한 후에, mod_rewrite.so 모듈 설정을 통해서 80으로 들어오는 요청을 443으로 보내면 충분. 더보기
리눅스에 Apache / Tomcat 리눅스에 Apache / Tomcat 설치 전에 필요한 패키지 먼저 설치 $ yum install gcc gcc-c++ httpd-devel 더보기
MacOS SVN command line client 프로그램 설치 아파치 사이트 접속https://subversion.apache.org/packages.htmlMacOS용 SVN 프로그램 중, WANdisco 선택.사이트 방문하여, 이름과 회사 이메일을 등록하고, 회사 이메일을 통해 설치 파일 다운로드 받았다. /opt/subversion 하위에 설치 파일들이 설치 되며,/etc/path.d 폴더 하위에 svn 파일이름(cat /etc/path.d/svn)으로 /opt/subversion/bin 경로 잡아 주었다. 그 후, 다음과 같은 메세지와 함께xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/Comm.. 더보기
Jeus6 (max-use-count) 집념이고 싶은 막무가내 테스트 (설명이 날아갔다;; ㅇ ㅏ오) JEUSMain.xml [max-use-count] : 어느 connection의 최대 사용빈도를 지정해 줍니다. 예를들어 해당 값이 10이라면, 하나의 커넥션은 10회 재사용 될 것이며, 10번 사용이 끝나면, 강제종료로 소멸되고 새로운 connection으로 대체가 됩니다. (출처 - http://bywoong.com/post/1075) 이 값이 얼마일 때, 에러가 나지 않는가? 100000 > 50000 > 75000 > 90000 > 99990 ...설정하고 서버를 내렸다 올리기를 반복. 99997 일 때였다. 99998 에서는 커넥션 풀을 제대로 못 가져오는지 에러가 발생했다. 도대체, 어떤 동작이 일어나길래 이런 결과가 나오는 걸까? 이것 말고 다른 값 조정으로.. 더보기
메이븐 로컬의 별도 Repository 설정 https://devcenter.heroku.com/articles/local-maven-dependencies#create-a-local-maven-repository-directory mvn deploy:deploy-file -Durl=file:///D:\workspace\IntelliJIdeaProjects\2017\atrium_rba2.0\repo -Dfile=ojdbc6.jar -DgroupId=project.libs.atrium -DartifactId=ojdbc6 -Dpackaging=jar -Dversion=11.2.0.3 메이븐 서버에서 가져올 수 없는 프로젝트별 로컬 lib를 위한 로컬 repository 생성 및 설정 방법.프로젝트 바로 하위에.매우 유용했다.생유. 더보기
최신프로젝트 생성 pom 4.0.0com.sfzen.atriumrbawar0.0.-SNAPSHOTRBA 2.0http://maven.apache.org 1.84.3.10.RELEASE4.2.3.RELEASE1.8.101.7.252.8.2 org.springframeworkspring-framework-bom${org.springframework-version}pomimport org.springframeworkspring-contextcommons-loggingcommons-logging org.springframeworkspring-webmvc org.springframework spring-test testorg.springframework.securityspring-security-core${spring.security.v.. 더보기
스프링 시큐리티를 이용한 로그인 처리 http://niees.tistory.com/category/spring-security 포스팅이 매우 훌륭함. 추가 http://www.waitingforcode.com/spring-security/handling-of-expired-sessions-in-spring-security/read 로그아웃 후, 재로그인이 안 되는 문제https://stackoverflow.com/questions/3145936/spring-security-j-spring-security-logout-problem/3148236#3148236https://stackoverflow.com/questions/3145936/spring-security-j-spring-security-logout-problem Concurrent .. 더보기
JSP 파일에서 프로퍼티 사용하기 PropertyPlaceholderConfigurer can only parse placeholders in Spring configuration (XML or annotations). Is very common in Spring applications use a Properties bean. You can access it from your view this way (assuming you are using InternalResourceViewResolver): classpath:config.properties properties Then, in your JSP, you can use ${properties.myProperty} or ${properties['my.property']}. 출처https:.. 더보기
MyBatis vs JPA 프로젝트 진행 관련 질문 과 조언. JPA는 도메인 모델에 대한 이해 없이 설계했을 경우, 프로젝트 진행에 어려움이 많다.학습과 동시에 프로젝트를 진행하는 것도 또한 무리수가 될 수 있다. JPA는 스펙이고, 그것을 구현한 프레임워크 중에 하나가 하이버네이트. 사용자 앱은 JPA, 기간계 연동이나 통계, 분석은 마이바티스나 JPQL.또 다른 의견은 HQL, JPQL은 버려야 할 것. 기존방식이 너무 불편할 때 JPA를 알아보고 사용하게 되는 경우가 많음.querydsl 도 셋트로 해서 사용. MSA?Measurement System Analysis.인자나 제품 특성을 측정하기 위한 조작, 절차, 계측기, 장비, 소프트웨어 및 이를 운용하기 위한 사람(Operator)등 측정 치에 영향을 미치는 모든 구성 요소의 집합체에 대한 분석. 더보기
책, 토비의 스프링 3.0 "1부 이해" - 기록하고 또 보기 5.1.5 코드 개선코드에 중복된 부분은 없는가?코드가 무엇을 하는 것인지 이해하기 불편하지 않은가?코드가 자신이 있어야 할 자리에 있는가?앞으로 변경이 일어난다면 어떤 것이 있을 수 있고, 그 변화에 쉽게 대응할 수 있게 작성되어 있는가?"객체지향적인 코드는 다른 오브젝트의 데이터를 가져와서 작업하는 대신 데이터를 갖고 있는 다른 오브젝트에게 작업을 해달라고 요청한다. 오브젝트에게 데이터를 요구하지 말고 작업을 요청하라는 것이 원리이기도 하다" ... 더보기
jQuery Datepicker 랜더링 /* Korean initialisation for the jQuery calendar extension. *//* Written by DaeKwon Kang (ncrash.dk@gmail.com), Edited by Genie and Myeongjin Lee. */( function( factory ) { if ( typeof define === "function" && define.amd ) { // AMD. Register as an anonymous module. define( [ "../widgets/datepicker" ], factory ); } else { // Browser globals factory( jQuery.datepicker ); }}( function( datepick.. 더보기
[알고쓰기] maven-compiler-plugin .......My project org.apache.maven.plugins maven-compiler-plugin 3.6.1 1.8 1.8 -Xlint:all true true Maven pom 파일에서 저 설정의 쓰임이 아직도 정확히 모르겠으나설명에는 시스템과 다른 버전으로 컴파일 할 때 이 설정을 이용할 수 있다고 했다.또한, 실질적으로 파악한 것은컴파일 시, 디렉토리 구조 src/main/resources 하위에 있는 파일을 classpath 로 자동으로 넣어준다.컴파일 하고 빌드할 때 일어나는 것들을 편리하게 처리해 주는 기능을 제공하고 있는 듯하다. 더보기
우분투 부팅USB 만들기 설명 페이지 링크 http://myubuntu.tistory.com/809 내가 이해하기 쉬운 설명. 더보기
Mac OS X 환경변수 설정 현재 버전 : OS X EL Capitan 10.11.6 1. 각 프로그램 HOME directory setting (~는 현재 로그인 계정의 Home directory)~.bash_profile 파일에 다음 내용 추가export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home export M2_HOME=/usr/local/apaches/apache-maven-3.3.9 2. bin directory 정보/etc/paths.d 라는 directory가 있다.이 directory 안에 명령어 이름으로 파일을 생성하고 그 내부에 directory 정보를 넣으면 된다.sudo vi mvn 으로 파일을 생성하고, 파일 내부에 다.. 더보기
Codility Demo Task Solving Task )This is a demo task. You can read about this task and its solutions in this blog post.A zero-indexed array A consisting of N integers is given. An equilibrium index of this array is any integer P such that 0 ≤ P < N and the sum of elements of lower indices is equal to the sum of elements of higher indices, i.e. A[0] + A[1] + ... + A[P−1] = A[P+1] + ... + A[N−2] + A[N−1]. Sum of zero elemen.. 더보기
Print multiple values in a row by using ArrayList.subList import java.util.ArrayList; import java.util.List; public class SujeongTest { public static void main(String[] args) { // TODO Auto-generated method stub SujeongTest sujeongTest = new SujeongTest(); List stringList = sujeongTest.makeStringList(); String printValue = ""; int listSize = stringList.size(); int countRow = 1; int sIdx = 0; int eIdx = sujeongTest.getLastIndex( countRow , listSize) ; w.. 더보기
JPA CriteriaQuery.multiselect() #1. IssueThree row of same data had been shown on a screen.세 개의 똑같은 데이터 목록이 화면에 표출되었다. #2. CauseThe query was selecting all columns from root type (in this case, LocationBref).One of those columns had three different values for each row.According to data, it was not a defect but it seems to be defect as the column was not shown on the screen.We could solve this issue by showing the column value .. 더보기
Difference between start and run method in Thread in Java http://javarevisited.blogspot.co.uk/2012/03/difference-between-start-and-run-method.html 더보기
rich:fileUpload - The default file upload location on JBoss server C:\software\jboss-portal-6.1.1\jboss-portal-6.1\standalone\tmp\work\jboss.web\default-host\{applications-portlets(Your portlets name)} ---> \standalone\tmp\work\jboss.web\default-host\{applications-portlets(Your portlets name)} 더보기
Eclipse "Remote Debugging" Setting with JBoss Portal, Fuse 1. JBoss Portal1.1 Open {JBossPortal-Home Dir}/bin/standalone.bat file1.2 Activate DEBUG_MODE from false to true=======================================================================================.......rem By default debug mode is disable.set DEBUG_MODE=trueset DEBUG_PORT=8787rem Set to all parameters by default.......==========================================================================.. 더보기
Maven Build lifecycle and POM version SNAPSHOT Maven http://maven.apache.org/guides/index.html Build lifecycle validate - validate the project is correct and all necessary information is availablecompile - compile the source code of the projecttest - test the compiled source code using a suitable unit testing framework. These tests should not require the code be packaged or deployedpackage - take the compiled code and package it in its distr.. 더보기