Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- pem
- isNotEmpty
- 자바
- SQL
- 404error
- Python
- docker
- Javascript
- pandas
- java
- github
- iBatis
- PostgreSQL
- IntelliJ
- analytics4
- springboot
- 호이스팅
- 오블완
- mysql
- mssql
- DBMS
- 티스토리챌린지
- Kibana
- 리눅스
- git
- 명령어
- Linux
- oracle
- MariaDB
- spring
Archives
- Today
- Total
hanker
Spring - Security Static 경로 인증 무시(403 Error) 본문
반응형
Security 설정파일에 추가하면 밑의 코드를 추가하면
@Override
public void configure(WebSecurity webSecurity) throws Exception{
webSecurity.ignoring()
.requestMatchers(PathRequest.toStaticResources().atCommonLocations());
}
밑에 설정된 경로대로 static/ 하위폴더들 무시
반응형
'SPRING' 카테고리의 다른 글
Spring boot - boot 실행 시 sql 문 실행 (0) | 2021.08.23 |
---|---|
Spring JPA - referencedColumnName (feat. @JoinColumn) (0) | 2021.05.27 |
Spring boot - HTML 입력값 검사 ( Valid example ) (0) | 2021.04.30 |
Spring - Thymeleaf 경로 설정 (templates) (0) | 2021.04.27 |
Spring boot - Log 사용 (0) | 2021.04.26 |