GeezerVison is showing github.com — chore: Remove rest settings from java app properties (#3155) · luodinglin/feast@e4c8980
File tree
Expand file treeCollapse file tree
Open diff view settings
java/serving/src/main/java/feast/serving/service/config
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: java/serving/src/main/java/feast/serving/service/config/ApplicationProperties.java -13Lines changed: 0 additions & 13 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -38,7 +38,6 @@ public class ApplicationProperties { |
38 | 38 | private static final Logger log = org.slf4j.LoggerFactory.getLogger(ApplicationProperties.class); |
39 | 39 | private FeastProperties feast; |
40 | 40 | private GrpcServer grpc; |
41 | | - private RestServer rest; |
42 | 41 |
|
43 | 42 | public FeastProperties getFeast() { |
44 | 43 | return feast; |
@@ -331,18 +330,6 @@ public void setServer(Server server) { |
331 | 330 | } |
332 | 331 | } |
333 | 332 |
|
334 | | - public static class RestServer { |
335 | | - private Server server; |
336 | | - |
337 | | - public Server getServer() { |
338 | | - return server; |
339 | | - } |
340 | | - |
341 | | - public void setServer(Server server) { |
342 | | - this.server = server; |
343 | | - } |
344 | | - } |
345 | | - |
346 | 333 | /** Trace metric collection properties */ |
347 | 334 | public static class TracingProperties { |
348 | 335 |
|
|
Collapse file
Copy file name to clipboardExpand all lines: java/serving/src/main/java/feast/serving/service/config/ApplicationPropertiesModule.java +2Lines changed: 2 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
16 | 16 | */ |
17 | 17 | package feast.serving.service.config; |
18 | 18 |
|
| 19 | +import com.fasterxml.jackson.databind.DeserializationFeature; |
19 | 20 | import com.fasterxml.jackson.databind.ObjectMapper; |
20 | 21 | import com.fasterxml.jackson.databind.ObjectReader; |
21 | 22 | import com.fasterxml.jackson.dataformat.yaml.YAMLFactory; |
@@ -40,6 +41,7 @@ public ApplicationProperties provideApplicationProperties() throws IOException { |
40 | 41 | ObjectMapper mapper = new ObjectMapper(new YAMLFactory()); |
41 | 42 | mapper.findAndRegisterModules(); |
42 | 43 | mapper.setDefaultMergeable(Boolean.TRUE); |
| 44 | + mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); |
43 | 45 |
|
44 | 46 | ApplicationProperties properties = new ApplicationProperties(); |
45 | 47 | ObjectReader objectReader = mapper.readerForUpdating(properties); |
|