Skip to content

Commit

Permalink
ch19 ingredient-client depoly war
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrace-git committed Feb 3, 2023
1 parent ed60a2b commit c38a2ab
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions ch19/ingredient/ingredient-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<version>2.7.6</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<packaging>war</packaging>
<groupId>com.example</groupId>
<artifactId>ingredient-client</artifactId>
<version>0.0.1-SNAPSHOT</version>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package com.example.ingredientclient.config;

import com.example.ingredientclient.IngredientClientApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

public class IngredientServiceServletInitializer extends SpringBootServletInitializer {

@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
return builder.sources(IngredientClientApplication.class);
}
}

0 comments on commit c38a2ab

Please sign in to comment.