File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
src/main/java/com/spring/loader/configuration Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 1- version =2.2.5
1+ version =2.2.6
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ public int getOrder() {
5858 }
5959
6060 @ Override
61- public void postProcessBeanFactory (ConfigurableListableBeanFactory beanFactory ) throws BeansException {
61+ public void postProcessBeanFactory (@ SuppressWarnings ( "unused" ) ConfigurableListableBeanFactory beanFactory ) throws BeansException {
6262 if (this .environment instanceof ConfigurableEnvironment ) {
6363
6464 PropertiesFactoryBean propertiesFactory = new PropertiesFactoryBean ();
@@ -76,6 +76,9 @@ public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory)
7676 properties .load (s3ResourceLoader .getProperty (locations [i ]));
7777 } catch (IOException e ) {
7878 LOGGER .error ("Could not load properties from location " + locations [i ], e );
79+ } catch (Exception e ) {
80+ LOGGER .error ("Error on loading properties from location: " + locations [i ], e );
81+ return ;
7982 }
8083 propertiesToAdd [i ] = properties ;
8184
You can’t perform that action at this time.
0 commit comments