spring-integration-mail maven依赖项

时间:2018-05-02 14:17:27

标签: spring-integration

我遇到传递依赖问题 - javax.mail包。

是否有资源使用spring-integration-mail查看设置maven项目的正确样本?

我的pom看起来像:

<dependencies>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-integration</artifactId>
    </dependency>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-mail</artifactId>
    </dependency>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-test</artifactId>
        <scope>test</scope>
    </dependency>
</dependencies>

1 个答案:

答案 0 :(得分:1)

嗯,Spring Boot默认情况下不会提取Spring Integration模块,只有<dependency> <groupId>org.springframework.integration</groupId> <artifactId>spring-integration-mail</artifactId> </dependency>

你肯定需要添加:

$login_stmt->bind_param('ss', $account, $account);