전체 글(147)
-
com.microsoft.sqlserver.jdbc.SQLServerException: 들어오는 요청에 매개 변수가 너무 많습니다. 서버에서 지원하는 최대 매개 변수 개수는 2100개입니다. 매개 변수 개수를 줄이고 요청을 다시 보내십시오.
아니 itemList에 몇개를 줬길래 2100개가 넘어 ㅡㅡ; 이거 너무한거 아니냐고~ ㅅㅍ #{item} 덕분에 이런 제한이 있는걸 알았으니 인자수를 제한해주자 ㅋ
2022.02.21 -
[SSMS] 실행 제한 시간을 초과했습니다. 작업이 완료되기 전에 실행 제한 시간이 지났거나 서버가 응답하지 않습니다.
아래처럼 트랜잭션 제한 시간을 max 값으로 설정했다. 인뎅싱이 오래걸릴수 있으므로....
2022.01.28 -
[주식] '미수금대비 반대매매비중 / 신용 잔고' 확인방법
http://freesis.kofia.or.kr/ ::::: 금융투자협회 종합통계 Portal ::::: freesis.kofia.or.kr https://www.kofia.or.kr/index.do 메인 | 금융투자협회 www.kofia.or.kr
2022.01.25 -
Spring boot 2.6.2 MSSQL2019 연동 테스트
자~ 최신 spring boot를 이용하여 MSSQL 2019 버전에 한번 접속해보자! application.properties spring.datasource.driver-class-name=com.microsoft.sqlserver.jdbc.SQLServerDriver spring.datasource.jdbc-url=jdbc:sqlserver://mylocal-pc:1433;databaseName=test; spring.datasource.username=test spring.datasource.password=test spring.jpa.hibernate.ddl-auto=update spring.jpa.show-sql=true spring.jpa.properties.hibernate.format_s..
2022.01.18 -
IntelliJ 에서 Git pull failed ( refusing to merge unrelated histories )
오후 2:35 Git Pull failed From .......... * branch master -> FETCH_HEAD = [up to date] master -> origin/master refusing to merge unrelated histories 인텔리J로 인생갈아타는데 초장부터 깜빡이도 없이 태클을 걸어! 흠... 이클립스할땐 그냥 pull 하면 알아서 merge 되었는데... 첫판부터 싸우자 이기야? 암튼 과정은 이러하다! 최초 remote에 저장소를 만들고, 그이후에 인텔리J에서 프로젝트를 만든후, local 저장소를 만들었다. 그다음 commit을 하고 push 하려할때, remote 주소를 넣으라길래 넣었더니 당근 push가 안되지? 왜냐? remote의 gitignore파일이 ..
2022.01.18 -
2022년 자동차세 연납신청 완료! (10% 싸게 내야쥐? 고로치?) 2022.01.18
-
IntelliJ IDEA 입문 #2 -단축키모음2
https://resources.jetbrains.com/storage/products/intellij-idea/docs/IntelliJIDEA_ReferenceCard.pdf Windows & Linux keymap REMEMBER THESE SHORTCUTS Smart code completion Ctrl + Shift + Space Search everywhere Double Shift Show intention actions and quick-fixes Alt + Enter Generate code Alt + Ins Parameter info Ctrl + P Extend selection Ctrl + W Shrink selection Ctrl + Shift + W Recent files popup..
2022.01.18 -
IntelliJ IDEA 입문 #1 - Spring Boot Project 추가하기
@SpringBootApplication(exclude={DataSourceAutoConfiguration.class})
2022.01.18 -
윈도우에서 Mariadb 설치 실패시 해결방법(mariadb wizard ended prematurely because of an error)
https://docs.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170 Latest supported Visual C++ Redistributable downloads This article lists the download links for the latest versions of Visual C++ Redistributable packages. docs.microsoft.com 위 링크를 타고 가서 최신버전의 Microsoft Visual C++ Redistributable 설치파일을 OS bit에 맞게 다운로드하라! VISUAL STUDIO 2015, 2017, 2019, AND 2022ArchitectureLinkN..
2022.01.17 -
[spring boot] Reason: Failed to determine suitable jdbc url 또는 jdbcUrl is required with driverClassName 발생시
*************************** APPLICATION FAILED TO START *************************** Description: Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured. Reason: Failed to determine suitable jdbc url Action: Consider the following: If you want an embedded database (H2, HSQL or Derby), please put it on the classpath. If you have database s..
2022.01.11 -
It was either not specified and/or could not be found for the javaType (java.time.LocalDateTime) : jdbcType (null) combination.
mybatis에서 자바8 부터 추가된 LocalDate, LocalTime, LocalDateTime.... 등등의 타입을 지원하지 않아 발생된 문제 이다. 하여 아래와 같이 타입을 지원해주는 라이브러리를 추가하면 끝! =메이븐 버전= org.mybatis mybatis-typehandlers-jsr310 1.0.2 https://mvnrepository.com/artifact/org.mybatis/mybatis-typehandlers-jsr310/1.0.2 =gradle 버전= (사실 위 링크에 가면 종류별로 다있다 ㅋ) implementation 'org.mybatis:mybatis-typehandlers-jsr310:1.0.2'
2022.01.05 -
[java] Collections.shuffle(List<?> list) 리스트 내부 아이템 섞기
List 아이템 섞기 List students = Arrays.asList("홍길동", "김철수", "이영희", "홍길순"); Collections.shuffle(students); Map => List 변환후, 아이템 섞기 Map studentsById = new HashMap(); studentsById.put(1, "홍길동"); studentsById.put(2, "김철수"); studentsById.put(3, "이영희"); studentsById.put(4, "홍길순"); List shuffledStudentEntries = new ArrayList(studentsById.entrySet()); Collections.shuffle(shuffledStudentEntries); List shuffl..
2022.01.04 -
[Vue] process.env.XXXX 사용시, 왜 undefined 가 생기지?
.env.production 파일에 아래와 같이 설정하고 # production 설정파일 NODE_ENV=production BASE_URL=/ KAKAO_URL=https://www.kakaocorp.com/ //js단 alert(`${process.env.KAKAO_URL}`); 아무리 호출해도 안되길래 구글링해서 봤더니... 역시 document는 진리! Note that only NODE_ENV, BASE_URL, and variables that start with VUE_APP_ will be statically embedded into the client bundle with webpack.DefinePlugin. It is to avoid accidentally exposing a priv..
2021.12.31 -
[보안이슈] log4j 2.17 버전 취약점 대응(2.17.1 버전 업그레이드)
엄.... 흠... 에.... 이거 언제까지 이럴껴... 레거시 시스템의 배포주기가 log4j 업그레이드 주기랑 같아지는 기적이... 암튼 거두절미하고, 취약점은 아래와 같고, 업그레이드 방법은 이전 게시물 참고하자. 취약점 Apache Log4j 2에서 발생하는 원격코드 실행 취약점(CVE-2021-44832) 영향을 받는 버전 2.0-beta9 ~ 2.17.0 버전 (Log4j 2.3.2, 2.12.4 제외) 대응방안 제조사 홈페이지를 통해 최신버전으로 업데이트 적용 ※ 제조사 홈페이지에 신규버전이 계속 업데이트되고 있어 확인 후 업데이트 적용 필요 - Java 8 이상 : Log4j 2.17.1으로 업데이트 - Java 7 : Log4j 2.12.4으로 업데이트 (업데이트 예정, 참고사이트 [3] ..
2021.12.30 -
[보안이슈] log4j 취약점 대응( 2.15, 2.16, 2.17 )
금일 다시 KISA, CVE 공지를 확인해보니 아래와 같이 2.15, 2.16, 2.17 버전에서 취약점이 발생하였다고 한다 ㅡ,.ㅡ 단디 안할래? 확마~ PS. 자료 갱신하는것도 지쳤다... 취약점 신저점 갱신 제발 그만해~ 나 무서워~~ 하여 다음과 같이 (2021-12-30일 현재) 최신버전(2.17.1) 으로 업그레이드를 진행하여 해결함. #1 Spring MVC 메이븐설정 에서는 ... 2.17.1 ... ... org.apache.logging.log4j log4j-core ${log4j2.version} ... #2 Spring boot 메이븐설정에서는 ( properties로 쉽게 수정가능하였습니다. ) ... 2.17.1 ... #3 Spring boot gradle설정에서는 ... ....
2021.12.16 -
전자정부측 log4j 관련 FAQ 자료 공유(2.15 버전 업그레이드)
[BEFORE] 전자정부 pom.xml 의 Dependency Hierarchy 탭 [AFTER] 전자정부 pom.xml 의 Dependency Hierarchy 탭 원본 글 : https://www.egovframe.go.kr/home/faqinfo/faqinfoRead.do?pagerOffset=0&searchKey=&searchValue=&menuNo=68&faqId=FAQ_0000000000000812 자주 묻는 질문 | 표준프레임워크 포털 eGovFrame 처리중입니다. 잠시만 기다려주십시오. www.egovframe.go.kr 1. Log4 jdbc v1.2를 적용하고 있는데 이런경우는 보안패치 해당사항이 없는건가요? 보안패치 대상은 Log4 jdbc가 아닌 Log4j-core입니다. 다음 2..
2021.12.14 -
FLUSH PRIVILEGES; | mysql 데이터베이스에서 db 테이블에 사용자의 권한 수동반영시, 적용 명령어
운영서버에서 이러면 안되지만 개발서버에서 DB사용자의 접근권한 데이터베이스 허용하도록 수동 insert 한후, 반영하기 위해선 아래의 명령 필요! FLUSH PRIVILEGES;
2021.11.26 -
[JPA] Caused by: java.lang.NoSuchMethodError: 'javax.persistence.ValidationMode javax.persistence.spi.PersistenceUnitInfo.getValidationMode()'
원인 : jpa1.0 와 jpa2.0 을 동시에 쓴다고 pom.xml에 지정해놓으니 윈도우에서는 jpa2.0 이 클래스로더에서 먼저 읽혀 정상! 리눅스에서는 jpa1.0 이 클래스로더에서 먼저 읽혀 오류 뿜뿜! (왜냐하면 jpa1.0에는 getValidationMode 요 메소드가 없거든! => 아래 캡쳐 참고 ) 결론 : pom.xml에서 jpa1.0 사용하는 dependency에서 exclusion 처리해줌. 참고자료 : https://stackoverflow.com/questions/22167945/java-lang-nosuchmethoderror-javax-persistence-spi-persistenceunitinfo-getvalida
2021.11.25 -
mysql 뷰 컬럼에 collation 지정하기
위와 같이 오류가 뜨길래 뭐지??? 대체!!! 뷰에서 컬럼 collation이 이상한가? 하고 아래의 쿼리를 이용해 조회해보니 진짜네..... SHOW FULL COLUMNS FROM USER; 헐... 지 혼자만 utf8mb4_0900_ai_ci 네... 왜그런고 하니 뷰생성 쿼리 를 보면 (case when (`a`.`EMPLYR_STTUS_CODE` = 'P') then 'N' else 'Y' END) AS `DEL_YN` 요런 컬럼이 있는데 아무래도 실제 컬럼이 아니라 그런건지 collation이 서버기본값으로 지정된건가? 뭐지??? (mysql document를 보면 나올것 같은데... 시간이 없다! 바쁘다 바뻐!) 다행히 해결은 간단했다 CONVERT( (case when (`a`.`EMPLY..
2021.11.19 -
Microsoft Network Monitor 3.4 괜츈한데?
CS 프로그램에서 네트워크 트래픽을 모니터링하여 http call을 어떻게하는지 어떤 데이터를 보내는지 알필요가 있어 위와 같이 마소의 네트워크 모니터 프로그램을 깔고 실행했더니 직관적이면서도 내가 알고 싶은걸 똭 제공하였다. 괜히 와이어 샤크 깔고 할뻔.... 암튼 유용하게 잘쓸께~ 마소땡큐~!
2021.11.08