spring.otter-manager-alarm.xml Maven / Gradle / Ivy
The newest version!
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tx="http://www.springframework.org/schema/tx" xmlns:aop="http://www.springframework.org/schema/aop" xmlns:lang="http://www.springframework.org/schema/lang" xmlns:context="http://www.springframework.org/schema/context" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd http://www.springframework.org/schema/lang http://www.springframework.org/schema/lang/spring-lang-2.0.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd" default-autowire="byName"> <bean id="mailSender" class="org.springframework.mail.javamail.JavaMailSenderImpl"> <property name="host" value="${otter.manager.monitor.email.host}" /> <property name="username" value="${otter.manager.monitor.email.username}" /> <property name="password" value="${otter.manager.monitor.email.password}" /> <property name="defaultEncoding" value="UTF-8" /> <property name="javaMailProperties"> <props> <prop key="mail.smtp.auth">true</prop> <prop key="mail.smtp.timeout">25000</prop> <prop key="mail.smtp.port">${otter.manager.monitor.email.stmp.port:465}</prop> <prop key="mail.smtp.socketFactory.port">${otter.manager.monitor.email.stmp.port:465}</prop> <prop key="mail.smtp.socketFactory.fallback">false</prop> <prop key="mail.smtp.socketFactory.class">javax.net.ssl.SSLSocketFactory</prop> </props> </property> </bean> <bean id="alarmService" class="com.alibaba.otter.manager.biz.common.alarm.DefaultAlarmService"> <property name="mailSender" ref="mailSender" /> <property name="username" value="${otter.manager.monitor.email.username}" /> </bean> </beans>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy