// import com.itextpdf.text.pdf 插件
// 就在分页的开始
pdfTable = new PdfPTable(widths);
pdfTable.setWidthPercentage(100);
doc.newPage();
打印pdf
打印excel
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-3.0.xsd" default-autowire="byName">
首先xml文档有格式,而为了spring的配置文件增加的节点能满足要求,合法,所以必须引入校验该xml的格式文件。那么上面你列出来的就是为了格式文件的地址。一个一个地给你解释:
第一个xmlns是关于初始化bean的格式文件地址。
第二个xmlns也是辅助初始化bean.
第三个是关于切面编程。
第四个是关于spring上下文,包括加载资源文件
SELECT CURRENT_DATE FROM DUAL
因为plsql是客户端,SELECT current_date FROM dual获取的是oracle数据库所在机器的时间,不是本地时间。
Tomcat
19.02.22
不跳到service层
// @Autowired 没写
@Autowired
private NYU0030Service nyu0030Service;
19.02.23
程序运行特别慢原来8s现在40s
我的问题在于 action 层里调用了未知的变量(本应该在dao层的 sql 语句中取出),而这个变量实际未在 Dao 层被取出,所以特别慢,不报错(在运行到它时报错),