Skip to content

Commit

Permalink
fix : 정적 파일 경로 설정 오류(학생 이메일 비밀번호 수정) (#1101)
Browse files Browse the repository at this point in the history
* fix : 정적파일처리 추가

* chore : 필요없는 주석 삭제
  • Loading branch information
duehee authored Nov 29, 2024
1 parent a3c3ae4 commit d78bb87
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions src/main/java/in/koreatech/koin/global/config/WebConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import org.springframework.web.method.support.HandlerMethodArgumentResolver;
import org.springframework.web.servlet.config.annotation.CorsRegistry;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

import in.koreatech.koin.domain.bus.controller.BusStationEnumConverter;
Expand Down Expand Up @@ -78,4 +79,10 @@ public void addCorsMappings(CorsRegistry registry) {
.allowCredentials(true)
.maxAge(3600);
}

@Override
public void addResourceHandlers(ResourceHandlerRegistry registry) {
registry.addResourceHandler("/static/**")
.addResourceLocations("classpath:/static/");
}
}
4 changes: 2 additions & 2 deletions src/main/resources/mail/change_password_config.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
</tr>
</table>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="/js/sha256.min.js"></script>
<script src="/js/password.check.js"></script>
<script src="/static/js/sha256.min.js"></script>
<script src="/static/js/password.check.js"></script>
</body>
</html>

0 comments on commit d78bb87

Please sign in to comment.