package service;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.stereotype.Service;
import controller.DrugController;
import mapper.DrugMapper;
import pojo.Drug;
@Service("drugService")
public class DrugServiceImpl implements DrugService{
private Logger logger=Logger.getLogger(DrugController.class);
@Override
public List<Drug> queryList() {
ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
SqlSessionFactory sessionFactory =(SqlSessionFactory) context.getBean("sqlSessionFactory");
SqlSession session = sessionFactory.openSession();
System.out.println("session:======"+session);
DrugMapper drugMapper =session.getMapper(DrugMapper.class);
return drugMapper.qureDrugList();
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
ssm框架+echart報表
共68个文件
jar:29个
xml:10个
java:6个
2星 需积分: 19 40 下载量 185 浏览量
2017-11-12
04:10:09
上传
评论 1
收藏 10.05MB RAR 举报
温馨提示
我和朋友花了一個晚上弄得,查了很多資料,將json字符串轉換稱json對象,還有ajax怎麽獲取list轉換的json字符串。最後生成圖表
资源推荐
资源详情
资源评论
收起资源包目录
ssm+echarts整合.rar (68个子文件)
ssm+echarts整合
ww.sql 1KB
echartDemo
log.log 0B
WebContent
META-INF
MANIFEST.MF 39B
line.jsp 2KB
WEB-INF
web.xml 3KB
lib
spring-beans-3.2.13.RELEASE.jar 600KB
jboss-logging-3.1.0.CR2.jar 59KB
validation-api-1.0.0.GA.jar 46KB
aspectjweaver-1.6.9.jar 1.59MB
aopalliance-1.0.jar 4KB
hibernate-validator-4.3.2.Final.jar 474KB
standard.jar 384KB
gson-2.6.2.jar 224KB
spring-context-3.2.13.RELEASE.jar 848KB
spring-expression-3.2.13.RELEASE.jar 192KB
fastjson-1.2.13-sources.jar 255KB
mybatis-spring-1.2.0.jar 48KB
spring-webmvc-3.2.13.RELEASE.jar 626KB
spring-aop-3.2.13.RELEASE.jar 331KB
commons-logging-1.1.1.jar 59KB
commons-lang-2.6.jar 278KB
jstl.jar 20KB
spring-core-3.2.13.RELEASE.jar 865KB
mybatis-3.2.2.jar 683KB
mysql-connector-java-5.1.25-bin.jar 829KB
commons-pool.jar 61KB
commons-fileupload-1.2.2.jar 58KB
commons-dbcp.jar 119KB
spring-jdbc-3.2.13.RELEASE.jar 396KB
fastjson-1.2.13.jar 384KB
log4j-1.2.17.jar 478KB
commons-io-2.4.jar 181KB
spring-web-3.2.13.RELEASE.jar 617KB
spring-tx-3.2.13.RELEASE.jar 237KB
js
jquery-1.8.2.min.js 91KB
drug.js 493B
echarts.js 2.42MB
index.jsp 913B
.settings
org.eclipse.wst.jsdt.ui.superType.name 6B
org.eclipse.wst.common.project.facet.core.xml 305B
org.eclipse.wst.common.component 561B
org.eclipse.wst.jsdt.ui.superType.container 49B
.jsdtscope 567B
org.eclipse.jdt.core.prefs 364B
src
jsonDemo
FashJsonDemo.java 67B
pojo
Drug.java 501B
mapper
DrugMapper.java 186B
DrugMapper.xml 812B
controller
DrugController.java 1KB
service
DrugServiceImpl.java 1KB
DrugService.java 175B
.project 1KB
resource
mybatis-config.xml 357B
log4j.properties 2KB
springmvc-servlet.xml 2KB
applicationContext.xml 3KB
.classpath 1KB
build
classes
mybatis-config.xml 357B
jsonDemo
FashJsonDemo.class 279B
log4j.properties 2KB
pojo
Drug.class 953B
mapper
DrugMapper.class 206B
DrugMapper.xml 812B
springmvc-servlet.xml 2KB
controller
DrugController.class 2KB
service
DrugService.class 206B
DrugServiceImpl.class 2KB
applicationContext.xml 3KB
共 68 条
- 1
资源评论
- a24sd2017-11-17试试。。。。。
juujj
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功