spring boot security(22)
-
HTML 파일에 Sencha 적용
Sprng boot Security가 적용 안된 경우# spring boot에서 한글깨지는 문제 해결을 위해서 설정# Ext를 참조하기 위해서 적용# Ext.getBody()를 적용하기 위해서 스크립트 보다 먼저 생성되어야 함Sprng boot Security가 적용된 경우에러 발생Refused to execute script from 'http://localhost:{port}/login' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.Understand this errorlogin:17 Uncaught ReferenceError: Ext is not defined at l..
2024.07.13 -
Spring boot Security Custom 화면 설정
화면 추가 태그의 'name' 속성을 기준으로 파라메터 정보를 전달함 'id' 속성은 있어도 작동 안됨# 디렉토리: /src/main/resources/templates# home.html Welcome! Click here to see a greeting. # login.html Invalid username and password. You have been logged out. User Name : Password: # hello.html ..
2024.06.13 -
Spring boot Security DB 연동
DB 연동 객체@Datapublic class Member { private String id; private String name; private String passwd;}@Servicepublic class MemberService { MemberMapper memberMapper; public MemberService(MemberMapper memberMapper) { this.memberMapper = memberMapper; } public List getMemberList() { return memberMapper.getMemberList(); } public Member getMember(String id) { return memberMapper.getMember(id); } p..
2024.06.09 -
Sprng boot Security 적용
pom.xml# dependabct 추가 # thymeleaf 추가 org.springframework.boot spring-boot-starter-thymeleaf # spring security 추가 org.springframework.boot spring-boot-starter-security # spring boot 3.2.5에 포함되어 있음 org.thymeleaf.extras thymeleaf-extras-springsecurity6 3.1.1.RELEASE org.springframework.security spring-security-test test환경설정 추가@Configuration..
2024.05.26