Code commit for moving out package to specific name as per article
This commit is contained in:
+15
@@ -0,0 +1,15 @@
|
||||
package com.baeldung.maxhttpheadersize;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
|
||||
import org.springframework.context.annotation.ComponentScan;
|
||||
|
||||
@EnableAutoConfiguration
|
||||
@ComponentScan("com.baeldung.maxhttpheadersize")
|
||||
public class MaxHttpHeaderSizeApplication {
|
||||
|
||||
public static void main(final String[] args) {
|
||||
SpringApplication.run(MaxHttpHeaderSizeApplication.class, args);
|
||||
}
|
||||
|
||||
}
|
||||
+4
-2
@@ -1,11 +1,13 @@
|
||||
package com.baeldung.sampleapp.config;
|
||||
package com.baeldung.maxhttpheadersize.config;
|
||||
|
||||
import org.springframework.context.annotation.ComponentScan;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
|
||||
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
|
||||
|
||||
@Configuration
|
||||
@ComponentScan({ "com.baeldung.sampleapp.web" })
|
||||
@EnableWebMvc
|
||||
@ComponentScan({ "com.baeldung.maxhttpheadersize.*" })
|
||||
public class MaxHTTPHeaderSizeConfig implements WebMvcConfigurer {
|
||||
|
||||
public MaxHTTPHeaderSizeConfig() {
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.baeldung.sampleapp.web.controller;
|
||||
package com.baeldung.maxhttpheadersize.controller;
|
||||
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestHeader;
|
||||
Reference in New Issue
Block a user