日期:2014-05-18  浏览次数:20706 次

在spring 的官网上没找到jar包下载,只有spring tool suit请问怎么获得jar包
本帖最后由 zjlgdxzzw 于 2013-03-20 13:25:14 编辑
下载了spring tool suit
有5个文件夹
1。apache-maven-3.0.4  maven工具
2.legal 一些证书
3.spring-roo-1.2.3.RELEASE  一个cmd命令工具
4.sts-3.2.0.RELEASE 是一个类似eclipse 的ide工具
5.vfabric-tc-server-developer-2.8.2.RELEASE 这个是vmware的虚拟环境什么的
我要怎么建立一个含有基本spring功能的项目 ioc 事物控制 aop
spring

------解决方案--------------------
<!-- sessionfactory配置 -->
     <bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
      <property name="configLocation">
      <value>classpath:hibernate.cfg.xml</value>
      </property>
     </bean>
     
    <!-- txManager配置 -->
     <bean id="txManage" class="org.springframework.orm.hibernate3.HibernateTransactionManager">
      <property name="sessionFactory" ref="sessionFactory"></property>
     </bean>
     
     <!-- 定义事务通知 -->
     <tx:advice id="txAdvice" transaction-manager="txManage">
      <tx:attributes>
      <tx:method name="*" propagation="REQUIRED"/>
      </tx:attributes> 
     </tx:advice>
     
     <aop:config>
      <aop:pointcut expression="execution(* com.ywt.service..*.*(..))" id="serverMethod"/>
      <aop:advisor advice-ref="txAdvice" pointcut-ref="serverMethod"/>
     </aop:config>
------解决方案--------------------
楼主把分留下