I often use the IDE is Eclipse, busy to study the next spring, so try to download a springside learning.
1. Download Springside source code, I downloaded 4.1.0.GA, downloaded to the compressed package: Springside4-4.1.0.ga.zip. Address: Https://github.com/springside/springside4/releases/tag/V4.1.0.GA
2. Unzip the Springside4-4.1.0.ga.zip, after the extracted directory such as:
Among them, the examples directory contains two examples of QuickStart and showcase.
3. Enter Springside4-4.1.0.ga\modules to execute \parent\install.bat, \test \install.bat, \core\install.bat, \extension\ Install.bat, ensure that the four batch files are executed before the local MAVEN library generates Springside-test-4.1.0.ga.jar, Springside-core-4.1.0.ga.jar, Springside-extension-4.1.0.ga.jar ( This step assumes that you have successfully installed Maven locally), such as:
3. Open Eclipse, select File->import->maven->existing Maven Projects, and import showcase into eclipse.
4. After importing the showcase, start under Jetty and report an error: (Refer to http://www.oschina.net/question/782056_71082)
Org.springframework.beans.factory.NoSuchBeanDefinitionException:No Bean named ' memcachedsimulator ' is defined
Modify Applicationcontext-memcached.xml, add production option
[Java] view plaincopy
<beans profile="Development,functional,test,production">
<!--demo jmemcached, simulating memcached server--
<bean id="Memcachedsimulator" class=" Org.springside.modules.test.cache.memcached.MemcachedSimulator " lazy-init="false ">
<property name="ServerURL" value="${memcached.url}" />
</bean>
</beans>
5.SpringSide By default is the H2 database, if you are not the H2 database, you need to modify the database configuration, in MySQL, for example, refer to (http://blog.sina.com.cn/s/blog_6303254c01017f2r.html):
Modified: \showcase\pom.xml
<!--Item Properties--
<properties>
<jdbc.driver.groupId>MySQL</jdbc.driver.groupId>
<jdbc.driver.artifactId>Mysql-connector-java</jdbc.driver.artifactId>
<jdbc.driver.version>5.1.17</jdbc.driver.version>
</properties>
Modified: \showcase\src\main\resources\application.properties
#h2 Database Settings
jdbc.driver=Com.mysql.jdbc.Driver
Jdbc.url=jdbc:mysql://localhost:3306/showcase4?useunicode=true&characterencoding=utf8& Zerodatetimebehavior=converttonull
Jdbc.username=
jdbc.password=
#log4jdbc Driver
#jdbc. Url=jdbc:log4jdbc:h2:file:~/.h2/showcase4; Auto_server=true;db_close_delay=-1
quartz.jdbc.driver=Com.mysql.jdbc.Driver
Quartz.jdbc.url=Jdbc:mysql://localhost:3306/showcase-quartz4?useunicode=true&characterencoding=utf8 &zerodatetimebehavior=converttonull
Quartz.jdbc.username=
quartz.jdbc.password=
6. Create the database locally:showcase4,showcase-quartz4, modify the SQL script provided by showcase to fit the MySQL, import.
7. Starting from jetty, use, complete.
Build the Eclipse Runtime environment for Springside Example Showcase