본문 바로가기
반응형

스프링부트3

spring boot login 중복 로그인 방지 저번 spring boot의 기본 로그인을 구현했다. spring boot 로그인 (+spring security, mysql) spring boot 로그인 (+spring security, mysql) springSecurity 사용 pom.xml 에 아래와 같이 security 설정 추가 org.springframework.boot spring-boot-starter-security {프로젝트이름}Application.java 가 존재하는 폴더에 config folder 생성 + securityConfig.java 생성 demo.config.Se hoonzi-text.tistory.com 이전 로그인 코드에 중복 로그인 방지를 추가해보자. 중복 로그인 방지 로직을 넣기 위해 기본 로그인 페이지가 아닌.. 2023. 5. 28.
spring boot 로그인 (+spring security, mysql) springSecurity 사용 pom.xml 에 아래와 같이 security 설정 추가 org.springframework.boot spring-boot-starter-security {프로젝트이름} Application.java 가 존재하는 폴더에 config folder 생성 + securityConfig.java 생성 demo.config.SecurityConfig에 기본적인 코드 추가 @Configuration public class SecurityConfig{ @Bean public SecurityFilterChain filterChain(HttpSecurity http) throws Exception { http.csrf().disable() .cors().disable() .authoriz.. 2023. 5. 28.
SpringBoot에서 JSP사용 시 설정 springboot starter로 프로젝트 생성 때마다 jsp 설정 어떻게 했었는지 기억하기 위해 메모 1. 폴더 생성 src/main/webapp/webapp/WEB-INF/views/ 폴더 생성 2. application.properties 파일에 해당 내용 추가 spring.mvc.view.prefix=/WEB-INF/views/ spring.mvc.view.suffix=.jsp 3.pom.xml 에 해당 내용 추가 org.apache.tomcat.embed tomcat-embed-jasper javax.servlet javax.servlet-api 3.0.1 javax.servlet.jsp jsp-api 2.1 javax.servlet jstl 1.2 4. 윈도우 기준 configurations.. 2022. 11. 10.
반응형