0

我在 30 分钟内看到Jodd并下载了示例。

但是当我运行项目时,tomcat控制台

806 [ERROR] j.j.c.DefaultAppCore.start:278 - java.lang.UnsupportedOperationException: Please provide ConnectionProvider implementation.
java.lang.UnsupportedOperationException: Please provide ConnectionProvider implementation.
    at jodd.joy.core.DefaultAppCore.createConnectionProvider(DefaultAppCore.java:612)
    at jodd.joy.core.DefaultAppCore.startDb(DefaultAppCore.java:562)
    at jodd.joy.core.DefaultAppCore.start(DefaultAppCore.java:272)
    at jodd.joy.core.DefaultWebApplication.initWebApplication(DefaultWebApplication.java:57)
    at jodd.madvoc.Madvoc.start(Madvoc.java:205)
    at jodd.madvoc.Madvoc.startNewWebApplication(Madvoc.java:180)
    at jodd.madvoc.MadvocContextListener.contextInitialized(MadvocContextListener.java:49)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4738)

我用eclipse maven mysql

我导入 mysql jdbc 和 jodd db。

我不知道缺少什么或我的错误在哪里?</p>

我的 pom.xml :

    <dependencies>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>3.8.1</version>
            <scope>test</scope>
        </dependency>


        <!-- https://mvnrepository.com/artifact/org.jodd/jodd-joy -->
        <dependency>
            <groupId>org.jodd</groupId>
            <artifactId>jodd-joy</artifactId>
            <version>3.7.1</version>
        </dependency>

        <!-- https://mvnrepository.com/artifact/org.jodd/jodd-bean -->
        <dependency>
            <groupId>org.jodd</groupId>
            <artifactId>jodd-bean</artifactId>
            <version>3.7.1</version>
        </dependency>
        <!-- https://mvnrepository.com/artifact/org.jodd/jodd-http -->
        <dependency>
            <groupId>org.jodd</groupId>
            <artifactId>jodd-http</artifactId>
            <version>3.7.1</version>
        </dependency>


        <!-- https://mvnrepository.com/artifact/mysql/mysql-connector-java -->
        <dependency>
            <groupId>mysql</groupId>
            <artifactId>mysql-connector-java</artifactId>
            <version>5.1.39</version>
        </dependency>

    </dependencies>
4

1 回答 1

0

请尝试使用 Jodd 3.7.0

出于某种原因,我们的 provider 的实现没有与 3.7.1 捆绑在一起。它将在下一个版本中返回。

或者只是从这里获取代码

于 2016-07-25T21:04:40.817 回答