반응형

spring integration

https://github.com/spring-projects/spring-integration-samples/blob/master/basic/tcp-client-server/src/main/resources/META-INF/spring/integration/tcpClientServerDemo-context.xml


https://gitlab.com/kjkjjang/echo-server-client/blob/master/src/main/resources/META-INF/spring/integration/serverConfig.xml


angular + spring boot

https://chariotsolutions.com/blog/post/angular-2-spring-boot-jwt-cors_part1/

https://github.com/oktadeveloper/spring-boot-angular-example


angular + sts

https://grokonez.com/tool/setup-angular-ide-spring-tool-suite

라이센스를 잘 읽어봐서 설치해야된다. ( 특정 기간이 지난후 유료로 변하는것도 많다.)


spring boot + swing 

https://github.com/DanielMichalski/spring-boot-swing-reservations


spring boot rest service

https://spring.io/guides/tutorials/bookmarks/


spring boot rest api + tdd

https://github.com/pivotal-chicago/spring-boot-rest-api-tdd


spring boot + tdd

https://jojoldu.tistory.com/33


java8 optional

http://asfirstalways.tistory.com/354


spring boot + datatable server

https://www.opencodez.com/java/datatable-with-spring-boot.htm


Spring Boot + Angular 6 example | Spring Data JPA + REST + MySQL CRUD example

https://grokonez.com/spring-framework/spring-data/spring-boot-angular-6-example-spring-data-jpa-rest-mysql-crud-example


angular test-driven development

https://www.pluralsight.com/guides/introduction-to-angular-test-driven-development


angular cli

http://web-front-end.tistory.com/64


angualr datatable

https://blog.angular-university.io/angular-material-data-table/

http://l-lin.github.io/angular-datatables/#/getting-started


angular sweetalert

https://www.npmjs.com/package/ng2-sweetalert2


java xml parser

http://lee-mandu.tistory.com/377


websocket 

http://blog.naver.com/PostView.nhn?blogId=moonv11&logNo=220658500567&parentCategoryNo=&categoryNo=15&viewDate=&isShowPopularPosts=true&from=search


querydsl

https://lng1982.tistory.com/285

http://adrenal.tistory.com/25


jpa 

https://jojoldu.tistory.com/165


spring tdd

http://thswave.github.io/java/2015/03/02/spring-mvc-test.html





반응형
반응형

2017-07-04 14:34:28.207  WARN 20716 --- [nio-8080-exec-8] .w.s.m.s.DefaultHandlerExceptionResolver : 

Failed to bind request element: org.springframework.beans.TypeMismatchException: 

Failed to convert value of type 'java.lang.String' to required type 'com.jejunet.framework.core.entities.Code'; 


nested exception is org.springframework.core.convert.ConversionFailedException: 

Failed to convert from type [java.lang.String] to type [com.jejunet.framework.core.entities.Code] for value 'TEST'; 


nested exception is org.springframework.dao.InvalidDataAccessApiUsageException: 

Provided id of the wrong type for class com.jejunet.framework.core.entities.Code. Expected: 

class java.lang.Long, got class java.lang.String; nested exception is java.lang.IllegalArgumentException: 

Provided id of the wrong type for class com.jejunet.framework.core.entities.Code. 

Expected: class java.lang.Long, got class java.lang.String





Code 클래스에 code 속성이 있어

콘트롤러에서 Code formCode 로 받으면 바인딩이 안된다.

클래스 명과 같은 속성이 있으면 안되는거 같아. 

클래스명 바꿔서 처리 함.

반응형
반응형

angular  + ng-file-upload  + spring  환경에서 

multi file upload시 파일 업로드 안됨. 스프링에서 파일을 못읽음. ㅠㅠ

filename[0], filename[2] 이런식으로 넘겨진다.



var data = {

file : $scope.user.file,

           files : $scope.user.files,

email : $scope.user.email,

name : $scope.user.name,

password : $scope.user.password,

activeAt : $scope.user.activeAt,

role : $scope.user.role

}


Upload.upload({

            url: 'user/add',

            fields: data,

            arrayKey: '',

            headers : $scope.getCsrfHeader()

})


arrayKey 만 넘겨주면 스프링에서 받아서 인식해서 배열인덱스를 분석해서 리스트로 받아준다.


컨트롤러 파라메터에서 @RequestParam("files") List<MultipartFile> userFile 추가해도 되며


MultipartHttpServletRequest multiRequest 파라메터로 받아서 

 List<MultipartFile> userFile  = multiRequest.getFiles("files"); 해도 된다.

반응형
반응형


@Temporal(javax.persistence.TemporalType.DATE)

@Column(name="create_dttm")

private Date createDttm;


WARN : org.hibernate.engine.jdbc.spi.SqlExceptionHelper - SQL Error: 1048, SQLState: 23000

ERROR: org.hibernate.engine.jdbc.spi.SqlExceptionHelper - Column 'create_dttm' cannot be null



update시 필요 없는 컬럼은 빼기..

컬럼 속성에 있다.  updatable=false


@Column(name="create_dttm", updatable=false)


insertable 속성도 있다.




반응형

+ Recent posts