Commit: e6d1548
Commit Details
| SHA | e6d1548c463d8763fb5547ff07a35c521f15c296 |
|---|---|
| Tree | 2d2b62527861022ccf13eb205ea2bf7c0e4013fd |
| Author | <f69e50@finnacloud.com> 1766442769 +0300 |
| Committer | <f69e50@finnacloud.com> 1766442769 +0300 |
| Message | add initial test workflow file |
| GPG Signature | -----BEGIN PGP SIGNATURE----- iQJSBAABCAA8FiEEWJb139mJI+vZ81KkoAIVSUsXI0oFAmlJxxEeHHNvcGhpYS5l cmFzbGFuQGZpbm5hY2xvdWQuY29tAAoJEKACFUlLFyNKb7YP/2QctdaPuHu4+vFn fh0Opgqt1brKy9JQxV9JZ9tF5XA+rWVi6pyIZK4lywX+a4er+h29sQY7TEHZt9Xn meAyRUhPbRPmIpRJMMCgstfILUpjNMkMcPE80kJfpp6+ZmLtO8vC4TnW3ATCK1tv XISV00T4ajCAhZUmYTveNsvSiMMv/Tq4sF9Is4ix+JN7O/lSLseRtuUE1Vv7T7nY citxLPwR42Eb/1CYhy0JbRYXP816cbe6dGeDeiDZp7EHKx5D8VAqULKRsAL19tSX hup8N7owBXieuzNQ4RyaDfDJAfNoN3o9pFeD6vQPq8s7x6AloN625g58p0ssxfK+ CGhR0YHR7atR0pEens22p7g2dVJ7NsrKqDBE3TTeUOpfXfjOwqpVh1Bn/v7a2Vg9 o9mhIClSOLfYv2SXJ06+fn8l6oc70nLJkBfcTevmeF//Z9yGH7TXZNUcedxuBbFg xfEHeJibTamiE3Z1SfHW1YLwe7QqbBogCIxq4RrpYtN15a65vT5HxyLHDJDGG20V 7z34QJhKXIni/AIGscZqx2kE/C42KSD2fBvqvA4YnPwEUQyMvnSSDSKuJ6flXPTv RsPZMdNsWWWyJ8P/NTo0Y/PPwA/28p9pX064H2lHFNvSEzUYJdKyQXNV3pGWYAvc PR8Z+nHfbK/EF5jOVJ8+erXzzXUN =COmA -----END PGP SIGNATURE----- ✓ Verified |
File: src/main/java/com/paymentlink/config/WebConfig.java
| 1 | package com.paymentlink.config; |
| 2 | |
| 3 | import org.springframework.context.annotation.Bean; |
| 4 | import org.springframework.context.annotation.Configuration; |
| 5 | import org.springframework.scheduling.annotation.EnableScheduling; |
| 6 | import org.springframework.web.client.RestTemplate; |
| 7 | import org.springframework.web.servlet.config.annotation.InterceptorRegistry; |
| 8 | import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; |
| 9 | |
| 10 | |
| 11 | |
| 12 | public class WebConfig implements WebMvcConfigurer { |
| 13 | |
| 14 | private final LocalizationInterceptor localizationInterceptor; |
| 15 | |
| 16 | public WebConfig(LocalizationInterceptor localizationInterceptor) { |
| 17 | this.localizationInterceptor = localizationInterceptor; |
| 18 | } |
| 19 | |
| 20 | |
| 21 | public void addInterceptors(InterceptorRegistry registry) { |
| 22 | registry.addInterceptor(localizationInterceptor) |
| 23 | .addPathPatterns("/**") |
| 24 | .excludePathPatterns( |
| 25 | "/static/**", |
| 26 | "/css/**", |
| 27 | "/js/**", |
| 28 | "/images/**", |
| 29 | "/favicon.ico", |
| 30 | "/error" |
| 31 | ); |
| 32 | } |
| 33 | |
| 34 | |
| 35 | public RestTemplate restTemplate() { |
| 36 | return new RestTemplate(); |
| 37 | } |
| 38 | } |
| 39 |