일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- spring
- console
- Maven
- centos7
- War
- ajax
- mysql
- config
- rocky9
- javascript
- security
- post
- 개발자도구 차단
- Java
- spring3
- MariaDB
- PM2
- nodejs
- popup
- MSsql
- yona
- jquery
- Eclipse
- Next.js
- jenkins
- NextJS
- git
- mybatis
- node.js
- SpringBoot
- Today
- Total
목록SpringBoot (15)
ふたりで
새로운 타사 라이브러리를 연동해야 하는 일이 발생해서 개발환경을 업그레이드해야 했다. 운영 중인 프로젝트는 springboot2.3.3 버전에 JDK1.8(java8) 환경인데 연동해야 하는 라이브러리는 JDK11(java11) 환경이어야 했다. 해서 하는 김에 springboot2.7.12에 java11 환경으로 업그레이드를 하였다. # pom.xml을 아래와 같이 수정. 4.0.0 org.springframework.boot spring-boot-starter-parent 2.7.12-SNAPSHOT . . . 11 2.17.1 1.2.9 . . . . . . com.mysql mysql-connector-j provided . . . - spring-boot-starter-parent의 버전을 2...
- 목표 프로젝트구성 1. springboot 2.x 2. Maven 4 3. spring-security 4. mariadb(mysql) 5. mybatis2 6. war 파일 배포 - 이번 포스팅은 springboot2.x로 web 프로젝트를 구성하여 테스트용 jsp 페이지를 출력해 보는 것까지 정리를 한다. 1. springboot Web프로트 생성 2. application.properties 에 DB연결 정보를 설정해 준다. mysql 관련 dependency가 pom.xml에 추가되어 있기 때문에 아래와 같이 DB연결 설정을 기본으로 하지 않을 경우 에러가 발생한다. 해당 설정 값은 추후 mybatis를 설정할 때 한 번 더 세밀하게 수정할 예정이다. spring.datasource.url=j..
1. Git clone 할 주소 복사. 2. STS4(eclipse) 에Git clone 주소 붙여 넣고 확인. 주). 확인 이후 화면에서 remote 소스와 연결 될 local 레파지토리를 지정한다. 3. Git clone이 완료 된후 해당 레파지토리에 마우스 우측 클릭 메뉴의 Import Maven projects...을 선택 다음 다음...피니쉬 해서 임포트 하면 완료.
WAS 서버의 timeout 설정 외에 war별? 애플리케이션에 별도 session timeout 설정이 필요한 경우... 1. 스프링 씨큐리티 설정 파일에 로그인 성공 시 후처리용 헨들러를 설정한다. public class WebSecurityConfig extends WebSecurityConfigurerAdapter{ /**로그인성공 후처리용 헨들러 * @return */ private SuccessHandlerImpl successHandler() { return new SuccessHandlerImpl(); } ...생략... @Override protected void configure(HttpSecurity http) throws Exception { http.authorizeRequests..
springboot 후로잭트에 swagger를 설정 하는 방법에 대해 정리 해본다... 먼저 아래와 같이 Maven 설정. io.springfox springfox-swagger2 2.9.2 1. SwaggerConfig.java 작성. swagger를 사용하기 위해 springboot 프로잭트에 설정을 한다. package com.graykang.test.config; import java.util.ArrayList; import java.util.List; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframewor..
백엔드에서 여러내부 서버 측으로 API를 콜 할 경우 간단 하게 요청 하는 방법이 있어 정리 한다. import org.springframework.http.HttpEntity; import org.springframework.http.HttpHeaders; import org.springframework.http.HttpMethod; import org.springframework.http.ResponseEntity; import org.springframework.util.LinkedMultiValueMap; import org.springframework.util.MultiValueMap; import org.springframework.web.client.RestTemplate; public cl..