Commit: 188fc92
Commit Details
| SHA | 188fc92ac938e5ecdaaba64fb6d1dbffeba30181 |
|---|---|
| Tree | 2cc04755c4f7f8be29aafd7e581f1f25e14edd58 |
| Author | <f69e50@finnacloud.com> 1766442998 +0300 |
| Committer | <f69e50@finnacloud.com> 1766442998 +0300 |
| Message | increment |
| GPG Signature | -----BEGIN PGP SIGNATURE----- iQJSBAABCAA8FiEEWJb139mJI+vZ81KkoAIVSUsXI0oFAmlJx/YeHHNvcGhpYS5l cmFzbGFuQGZpbm5hY2xvdWQuY29tAAoJEKACFUlLFyNKyF8P/j6F8McjkGTBhDFX frSY0CqkszvNegnZnDj4AkVjoJl7AK0RY0KLLQxrRUJq/MIA/FPj9G7df9jUJcae TS+tvTZzWOXZ3EXomyNPangFgm5yAgmelwJYgeQdTmzIY3miM8/BdQg10GNC6Fjq iEn6PKkpkItfiy+vftAABqe73SI9Vn6nwkUn2zVEsXBX1Kmv/ya9auodjFegvcbz pRx5BL3xNYaA57c8WG9Fx+XaQPdaeLMcu/kM8diY0XTWqtdR+OfrPlU2JOApB0yO G4P6zG6h5w2XWCqtbqfszDt94drbArJ9cQbWLlgbiNjpK+qJVvG+HGXxPGgvzLA3 9HhZxzUJobkt0MycngmZryj25b6kdO6OA5BCBCjdMkHjIvmBpLXYD5y5uYnerR0n YEDyB5noRAiYbb2Skg1dp9dpNxq5LF1WkJpWM+nCXlOU6jKj3ucOJ7JP2+gVWA7N jFdEUIfX65Q9CcBQqQX1vWyGJCc/Z0sNGE0Dc06PrpPk/U10oFNZOdCbUNEWU4Pk yqATdaAI1BdvZjAip6QQ/jtIuHkwigAk9uUp21VlZ1NnXXLixmA53y12fi8f3DnB yl55qYeoTOyEg5N7k1ukOt5rgoJ28szscEwvYmwL56uDtlrXly/vrSNrMi322aJK IJeozLKMpf6Q9A3vN000vGTA6VjP =Whh7 -----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 |