Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/email/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
SpringMail集成注释_Spring_Email_Annotations - Fatal编程技术网

SpringMail集成注释

SpringMail集成注释,spring,email,annotations,Spring,Email,Annotations,我在Spring中找到了一个电子邮件轮询器的xml配置,想知道java注释的等效功能是什么: <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="ht

我在Spring中找到了一个电子邮件轮询器的xml配置,想知道java注释的等效功能是什么:

    <?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
                http://www.springframework.org/schema/integration http://www.springframework.org/schema/integration/spring-integration.xsd
                http://www.springframework.org/schema/integration/mail http://www.springframework.org/schema/integration/mail/spring-integration-mail.xsd
                http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd"
        xmlns:int="http://www.springframework.org/schema/integration"
        xmlns:int-mail="http://www.springframework.org/schema/integration/mail"
        xmlns:util="http://www.springframework.org/schema/util">

        <int:channel id="receiveChannel" />
        <!-- replace 'userid and 'password' wit the real values -->
        <int-mail:inbound-channel-adapter id="pop3ShouldDeleteTrue"
                            store-uri="pop3://username:password@pop.gmail.com/INBOX"
                                    channel="receiveChannel"
                                    should-delete-messages="false"
                                    should-mark-messages-as-read="true"
                                    auto-startup="true"
                                    java-mail-properties="javaMailProperties">
                        <!-- Will poll every 20 seconds -->
                        <int:poller fixed-rate="20000"/>

        </int-mail:inbound-channel-adapter>

        <util:properties id="javaMailProperties">
                <prop key="mail.pop3.socketFactory.fallback">false</prop>
                <prop key="mail.debug">false</prop>
                <prop key="mail.pop3.port">995</prop>
                <prop key="mail.pop3.socketFactory.class">javax.net.ssl.SSLSocketFactory</prop>
                <prop key="mail.pop3.socketFactory.port">995</prop>
        </util:properties>
</beans>

假的
假的
995
javax.net.ssl.SSLSocketFactory
995