// 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 層被取出,所以特別慢,不報錯(在運行到它時報錯),