Skip to content

Commit

Permalink
container with 'embedded' mail.smtp.ssl.protocols def (as 'xml' bean)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmangeat committed Feb 8, 2023
1 parent fcf953f commit 2901551
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions web/src/main/webResources/WEB-INF/spring-servlet.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
default-lazy-init="true"
xmlns="http://www.springframework.org/schema/beans"
xmlns:sec="http://www.springframework.org/schema/security"
xmlns:p="http://www.springframework.org/schema/p"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
Expand All @@ -44,6 +45,9 @@

<context:component-scan base-package="org.fao.geonet"/>

<bean class="org.springframework.beans.factory.config.MethodInvokingFactoryBean"
p:targetObject="#{@systemProperties}" p:targetMethod="setProperty"
p:arguments="#{{'mail.smtp.ssl.protocols','TLSv1.2'}}"/>

<bean id="configPath" class="java.lang.String">
<constructor-arg index="0" value="/WEB-INF/"/>
Expand Down

0 comments on commit 2901551

Please sign in to comment.