File tree Expand file tree Collapse file tree 2 files changed +8
-12
lines changed
src/main/java/com/pnuema/java/barcode/barcodeapi Expand file tree Collapse file tree 2 files changed +8
-12
lines changed Original file line number Diff line number Diff line change 44import io .swagger .v3 .oas .annotations .servers .Server ;
55import org .springframework .boot .SpringApplication ;
66import org .springframework .boot .autoconfigure .SpringBootApplication ;
7+ import org .springframework .boot .builder .SpringApplicationBuilder ;
8+ import org .springframework .boot .web .servlet .support .SpringBootServletInitializer ;
79import org .springframework .cache .annotation .EnableCaching ;
810import org .springframework .context .annotation .Bean ;
911import org .springframework .web .filter .ShallowEtagHeaderFilter ;
1517})
1618@ SpringBootApplication
1719@ EnableCaching
18- public class BarcodeApiApplication {
20+ public class BarcodeApiApplication extends SpringBootServletInitializer {
1921 public static void main (String [] args ) {
2022 SpringApplication .run (BarcodeApiApplication .class , args );
2123 }
2224
25+ @ Override
26+ protected SpringApplicationBuilder configure (SpringApplicationBuilder application ) {
27+ return application .sources (BarcodeApiApplication .class );
28+ }
29+
2330 @ Bean
2431 public ShallowEtagHeaderFilter shallowEtagHeaderFilter () {
2532 ShallowEtagHeaderFilter filter = new ShallowEtagHeaderFilter ();
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments