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
- Javascript
- 명령어
- isNotEmpty
- spring
- zset
- datagrip
- DBMS
- SQL
- oracle
- MariaDB
- PostgreSQL
- Python
- mssql
- analytics4
- github
- java
- Kibana
- pandas
- Linux
- 티스토리챌린지
- docker
- iBatis
- 자바
- IntelliJ
- mysql
- 호이스팅
- git
- 오블완
- 리눅스
- error
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 |