package com.hello.test;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import com.hello.domain.Account;
import com.hello.service.AccountService;
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations="classpath:applicationContext.xml")
public class TestSSH {
@Autowired
private AccountService accountService;
@Test
public void test01(){
Account account=new Account();
account.setName("Tom");
account.setMoney(1000);
accountService.register(account);
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
JavaEE spring和Hibernate整合(有hibernate.cfg.xml)
共69个文件
jar:39个
xml:8个
java:6个
需积分: 10 8 下载量 82 浏览量
2016-10-17
22:15:09
上传
评论
收藏 15.99MB ZIP 举报
温馨提示
JavaEE spring和Hibernate整合(有hibernate.cfg.xml)
资源推荐
资源详情
资源评论
收起资源包目录
Day01_SpringAndHibernate.zip (69个子文件)
Day01_SpringAndHibernate
.project 2KB
.settings
.jsdtscope 500B
org.eclipse.wst.common.component 500B
org.eclipse.jdt.core.prefs 395B
org.eclipse.wst.common.project.facet.core.xml 252B
org.eclipse.wst.jsdt.ui.superType.container 49B
org.eclipse.wst.jsdt.ui.superType.name 6B
.mymetadata 335B
WebRoot
WEB-INF
web.xml 462B
lib
commons-lang3-3.1.jar 308KB
spring-orm-3.2.0.RELEASE.jar 383KB
hibernate-jpa-2.0-api-1.0.1.Final.jar 100KB
ognl-3.0.6.jar 223KB
spring-aop-3.2.0.RELEASE.jar 327KB
spring-core-3.2.0.RELEASE.jar 843KB
backport-util-concurrent.jar 320KB
commons-io-2.0.1.jar 156KB
asm-commons-3.3.jar 37KB
spring-test-3.2.0.RELEASE.jar 441KB
spring-web-3.2.0.RELEASE.jar 610KB
jta-1.1.jar 11KB
javassist-3.12.0.GA.jar 618KB
hibernate3.jar 3.97MB
freemarker-2.3.19.jar 909KB
com.springsource.org.aopalliance-1.0.0.jar 5KB
log4j-1.2.17.jar 478KB
spring-beans-3.2.0.RELEASE.jar 591KB
com.springsource.com.mchange.v2.c3p0-0.9.1.2.jar 603KB
commons-collections-3.1.jar 546KB
spring-jdbc-3.2.0.RELEASE.jar 392KB
spring-context-3.2.0.RELEASE.jar 834KB
dom4j-1.6.1.jar 307KB
spring-tx-3.2.0.RELEASE.jar 235KB
asm-tree-3.3.jar 21KB
commons-logging-1.1.3.jar 61KB
mysql-connector-java-5.0.8-bin.jar 528KB
commons-fileupload-1.3.jar 67KB
slf4j-api-1.6.1.jar 25KB
xwork-core-2.3.15.3.jar 626KB
ehcache-1.5.0.jar 258KB
struts2-core-2.3.15.3.jar 784KB
com.springsource.org.aspectj.weaver-1.6.8.RELEASE.jar 1.57MB
spring-expression-3.2.0.RELEASE.jar 189KB
antlr-2.7.6.jar 433KB
slf4j-log4j12-1.7.2.jar 9KB
asm-3.3.jar 43KB
spring-aspects-3.2.0.RELEASE.jar 68KB
struts2-spring-plugin-2.3.15.3.jar 21KB
classes
com
hello
dao
impl
AccountDaoImpl.class 862B
AccountDao.class 162B
test
TestSSH.class 1KB
domain
Account.class 962B
Account.hbm.xml 464B
service
AccountService.class 178B
impl
AccountServiceImpl.class 759B
applicationContext.xml 3KB
hibernate.cfg.xml 1KB
index.jsp 834B
META-INF
MANIFEST.MF 36B
.myeclipse
src
com
hello
dao
AccountDao.java 133B
impl
AccountDaoImpl.java 476B
test
TestSSH.java 720B
domain
Account.hbm.xml 464B
Account.java 460B
service
AccountService.java 145B
impl
AccountServiceImpl.java 414B
applicationContext.xml 3KB
hibernate.cfg.xml 1KB
.classpath 607B
共 69 条
- 1
资源评论
喂-不吃素的熊宝宝
- 粉丝: 258
- 资源: 54
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功