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 |
Tags
- MariaDB
- 자바
- 명령어
- SQL
- git
- mysql
- MongoDB
- 리눅스
- 오블완
- oracle
- docker
- github
- DBMS
- pandas
- analytics4
- IntelliJ
- 티스토리챌린지
- 호이스팅
- mssql
- JPA
- spring
- Linux
- java
- group by
- PostgreSQL
- 트랜잭션
- Javascript
- 추상클래스
- rsync
- Python
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 |