Build the Eclipse Runtime environment for Springside Example Showcase

Source: Internet
Author: User

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

    1. <beans profile="Development,functional,test,production">

    2. <!--demo jmemcached, simulating memcached server--

    3. <bean id="Memcachedsimulator" class=" Org.springside.modules.test.cache.memcached.MemcachedSimulator " lazy-init="false ">

    4. <property name="ServerURL" value="${memcached.url}" />

    5. </bean>

    6. </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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.