$.when(

        $.each(res, function(key, value){

        console.log(key + " : " + value);

        row[key] = value;

        })

    ).then(function(){

    $scope.data.totalPrice.push(row);

    });

'Jquery' 카테고리의 다른 글

stringfy  (0) 2012.02.03
jQuery Ajax로 ASP.NET과 연동하는 방법  (0) 2011.11.25
드롭다운리스트의 텍스트와 값 가져오기  (0) 2011.11.25
split 이렇게도 쓰넹  (0) 2011.11.25
체크박스 전체선택 및 해제  (0) 2011.11.25

[MyBatis의 표현식]


 # if

  - 사용예

  <if test="content !=null">

  명령문...

  </if>

 

 # choose(when, otherwise)

  - 사용예

     <choose>

      <when test="content !=null">

      명령문.....

      </when>

      <when test="product !=null and product.code !=null">

      명령문....

      </when>

      <otherwise>

      명령문....

      </otherwise>    

     </choose>

 

 

 # trim(where, set)

 

 // 맨끝에 있는 콤마(,)를 제거하는 경우

   

  <update id="updateMember" parameterType="com.spring.xxxxxVO"> 

  update Member 

  <trim prefix="set" suffixOverrides=",">

  <if test="userName !=null">userName = #{userName},</if>

   <if test="email !=null">email = #{email},</if>

   <if test="tel !=null">tel = #{tel} </if>

</trim>

  where id = #{id}

   </update>

 // 맨 앞에 있는 연산자를(AND / OR) 제거하는 경우

 

  <select id="selectInfo" parameterType="com.spring.xxxVO" resultType="memberResultMap">

    select * from Employee 

    <trim prefix="where" prefixOverrides = "AND | OR">

    <if test ="userName !=null">userName = #{userName}</if>

    <if test ="pwd !=null">and pwd = #{pwd} </if>

    <if test ="email !=null">and email = #{email}</if>

    </trim> 

  </select>

 

 # forEach 

  <foreach item="item" index ="idx" collection="list"

  open="(" separator="," close=")">

  #{item}

  </foreach>

 

 

 

'Java' 카테고리의 다른 글

나눔고딕  (0) 2017.07.02
엑박  (0) 2017.07.02
SYNCHRONIZE 작업시 불필요한 파일 제외하기  (0) 2017.07.02
svn 싱크  (0) 2017.07.02
was 없이 컨트롤러 테스트 하기  (0) 2017.05.04

http://software.naver.com/software/summary.nhn?softwareId=MFS_107630

'Java' 카테고리의 다른 글

[MyBatis의 표현식]  (0) 2017.07.02
엑박  (0) 2017.07.02
SYNCHRONIZE 작업시 불필요한 파일 제외하기  (0) 2017.07.02
svn 싱크  (0) 2017.07.02
was 없이 컨트롤러 테스트 하기  (0) 2017.05.04

http://m.blog.naver.com/doryjj/194062257

'Java' 카테고리의 다른 글

[MyBatis의 표현식]  (0) 2017.07.02
나눔고딕  (0) 2017.07.02
SYNCHRONIZE 작업시 불필요한 파일 제외하기  (0) 2017.07.02
svn 싱크  (0) 2017.07.02
was 없이 컨트롤러 테스트 하기  (0) 2017.05.04

http://www.jang-e.net/index.php/144

'Java' 카테고리의 다른 글

나눔고딕  (0) 2017.07.02
엑박  (0) 2017.07.02
svn 싱크  (0) 2017.07.02
was 없이 컨트롤러 테스트 하기  (0) 2017.05.04
controller 에서 주로 쓰는 annotation 정리  (0) 2017.05.04

http://m.blog.naver.com/dreamct0000/120208417610

'Java' 카테고리의 다른 글

엑박  (0) 2017.07.02
SYNCHRONIZE 작업시 불필요한 파일 제외하기  (0) 2017.07.02
was 없이 컨트롤러 테스트 하기  (0) 2017.05.04
controller 에서 주로 쓰는 annotation 정리  (0) 2017.05.04
cross domain  (0) 2012.01.18
options="{singleDatePicker: true,locale: {format: 'YYYY'}}"

'angular' 카테고리의 다른 글

angular deep copy  (0) 2017.08.24
sample  (0) 2017.06.28
visual studio code angular intellisense  (0) 2017.06.25
Json 바인딩  (0) 2017.03.01
ngModel 과 양방향 바인딩  (0) 2017.02.25

'angular' 카테고리의 다른 글

angular deep copy  (0) 2017.08.24
Daterange picker  (0) 2017.06.30
visual studio code angular intellisense  (0) 2017.06.25
Json 바인딩  (0) 2017.03.01
ngModel 과 양방향 바인딩  (0) 2017.02.25

install typings globally like:-

npm install -g typings

to check if tpyings is installed globally or not

npm list -g

once typings installed write:-

typings install dt~angular --save

it will add some of files in your project to make angular globally.

then install angular like:-

npm install angular --save


'angular' 카테고리의 다른 글

Daterange picker  (0) 2017.06.30
sample  (0) 2017.06.28
Json 바인딩  (0) 2017.03.01
ngModel 과 양방향 바인딩  (0) 2017.02.25
데이타 바인딩  (0) 2017.02.25

윈도

python -m http.server 8000


리눅스

python -m SimpleHTTPServer 8000


'django' 카테고리의 다른 글

url 정규표현식  (0) 2017.03.01
페이지 추가  (0) 2017.03.01
프로젝트 설치  (0) 2017.03.01

adb install -rf test.apk

'Android' 카테고리의 다른 글

Android Example  (0) 2018.04.19
Online mysql table to java class generator  (0) 2018.04.19
로컬서버 모바일에서 돌리기  (0) 2017.05.08
view 가운데 놓기  (0) 2017.04.23
서비스  (0) 2017.02.12

cmd 프로젝트 생성 폴더로 이동

sencha -sdk /path/of/my/sdk/extjs/ generate app myAppName /path/of/myApp


'Sencha' 카테고리의 다른 글

Sass & Compass 설치  (0) 2012.04.14
sencha touch codeset  (0) 2012.02.28
json  (0) 2012.02.21
jsonp  (0) 2012.02.21
이미지에 클릭이벤트 등록  (0) 2012.02.16

npm install -g express-generator@4


express projectName


cd projectName && npm install


SET DEBUG=projectName:* & npm start

http://127.0.0.1:3000

'nodejs' 카테고리의 다른 글

npm start  (0) 2017.09.13
nvm 설치  (0) 2017.09.12
DummyDB  (0) 2017.05.26
nodemon  (0) 2017.02.27
파일 경로  (0) 2017.02.27

var DummyDB = (function(){

var DummyDB = {};

var storage = [];

var count = 1;


DummyDB.get = function(id){

if(id){

id = (type of == 'string') ? Number(id) : id;


for(var i in storage)

{

if(storage[i].id == id)}

return storage[i];

}

else{

return storage;

}

}

}

});


DummyDB.insert = function(id){

data.id = count++;

storage.push(data);

return data;

});


DummyDB.remove = function(id){

id = (typeof id == 'string') ? Number(id) : id;


for(var i  inn storage) if(storage[i].id == id){

storage.splice(i,1);


return true;

}


return false;


});


return DummyDB;

})();

'nodejs' 카테고리의 다른 글

nvm 설치  (0) 2017.09.12
express  (0) 2017.05.26
nodemon  (0) 2017.02.27
파일 경로  (0) 2017.02.27
예외 발생시 node crash 시키지 않기  (0) 2017.02.27

http://blog.hanseomgi.com/entry/iOS%EC%97%90%EC%84%9C-host-%EB%B3%80%EA%B2%BD-%ED%85%8C%EC%8A%A4%ED%8A%B8%EB%A5%BC-%EC%9C%84%ED%95%B4-Fiddler4%EB%A5%BC-%ED%99%9C%EC%9A%A9%ED%95%9C-HTTPS-Proxy-%EC%84%9C%EB%B2%84-%EB%A7%8C%EB%93%A4%EA%B8%B0

'Android' 카테고리의 다른 글

Online mysql table to java class generator  (0) 2018.04.19
apk 설치  (0) 2017.06.07
view 가운데 놓기  (0) 2017.04.23
서비스  (0) 2017.02.12
앱종료시 저장 SharedPreferences  (0) 2017.02.12

<dependency>

<groupId>javax.servlet</groupId>

<artifactId>javax.servlet-api</artifactId>

<version>3.1.0</version>

</dependency>


P. 118 참조

'Java' 카테고리의 다른 글

SYNCHRONIZE 작업시 불필요한 파일 제외하기  (0) 2017.07.02
svn 싱크  (0) 2017.07.02
controller 에서 주로 쓰는 annotation 정리  (0) 2017.05.04
cross domain  (0) 2012.01.18
맥에서 톰캣부팅시키기  (1) 2012.01.05

@RequestMapping : URL 매핑

@RequestParam : request 에서 특정 파라미터 값을 찾아냄

@ModelAttribute : 해당객체를 뷰까지 전달

ex ) @RequestMapping("doc")

public String getA(@ModelAttribute("msg") String msg){

return "result";

}

jsp : <span>${msg}</span>

* redirect 해야 할경우

ex)public String getA(RedirectAttributes rttr){

rttr.addAttribute("page", 1);        //url 에 쿼리가 붙는다.

rttr.addFlashAttribute("msg","hello");    //url 에 쿼리가 안붙는다.

return "redirect:/getB";

}

@ResponseBody : JSON 데이타 생성

ex) public @ResponseBody productVO getProduct(){

ProductVO vo = new ProductVO();

return vo;

}

@RequestBody : 전송된 jSON 데이타를 객체로 변환해 준다. @ModelAttribute 와 유사하지만 JSON 에서 사용된다.


*return ResponseEntity : 400 상태코드 + 데이타


@PathVariable : 현재 URI 에서 원하는 정보를 추출할때 사용

ex) @RequestMapping(value="/all/{bno}", method=RequestMethod.GET)

public ResponseEntity<List<ReplyVO>> list (@PathVariable("bno") Integer bno){

}

@Requestmapping() 을 보면 URI 내의 경로 {bno}를 활용한다. {bno}는 메소드의 파라미터에서 @PathVariable("bno")로 활용된다.


'Java' 카테고리의 다른 글

SYNCHRONIZE 작업시 불필요한 파일 제외하기  (0) 2017.07.02
svn 싱크  (0) 2017.07.02
was 없이 컨트롤러 테스트 하기  (0) 2017.05.04
cross domain  (0) 2012.01.18
맥에서 톰캣부팅시키기  (1) 2012.01.05

도구 > 확장및 업데이트 > 온라인 >  Web Essentials 


table>tr*7>td*8 + Tab

'Asp.Net' 카테고리의 다른 글

패키지 관리자 콘솔  (0) 2017.05.03
sqllocaldb  (0) 2017.05.03

install-package bootstrap


install-package dapper

'Asp.Net' 카테고리의 다른 글

Zen Coding  (0) 2017.05.03
sqllocaldb  (0) 2017.05.03

sqllocaldb start


sqllocaldb info


sqllocaldb info mssqllocaldb


sqllocaldb v


sqllocaldb i

'Asp.Net' 카테고리의 다른 글

Zen Coding  (0) 2017.05.03
패키지 관리자 콘솔  (0) 2017.05.03

layout_centerInParent

'Android' 카테고리의 다른 글

apk 설치  (0) 2017.06.07
로컬서버 모바일에서 돌리기  (0) 2017.05.08
서비스  (0) 2017.02.12
앱종료시 저장 SharedPreferences  (0) 2017.02.12
단축키  (0) 2017.02.05

ctrl + R

'Linux' 카테고리의 다른 글

포트 변경  (0) 2017.12.12
계정 변환  (0) 2017.11.15
vim  (0) 2017.03.23
grep  (0) 2017.03.22
로그및 용량확인  (0) 2017.02.17

/검색어

n : 다음검색어

shift + n : 이전검색어

v : 카피모드

y : 카피

shift + p : 붙여넣기

10 ,  shift + p :  10번 붙여넣기

'Linux' 카테고리의 다른 글

계정 변환  (0) 2017.11.15
history 검색  (0) 2017.03.28
grep  (0) 2017.03.22
로그및 용량확인  (0) 2017.02.17
shell script, crontab  (0) 2017.02.11

구동테이블이 작은 Nested Loops + 내부테이블의 결합키에 인덱스


'Oracle' 카테고리의 다른 글

실행계획  (0) 2017.03.06
START WITH CONNECT BY  (0) 2017.02.23
OVER PARTITION BY  (0) 2017.02.22
EXISTS  (0) 2017.02.21
EXPLAIN PLAN FOR  (0) 2017.02.20

grep -r "키워드" 폴더명 - 하위폴더검색

grep '키워드' 파일명 | less (space or b)

grep '키워드' 파일명 | grep -v "제외할키워드" | less

zcat access.log.gz(압축파일명) | grep "/retro"    - 압축파일에서 검색

tail -F access.log | grep "/retro" | grep -v "제외할키워드"


'Linux' 카테고리의 다른 글

history 검색  (0) 2017.03.28
vim  (0) 2017.03.23
로그및 용량확인  (0) 2017.02.17
shell script, crontab  (0) 2017.02.11
리눅스 명령어  (0) 2017.02.11

http://programmingsummaries.tistory.com/325

'javascript' 카테고리의 다른 글

더미 데이타 만들기  (0) 2017.09.13
tableToExcel  (0) 2017.08.18
json data roop  (0) 2012.02.29
DOM  (0) 2012.02.17
var 키워드와 영역  (0) 2012.02.07

select id,CountryCode, 

      district,    

      (select count(*) from city c2 where c2.countrycode = c1.countrycode and c2.id <= c1.id) as seq    

from city c1;

'mysql' 카테고리의 다른 글

blocked because of many connection errors  (0) 2018.06.12
mac mysql 삭제  (0) 2018.01.21

set autotrace traceonly;

'Oracle' 카테고리의 다른 글

튜닝 기본  (0) 2017.03.23
START WITH CONNECT BY  (0) 2017.02.23
OVER PARTITION BY  (0) 2017.02.22
EXISTS  (0) 2017.02.21
EXPLAIN PLAN FOR  (0) 2017.02.20

=========== html

<div *nfIf="articles">

<ul>

<li *nfFor="let article of articles">

<a href="#">{{article.title}}</a></li>

</ul>

</div>


=========== ts

import {Compontnt} from '@angular/core';

import {Http} from '@angular/http';


interface IArticles{

id : number;

title : string;

}

@Component({

selector:'webcamp'

template : requier('./exam.component.html')

})

export class WebCampComponent{

private API: string = "http://localhost:8080/testService";

public title:string = "TEST";

/*

public articles: any[] = [

{"id":1, title:"test"}

{"id":2, title:"test"}

]

*/

public articles: IArticles[];

constructor(private _http:HTTP){

_http.get(this.API).subscribe(result => {

this.articles = result.json();

});

}

}


=========== ngModule.ts

import {FormsModule} from "@angular/forms"

import {WebCampComponent} from './components/webcamp/webcamp.component'


@NgModule({

declarations :[

WebCampComponent,

],

imports :[

FormsModule,

RouterModule.forRoot([

path : 'webcamp', component:WebCampComponent},

])

]

})


=========== LeftMenu.html

<li [routerLinkActive]="['link-active']"

<a [routeLinnk] = "['/webcamp']">WebCamp</a>

</li>


'angular' 카테고리의 다른 글

sample  (0) 2017.06.28
visual studio code angular intellisense  (0) 2017.06.25
ngModel 과 양방향 바인딩  (0) 2017.02.25
데이타 바인딩  (0) 2017.02.25
데이타 입출력  (0) 2017.02.25

^ 문자열이 시작할 때

$ 문자열이 끝날 때

\d 숫자

+ 바로 앞에 나오는 항목이 계속 나올 때

() 패턴의 부분을 저장할 때

'django' 카테고리의 다른 글

서버실행  (1) 2017.06.23
페이지 추가  (0) 2017.03.01
프로젝트 설치  (0) 2017.03.01

+ Recent posts