일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 |
- 자바
- DeepLearning
- Deep
- Server
- Github
- Pattern
- ai
- db
- 함수
- Web
- Python
- SSH
- framework
- java
- interface
- data
- git
- Spring
- Analysis
- javascript
- Security
- mysql
- centos
- Numpy
- Linux
- LIST
- mariaDB
- learning
- error
- 인공지능
- Today
- Total
목록Spring/Etc (10)
PostIT
https://okky.kr/article/382053 # Equals 와 Hashcode 사용하기 (너무 좋은 글, 꼭 읽어보기) 안녕하세요? 이번 시간엔 equals & hashcode를 어떤 곳에서 사용할 수 있는지를 확인해보려고 합니다. 모든 코드는 Github 에 있기 때문에 함께 보시면 더 이해하기 쉬우실 것 같습니다. (공부한 내용을 정리하는 Github 와 세미나+책 후기를 정리하는 Github , 이 모든 내용을 담고 있는 블로그 가 있습니다. ) java를 사용하면서 equals와 hashcode를 언제 override하면 좋을지 혹은 그런것이 있는지 모르시는 분들을 몇번 뵙게 되었습니다. 피부에 와닿을 수 있는 적절한 예제를 떠올리지 못하다가 마침 업무에서 사용할 기회가 되어서 적용후..
https://www.mkyong.com/unittest/junit-spring-integration-example/* 스프링 MVC 단위 테스트! In this tutorial, we will show you how to test the Spring DI components with JUnit frameworks.Technologies used :JUnit 4.12Hamcrest 1.3Spring 4.3.0.RELEASEMaven1. Project DependenciesTo integrate Spring with JUnit, you need spring-test.jarpom.xml junit junit 4.12 test org.hamcrest hamcrest-core org.hamcrest hamcre..
JSTL : foreach에서의 varStatus 속성 태그 상태 속성 입니다.속성을 이용해서 제어하면 좀더 쉽게 제어할수있습니다. ${status.current} ${status.index} ${status.count} ${status.first} ${status.last} ${status.begin} ${status.end} ${status.step} EX) items = [0,1,2,3,4,5]${status.current} ${status.index} 0,1,2,3,4,5${status.count} 1,2,3,4,5,6${status.first} index == 0일 때 true${status.last} index == 5일 때 true${status.begin} ${st..
http://cafe.naver.com/msjava/550 값이 같은가? 에 대한 비교로 보통 "== ", "!=" 을 많이 사용한다 이는 jstl에서도 마찬가지면 숫자와 문자 구분은 따움표로 구만해서 사용하는데 이대신 eq, ne를 사용하는것과 list, map 같은 객체가 값이 있느냐 없느냐의 구분하는 용도로 empty 를 사용 할 수 있다. 사용법은 아래와 같다 =============================================== Sample =============================================Ex) eq (==)1. // null2. // 숫자3. // 문자 Ex) empty = // list, map 객체 등= // 비어 있지 않은 경우 Ex) ne ..
http://hyeonstorage.tistory.com/97 HTTP 에러코드 에러 메시지 100 Continue 101 Switching Protocols200 OK, 에러 없이 전송 성공 202 Accepted, 서버가 클라이언트의 명령을 받음 203 Non-authoritative Information, 서버가 클라이언트 요구 중 일부만 전송함 204 Non Content, 클라이언트 요구를 처리했으나 전송할 데이터가 없음 205 Reset Content 206 Partial Content 300 Multiple Choices, 최근에 옮겨진 데이터를 요청함. 301 Moved Permanently, 요구한 데이터를 변경된 임시 URL에서 찾음 302 Moved Permanently, 요구한 데이..
-로그인 접속자의 아이피를 요청하는 메소드를 통해서 에러메세지가 발생되었다. 요청을 조건 안에서 찾을 수 없다는 메세지로 해석했는데 찾아보니, 밑의 리스너를 넣어주면 해결이 된다.문제는 IPv6로 출력되는 값을 IPv4로 전환해야되는데, 이클립스 내에 설정을 바꾸는 것으로 해결이 되는것인지, Java로 설정을 해줘야하는지를 알아봐야할 것 같다. SolutionTo fix it, register a RequestContextListener listener in web.xml file.File : web.xml org.springframework.web.context.request.RequestContextListener
1. Config// Message Source(Error part)@Beanpublic MessageSource messageSource() {ResourceBundleMessageSource messageSource = new ResourceBundleMessageSource();messageSource.setBasename("messages");messageSource.setDefaultEncoding("UTF-8");return messageSource;} // Language 설정부분@Beanpublic LocaleChangeInterceptor localeChangeInterceptor() {LocaleChangeInterceptor localeChangeInterceptor = new Loc..
http://lahuman.jabsiri.co.kr/87 properties 파일 전체 encoding 하는 법 window -> preferences -> general -> content types -> java properties file 하단에 Default encoding 변경
https://gs.saro.me/#!m=elec&jn=810 서론 최근에 서버와 클라이언트 양쪽에 템플릿 엔진이 있는 것들을 찾아보다가 스프링 부트에 기본적으로 있는 mustache 가 있다는 것을 알았습니다. - mustache : https://gs.saro.me/#!m=elec&jn=796 문제는 i18n이나 시큐리티, session 같은 경우 타임리프나 JSTL 처럼 사용할만한 방법이 없어 찾아보던 중 HandlerInterceptorAdapter를 사용해 보았습니다. - 물론 모델이 매번 넣어주는 방법도 있겠지만 유지보수도 안좋고 자원도 심하게 망가짐으로... WebMvcConfigurerAdapter - http://docs.spring.io/spring/docs/current/javadoc..
How to fix Cannot change version of project facet Dynamic Web Module to 3.0 Error in Eclipsehttp://crunchify.com/how-to-fix-cannot-change-version-of-project-facet-dynamic-web-module-to-3-0-error-in-eclipse/Today while converting Dynamic Web Project to Maven project I got below Error:12Cannot change version of project facet Dynamic Web Module to 3.0 One or more constraints have not been satisfied..