본문 바로가기

전체 글146

[Intellij/전자정부/Tomcat] 한글 깨짐 -Dfile.encoding=UTF-8 추가 톰캣 catalina.bat[catalina.sh] 파일 내용 추가 set JAVA_OPTS=%JAVA_OPTS% -Dfile.encoding=UTF-8 2020. 9. 4.
[Spring] [전자정부프레임워크] ResponseBody 관련 설정 추가(Converter) 1. jackson 관련 Dependency 추가 com.fasterxml.jackson.core jackson-core 2.8.11 com.fasterxml.jackson.core jackson-databind 2.8.11 2. dispatcher-servlet.xml 설정 추가 org.springframework.http.converter.xml.Jaxb2RootElementHttpMessageConverter" /> */*;charset=UTF-8 3. @RestController 클래스 생성 2020. 9. 4.
[AWS] S3 설정 # 모든 호스트 허용, GET 허용, 모든 헤더 허용 * GET * 2020. 8. 3.
[MariaDB] 전체 테이블 DROP SET @tables = NULL; SELECT GROUP_CONCAT(table_schema, '.', table_name) INTO @tables FROM information_schema.tables WHERE table_schema = '[테이블 스키마명]'; -- specify DB name here. SET @tables = CONCAT('DROP TABLE ', @tables); PREPARE stmt FROM @tables; EXECUTE stmt; DEALLOCATE PREPARE stmt; 2020. 7. 24.
Jenkins github 커밋 자동 배포 1. SSH KEY 생성 ssh-keygen 명령어으로 생성 2. Jenkins 관리 > 플러그인 관리 로 가서 GitHub Integration Plugin 을 설치 3. Jenkins -> Credential 등록 4. Jenkins 빌드 유발 등록 5. Github -> Deploy keys, Webhook 등록 # 참고 사이트 https://yaboong.github.io/jenkins/2018/05/14/github-webhook-jenkins/ https://simsi6.tistory.com/14 2020. 5. 31.
SSL인증서 발급 # 비밀키 발급 openssl genrsa -des3 -out [비밀키 파일명] 2048 openssl genrsa -des3 -out test.key.pri 2048 # 공개키 발급 openssl rsa -in [비밀키 파일명] -pubout -out [신규 공개키 파일명] openssl rsa -in test.key.pri -pubout -out test.key.pub # KEY openssl genrsa -des3 -out test.key 1024 openssl genrsa -des3 -out test.pem 1024 # CSR openssl req -new -key test.key -out test.csr - CSR 질문 순서 국가명(2자리 코드): KR 주 또는 도 이름(전체 이름): Seoul.. 2020. 5. 25.
Jenkins github private repository 배포 설정 # 우분투 SSH 관련 참고 https://ebom.tistory.com/entry/%EC%9A%B0%EB%B6%84%ED%88%AC-SSH-%EC%A0%91%EC%86%8D-%EA%B4%80%EB%A0%A8?category=756089 2020. 5. 24.
우분투 SSH 접속 관련 # 패스워드 있음 ssh-keygen -t rsa ssh-keygen -t rsa -f id_rsa 2020. 5. 24.
Jenkins 포트 변경 /etc/default$ clear /etc/default$ pwd /etc/default$ vi jenkins /etc/default$ sudo vi jenkins 2020. 5. 22.
Jenkins 기본 플러그인 Folders OWASP Markup Formatter Build Timeout Credentials Binding Timestamper Workspace Cleanup Ant Gradle Pipeline Github Branch Source Pipeline: Github Groovy Libraries Pipeline: Stage View Git Subversion SSH Build Agents Matrix Authorization Strategy PAM Authentication LDAP Email Extension Mailer ####################### Publish Over SSH NodeJS Build Pipeline Plugin Parameterized Trigger Dashbo.. 2020. 5. 21.
POSTMAN GET 한글 전송 테스트 Content-Type application/json; charset=UTF-8 2020. 5. 17.
Docker Mysql 설치 오류 no matching manifest for windows/amd64 # Docker 설정 변경 2020. 5. 6.
몽고DB 로그인 권한 설정(Windows 기준) # 몽고DB 설정 security: authorization: "enabled" # 몽고DB 사용자 추가 # 스프링 부트 설정 spring: data: mongodb: host: localhost port: 27017 database: [입력값] authentication-database: admin username: [입력값] password: [입력값] 2020. 5. 5.
mybatis query log https://mvnrepository.com/artifact/org.bgee.log4jdbc-log4j2/log4jdbc-log4j2-jdbc4.1/1.16 Maven Repository: org.bgee.log4jdbc-log4j2 » log4jdbc-log4j2-jdbc4.1 » 1.16 org.bgee.log4jdbc-log4j2 log4jdbc-log4j2-jdbc4.1 1.16 // https://mvnrepository.com/artifact/org.bgee.log4jdbc-log4j2/log4jdbc-log4j2-jdbc4.1 compile group: 'org.bgee.log4jdbc-log4j2', name: 'log4jdbc-log4j2-jdbc4.1', version: '1.16' .. 2019. 12. 9.
[Spring] [JUnit 테스트 에러] o.s.w.util.NestedServletException... cannot deserialize from Object value @RequestBody를 사용한 Controller의 JUnit 테스트시 NestedServletException 에러 발생 ※ 해결 @RequestBody를 적용하는 DTO에 @NoArgsConstructor 추가 2019. 11. 8.
Sonar 연동 - sonarqube-7.2.1 - sonar-scanner-cli-3.0.3.778-windows 1. 플러그인 설치 - Gradle plugin - SonarQube Scanner for Jenkins 2. 설정 변경 3. 아이템 추가 [단일 프로젝트] sonar.login=admin sonar.password=admin sonar.host.url=http://localhost:9000 sonar.sources=src/main/java sonar.tests=src/test/java sonar.java.binaries=build/classes sonar.projectVersion=1.0 sonar.sourceEncoding=UTF-8 sonar.projectKey=sonarqube sonar.java... 2019. 8. 10.
[Intellij] JUnit4/5 에러 - Command line is too long. Shorten command line for 에러 # workspace.xml 설정 파일 수정 2019. 7. 26.
mysql character encoding 설정 - utf8 [client] default-character-set = utf8 [mysql] default-character-set = utf8 [mysqld] character-set-client-handshake=FALSE init_connect="SET collation_connection = utf8_general_ci" init_connect="SET NAMES utf8" character-set-server = utf8 collation-server = utf8_general_ci 2019. 6. 7.
Mysql 8 설치 후 접속 오류 caching_sha2_password 1. my.ini 설정 변경 #default_authentication_plugin=caching_sha2_password default_authentication_plugin=mysql_native_password 2. 패스워드 변경 ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root'; 2019. 4. 21.
웹서버 설치 및 사용 1. https://nodejs.org/ko/ 접속 -> 다운로드 -> 설치 2. http-server, live-server 설치 npm i -g http-server npm i -g live-server 3. http-server, live-server 실행 2019. 3. 2.