Code commit for moving out package to specific name as per article

This commit is contained in:
Bhabani Prasad Patel
2021-06-14 08:34:16 +05:30
parent 44932b2cbe
commit 35e56303d3
5 changed files with 33 additions and 17 deletions
@@ -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);
}
}
@@ -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,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;