-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathSimpleCrApplication.java
More file actions
41 lines (25 loc) · 1.17 KB
/
SimpleCrApplication.java
File metadata and controls
41 lines (25 loc) · 1.17 KB
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
31
32
33
34
35
36
37
38
39
40
41
package org.gitlab4j.simplecr;
import org.gitlab4j.simplecr.config.SimpleCrConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.web.servlet.config.annotation.PathMatchConfigurer;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
import org.springframework.web.util.UrlPathHelper;
@SpringBootApplication
@EnableConfigurationProperties(SimpleCrConfiguration.class)
public class SimpleCrApplication implements WebMvcConfigurer {
public static void main(String[] args) {
// Set up the embedded Tomcat to allow for encoded slashes in the URLs
System.setProperty("org.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH", "true");
SpringApplication.run(SimpleCrApplication.class, args);
}
/**/
/**/
@Override
public void configurePathMatch(PathMatchConfigurer configurer) {
UrlPathHelper urlPathHelper = new UrlPathHelper();
urlPathHelper.setUrlDecode(false);
configurer.setUrlPathHelper(urlPathHelper);
}
}