Setting Up ZK Spring"
From Documentation
(13 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ZKSpringEssentialsPageHeader}} | {{ZKSpringEssentialsPageHeader}} | ||
− | |||
− | |||
− | + | Follow the simple steps below to start using ZK Spring library. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | ===Installing | + | =Prerequisites= |
− | * | + | * [http://www.zkoss.org/download/zk.dsp Download the latest ZK release] |
− | * | + | * [https://github.com/spring-projects/spring-framework/releases Download supported Spring framework release]. |
+ | *: Current ZK Spring only supports Spring framework 3.1 or above. | ||
+ | * [http://www.zkoss.org/download/zkspring.dsp Download the latest ZK Spring release] | ||
+ | |||
+ | =Installing ZK Spring to Your Project= | ||
+ | * Copy downloaded ZK, Spring, and ZK Spring jar files into your web application's WEB-INF/lib or put them on your web application classpath. | ||
+ | * Because ZK Spring depends on ZK, please follow [[ZK Installation Guide/Quick Start/Create and Run Your First ZK Application Manually]] to setup ZK first. | ||
+ | * In addition, you also need to declare Spring ContextLoaderListener in the '''web.xml''' to be able to declare and register your Spring beans with Spring framework. | ||
<source lang="xml"> | <source lang="xml"> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<listener> | <listener> | ||
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> | <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> | ||
</listener> | </listener> | ||
+ | |||
</source> | </source> | ||
− | + | ||
− | {{ | + | {{ZKSpringEssentialsPageFooter}} |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Latest revision as of 09:30, 2 February 2023
Follow the simple steps below to start using ZK Spring library.
Prerequisites
- Download the latest ZK release
- Download supported Spring framework release.
- Current ZK Spring only supports Spring framework 3.1 or above.
- Download the latest ZK Spring release
Installing ZK Spring to Your Project
- Copy downloaded ZK, Spring, and ZK Spring jar files into your web application's WEB-INF/lib or put them on your web application classpath.
- Because ZK Spring depends on ZK, please follow ZK Installation Guide/Quick Start/Create and Run Your First ZK Application Manually to setup ZK first.
- In addition, you also need to declare Spring ContextLoaderListener in the web.xml to be able to declare and register your Spring beans with Spring framework.
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>