분류 전체보기
-
Docker HuB 이미지 올리기Docker 2019. 5. 19. 16:28
Log in on https://hub.docker.com/ Click on Create Repository. Choose a name (e.g. verse_gapminder) and a description for your repository and click Create. Log into the Docker Hub from the command lin sudo docker login --username=atozjames Check the image ID and tag your image docker tag bb38976d03cf atozjames/node_server:0.0.2 Push your image to the repository you created sudo docker push atozja..
-
한글 바인딩 해결 방법Angular JS 2019. 1. 30. 15:52
eventAdMagApp.config(function ($provide) { $provide.decorator('textareaDirective', function($delegate, $log) { var directive = $delegate[0]; angular.extend(directive.link, { post: function(scope, element, attr, ctrls) { element.on('compositionupdate', function (event) { element.triggerHandler('compositionend'); }) } }); return $delegate; });}); eventAdMagApp.config(function ($provide) { $provide..
-
스프링 트랜잭션 처리JAVA 2019. 1. 24. 13:15
환경 설정 1.context-mapper.xml 2.서블릿 설정 화일-action-context.xmlxmlns:tx="http://www.springframework.org/schema/tx"http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd 3.Service Class@Transactional@Overridepublic void deleteContent(Map map) throws Exception {log.debug("commandMap==================================>"+map.toString());mcAdminDao.deleteFileList(map..
-
anuglar+springAngular JS 2019. 1. 18. 23:34
1.Create normal Dynamic web project. 2.Add all dependancy required for spring or user maven pom.xml 3.Open CMD, navigate to angular2 application. Hit command 'npm install' and then 'ng build' or use 'ng build --prod' for production build. this command will create a “dist” folder, copy all files including all folders. 4. Paste those files and folders into 'WebContent' directory. 5. Last thing, yo..
-
프로마이스 연습자바스크립트 2019. 1. 18. 09:30
doSomething() .then( result => doSomethingElse(result) ) .then(newResult => doThirdThing(newResult)) .then(finalResult => { console.log(`Got the final result: ${finalResult}`); }) .catch(failureCallback); function doSomething(){return new Promise(function(resolve,reject){ setTimeout(function() { console.log('doSomething'); resolve('result1'); }, 1000); }) } function doSomethingElse(){ return new..
-
프로마이스자바스크립트 2019. 1. 18. 08:47
doSomething() .then( result => doSomethingElse(result) ) .then(newResult => doThirdThing(newResult)) .then(finalResult => { console.log(`Got the final result: ${finalResult}`); }) .catch(failureCallback); var promise1 = new Promise(function(resolve, reject) { setTimeout(function() { resolve('foo'); }, 300);}); promise1.then(function(value) { console.log(value); // expected output: "foo"}); conso..
-
자꾸 까먹는 명령어리눅스 2019. 1. 17. 16:32
계정 로그인 실행 스크립트에 다음을 추가 (예: Ubuntu의 경우 .bashrc 파일) alias gowork='cd /root/work' export work='/root/work' 이렇게 별칭을 설정하면 디렉토리 이동을 간편하게 할 수 있다. $ gowork $ cd $work 특정 이름을 갖는 프로세스(들) 종료하기 $ ps ax | grep | ./gawk '{print $1}' | xargs kill - name: 실행 프로세스명에 포함되는 문자열 (일부도 가능) - gawk 대신 awk도 가능. (시스템에 존재하는 파일로 사용) - 프로세스 명에 name이 포함되는 모든 프로세스가 종료된다. 링크파일 생성 $ ln - src: 이미 존재하는 파일명 - link: 생성하고자 하는 링크파일명 -..