1

我正在使用 Wicket-Hibernate-Spring 开发一个应用程序,我使用的是 Wicket 1.5.5。

<repositories>
    <repository>
        <id>googlecode</id>
        <url>http://jqwicket.googlecode.com/svn/m2-repo/releases/</url>
    </repository>
</repositories>
<dependencies>
    <dependency>
        <groupId>org.apache.wicket</groupId>
        <artifactId>wicket-core</artifactId>
        <version>1.5.3</version>
    </dependency>
    <dependency>
        <groupId>org.apache.wicket</groupId>
        <artifactId>wicket-spring</artifactId>
        <version>1.5.3</version>            
    </dependency>
    <dependency>
        <groupId>org.apache.wicket</groupId>
        <artifactId>wicket-extensions</artifactId>
        <version>1.5.3</version>
    </dependency>
    <dependency>
        <groupId>org.apache.wicket</groupId>
        <artifactId>wicket-datetime</artifactId>
        <version>1.5.3</version>
    </dependency>
    <dependency>
        <groupId>com.google.code.jqwicket</groupId>
        <artifactId>jqwicket</artifactId>
        <version>0.8</version>
    </dependency>
</dependencies>

现在 Spring 和 Hibernate 的依赖关系是什么?我想使用每个组件的最新版本(不是测试版)。

4

3 回答 3

4

使用存储库搜索引擎,例如官方的:http ://search.maven.org/

通过搜索“ hibernate-core ”,你会找到 4.1.2 版本:

<dependency>
    <groupId>org.hibernate</groupId>
    <artifactId>hibernate-core</artifactId>
    <version>4.1.2</version>
</dependency>

对于 Spring/Hibernate 集成,搜索“ spring-orm ”:

<dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-orm</artifactId>
    <version>3.1.1.RELEASE</version>
</dependency>
于 2012-04-28T11:59:16.600 回答
2

为了在 wicket 页面中使用 spring bean,您可以添加 wicket-spring 集成依赖项:

    <dependency>
        <groupId>org.apache.wicket</groupId>
        <artifactId>wicket-spring</artifactId>
        <version>1.5.5</version>
    </dependency>

jarwicket-spring-annot已合并到wicket-spring1.4,因此没有必要。

更多信息在这里

于 2012-04-30T10:19:43.693 回答
1

获取 Wicket 和 Spring 依赖项,要集成两者,您需要“wicket-spring.jar”。

<project ..>

<dependencies>

    <!-- Wicket framework-->
    <dependency>
        <groupId>org.apache.wicket</groupId>
        <artifactId>wicket</artifactId>
        <version>1.4.17</version>
    </dependency>

    <!-- Integrate Wicket with Spring -->
    <dependency>
        <groupId>org.apache.wicket</groupId>
        <artifactId>wicket-spring</artifactId>
        <version>1.4.17</version>
    </dependency>

    <!-- Spring framework -->
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-core</artifactId>
        <version>3.0.5.RELEASE</version>
    </dependency>

    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-context</artifactId>
        <version>3.0.5.RELEASE</version>
    </dependency>

    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-web</artifactId>
        <version>3.0.5.RELEASE</version>
    </dependency>

    <!-- slf4j-log4j -->
    <dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>slf4j-log4j12</artifactId>
        <version>1.5.6</version>
    </dependency>

</dependencies>

</project>
于 2012-12-26T10:36:55.247 回答