博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
jap _spring _maven
阅读量:4655 次
发布时间:2019-06-09

本文共 7906 字,大约阅读时间需要 26 分钟。

pom.xm

4.0.0
com.icil.jap
spring-jap
0.0.1-SNAPSHOT
war
5.1.34
4.3.0.RELEASE
5.1.0.Final
4.1.4
org.springframework
spring-beans
${spring.version}
org.springframework
spring-core
${spring.version}
org.springframework
spring-context-support
${spring.version}
org.springframework
spring-context
${spring.version}
org.springframework
spring-jdbc
${spring.version}
org.springframework
spring-orm
${spring.version}
org.springframework
spring-tx
${spring.version}
org.springframework
spring-web
${spring.version}
org.springframework
spring-test
${spring.version}
org.springframework
spring-webmvc
${spring.version}
com.mchange
c3p0
0.9.5.2
net.sf.ehcache
ehcache-core
2.6.11
org.springframework.data
spring-data-jpa
1.10.4.RELEASE
org.hibernate
hibernate-core
${hibernate.version}
org.hibernate
hibernate-entitymanager
${hibernate.version}
org.hibernate
hibernate-ehcache
${hibernate.version}
org.hibernate
hibernate-c3p0
${hibernate.version}
mysql
mysql-connector-java
${mysql.version}
org.slf4j
slf4j-api
1.7.7
org.slf4j
jcl-over-slf4j
1.7.7
ch.qos.logback
logback-core
1.1.2
ch.qos.logback
logback-classic
1.1.2
junit
junit
4.12
test
org.apache.commons
commons-lang3
3.3.2
javax.servlet
jstl
1.2
testjpa
com.mysema.maven
apt-maven-plugin
1.1.3
process
target/generated-sources/java
com.querydsl.apt.jpa.JPAAnnotationProcessor
org.apache.maven.plugins
maven-compiler-plugin
1.8
1.8
View Code

applicationContent.xml

true
true
update
View Code

ehcache.xml 

-->
View Code

db.properties

jdbc.user=rootjdbc.password=1111jdbc.driverClass=com.mysql.jdbc.Driverjdbc.jdbcUrl=jdbc:mysql:///Sea01
View Code

test

package com.icil.test;import org.junit.Test;import org.springframework.context.ApplicationContext;import org.springframework.context.support.ClassPathXmlApplicationContext;import com.icil.Service.CustomerService;import com.icil.entity.Customer;public class junitTest {        private ApplicationContext app=null;       {            app=  new ClassPathXmlApplicationContext("classpath:config/applicationContent.xml");        }                      @Test      public void testCustomer(){           CustomerService      customerService = app.getBean(CustomerService.class);            Customer customer1 = new Customer("V1", 21);            Customer customer2= new Customer( "v2", 22);                  customerService.save(customer1, customer2);      }                   @Test      public  void   testFindByName(){         String  name="QQ";          CustomerService      customerService = app.getBean(CustomerService.class);          Customer customer = customerService.findCustomerByname(name);          System.out.println(customer);      }             @Test     public void testDeleteById(){         Integer id=36;          CustomerService      customerService = app.getBean(CustomerService.class);          customerService.deleteById(id);               }        }
View Code

 

 

转载于:https://www.cnblogs.com/lshan/p/8664747.html

你可能感兴趣的文章
WPF图标拾取器
查看>>
通过取父级for循环的i来理解闭包,iife,匿名函数
查看>>
HDU 3374 String Problem
查看>>
数据集
查看>>
[Leetcode] unique paths ii 独特路径
查看>>
HDU 1217 Arbitrage (Floyd + SPFA判环)
查看>>
IntelliJ idea学习资源
查看>>
Django Rest Framework -解析器
查看>>
ExtJs 分组表格控件----监听
查看>>
Hibernate二级缓存配置
查看>>
LoadRunner常用术语
查看>>
关于jedis2.4以上版本的连接池配置,及工具类
查看>>
记忆讲师石伟华微信公众号2017所有文章汇总(待更新)
查看>>
FactoryBean
查看>>
Coolite动态加载CheckboxGroup,无法在后台中获取
查看>>
C3P0连接池工具类使用
查看>>
SVN常用命令备注
查看>>
孩子教育
查看>>
解决Cacti监控图像断断续续问题
查看>>
结构体的传参理解成员的存储方式
查看>>