전체 글136 [SQL] DISTINCT 사용법 SELECT DISTINCT Country FROM Customers; country 필드 중복을 제거한 결과 출력 SELECT COUNT(DISTINCT Country) FROM Customers; 중복 제거한 country 수 ref : https://www.w3schools.com/sql/sql_distinct.asp 2022. 2. 6. [Java] JAR WAR 차이점 JAR 파일은 라이브러리 및 리소스를 포함 WAR 파일은 어떤 서블릿/JSP 컨테이너에도 올릴 수 있는 웹 애플리케이션을 포함, JSP/HTML.JS와 같은 개발에 필요한 파일 포함 ref : https://stackoverflow.com/questions/5871053/difference-between-jar-and-war-in-java 2022. 2. 5. [PostgreSQL] 인덱스 생성 방법 CREATE INDEX index_name ON table_name [USING method] ( column_name [ASC | DESC] [NULLS {FIRST | LAST }], ... ); USING method : 인덱스 방식 지정, btree가 기본값 ASC | DESC : 정렬 방법 지정, ASC가 기본값 NULLS {FIRST | LAST} : NULL값들을 정렬하는 기준, NULLS LAST가 기본값, NULL이 마지막에 온다 ref : https://www.postgresqltutorial.com/postgresql-indexes/postgresql-create-index/ 2022. 1. 5. [Keycloak] Spring에서 유저 생성하기 org.keycloak keycloak-admin-client ${keycloak.version} 키클락 버전에 맞춰 의존성을 추가해준다. Keycloak kc = KeycloakBuilder.builder() .serverUrl("http://your.keycloak.domain/auth") .realm("master") .username("admin") .password("secret") .clientId("admin-cli") .resteasyClient( new ResteasyClientBuilder() .connectionPoolSize(10).build() ).build(); 인증서버 url, 렐름, 클라이언트 id, 사용자 계정과 비밀번호를 입력한다. UserRepresentation use.. 2021. 11. 18. 이전 1 ··· 24 25 26 27 28 29 30 ··· 34 다음