freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

軟件工程畢業(yè)設(shè)計(jì)-產(chǎn)品手冊(cè)優(yōu)化平臺(tái)的設(shè)計(jì)(編輯修改稿)

2025-01-06 19:28 本頁面
 

【文章內(nèi)容簡(jiǎn)介】 計(jì)說明書 12 5 技術(shù)要點(diǎn)與難點(diǎn) 設(shè)計(jì)思想及分層結(jié)構(gòu) 本項(xiàng)目開發(fā)采用的是 MVC 的分層結(jié)構(gòu)方法。 MVC 模式是一種復(fù)合設(shè)計(jì)模式,一種在特定場(chǎng)合用于解決某種 實(shí)際問題來得出的可以反復(fù)實(shí)踐的解決方案。巧合的是他也有三個(gè)事物組成,于是乎人們就有了一種想當(dāng)然的對(duì)應(yīng)關(guān)系:展示層 View;業(yè)務(wù)邏輯層 Control;持久層 Model。首先 MVC 中的三個(gè)事物之間并不存在明顯的層次結(jié)構(gòu),沒有明顯的向下依賴關(guān)系,相反的, View 和 Model 往往是比較獨(dú)立的,而 Control 是連接兩者的橋梁,他們更像是橫向的切分。這樣一來就出現(xiàn)一個(gè)結(jié)果, MVC 中每個(gè)塊都是可以獨(dú)立測(cè)試的,而三層結(jié)構(gòu)中,上層模塊的運(yùn)行測(cè)試勢(shì)必要提供下層代碼或者提供相同接口的樁。相對(duì)來說, MVC 復(fù)雜得多,但是結(jié)構(gòu) 更清晰,耦合性更低。 。 圖 51 代碼結(jié)構(gòu)分層 主要分層的 介紹 : 1. DB 對(duì)鏈接數(shù)據(jù)庫的封裝,主要實(shí)現(xiàn)數(shù)據(jù)庫的鏈接和釋放。 2. filter 過濾器,主要進(jìn)行權(quán)限管理。 3. json 主要是進(jìn)行對(duì)象封裝成 json 或 json 轉(zhuǎn)換成對(duì)象 4. pojo 表對(duì)應(yīng)的對(duì)象,有助于封裝數(shù)據(jù)庫。 5. SystemData 系統(tǒng)初始化數(shù)據(jù)的獲取,封裝了界面上選項(xiàng)的動(dòng)態(tài)配置 福建農(nóng)林大學(xué)本科畢業(yè)設(shè)計(jì)說明書 13 6. Tool 工具層,提供各種工具類??梢赃M(jìn)行快速開發(fā),減少重復(fù)代碼。 7. dao 對(duì)象數(shù)據(jù)操作層 word 轉(zhuǎn)換成 html 把 word 轉(zhuǎn)換成 html,在轉(zhuǎn)換的過 程中很容易造成格式發(fā)生變化的問題。我們看到 word會(huì)看到 word 另存為中有轉(zhuǎn)換成 html 的選項(xiàng)。因此最好是可以通過代碼調(diào)動(dòng)系統(tǒng)的 word轉(zhuǎn)換 html 的實(shí)現(xiàn)的方法。可以保證轉(zhuǎn)換的結(jié)果是簡(jiǎn)潔的,不會(huì)有格式上的問題。上網(wǎng)查找,發(fā)現(xiàn) Jacob 可能符合該要求。 JACOB is a JAVACOM Bridge that allows you to call COM Automation ponents from Java. It uses JNI to make native calls into the COM and Win32 libraries. The JACOB project started in 1999 and is being actively used by thousands of developers worldwide. As an opensource project, it has benefitted from the bined experience of these users, many of whom have made modifications to the code and submitted them back for inclusion in the project. 上面官網(wǎng)介紹可知, jacob 調(diào)用的就是本地安裝的 word,這樣就要求服務(wù)器也要安裝word,否則系統(tǒng)無法正常運(yùn)行。 抓取 word 的文檔結(jié)構(gòu) 在瀏覽的時(shí)候用戶肯定希望有文檔的結(jié)構(gòu)圖,可以方便定位??赡芟氲降姆桨妇蛢蓚€(gè) : 1. 直接解析 word,獲得文檔結(jié)構(gòu)圖。 2. 解析轉(zhuǎn)換成 html 后的文件,在獲得文檔結(jié)構(gòu)圖 。 在方案 2 中就需要對(duì) html 進(jìn)行解析的工具,網(wǎng)上提供的開源工具主要有一下幾個(gè),到時(shí)候可以根據(jù)需求進(jìn)行篩選 : 1. htmlparser : HTML Parser is a Java library used to parse HTML in either a linear or nested fashion. Primarily used for transformation or extraction, it features filters, visitors, custom tags and easy to use JavaBeans. It is a fast, robust and well tested package. 2. html4j: HTMLDoc is an encapsulation of an HTML document, with a simple permissive parser which can handle even most of the bad, nonpliant HTML documents of the real world. 數(shù)據(jù)庫動(dòng)態(tài)配置 為了方便對(duì)數(shù)據(jù)庫的管理,把鏈接數(shù)據(jù)庫的必要信息全部都寫到配置文件中,后期對(duì)項(xiàng)目的發(fā)布有重大意義??梢苑奖愎芾韱T修改數(shù)據(jù)庫的密碼。 package 。 import 。 import 。 福建農(nóng)林大學(xué)本科畢業(yè)設(shè)計(jì)說明書 14 import 。 import 。 import 。 import 。 import 。 import 。 import 。 import 。 public class DBMessage { private static String JDBC = 。 private static String url = jdbc: private static String user = root。 private static String password = root。 /** * private static String JDBC。 private static String url。 private static String user。 private static String password。 */ static { (類初始化 )。 InputStream in = ().getResourceAsStream()。 Properties pro = new Properties()。 try { (in)。 JDBC = (JDBC)。 url = (url)。 user = (user)。 password = (password)。 } catch (FileNotFoundException e) { ()。 } catch (IOException e) { ()。 } } 福建農(nóng)林大學(xué)本科畢業(yè)設(shè)計(jì)說明書 15 public static String getMessage(String key){ (key = + key)。 String value = null。 InputStream in = ().getResourceAsStream()。 Properties pro = new Properties()。 try { (in)。 value = (key)。 } catch (FileNotFoundException e) { ()。 } catch (IOException e) { ()。 } return ()。 } public static String getUser() { if ( == null) { = getMessage(user)。 } return 。 } public static String getPassword() { if ( == null) { = getMessage(password)。 } return 。 } public static String getJDBC() { if ( == null) { = getMessage(JDBC)。 } return 。 } public static String getUrl() { 福建農(nóng)林大學(xué)本科畢業(yè)設(shè)計(jì)說明書 16 if ( == null) { = getMessage(url)。 } return 。 } public static Connection getConnection () { Connection connection = null。 try { (getJDBC()).newInstance()。 connection = (getUrl(), getUser(), getPassword())。 } catch (Exception e) { connection = null。 ()。 } return connection。 } /** * 關(guān)閉數(shù)據(jù)庫 * @param connection * @param rreparedStatement * @param resultSet */ public static void closeAll(Connection connection, PreparedStatement rreparedStatement,ResultSet resultSet) { try { if (resultSet != null) { ()。 resultSet = null。 } if (rreparedStatement != null) { ()。 rreparedStatement = null。 } 福建農(nóng)林大學(xué)本科畢業(yè)設(shè)計(jì)說明書 17 if (connection != null) { ()。 connection = null。 } } catch (SQLException e) { ()。 } } /** * 關(guān)閉數(shù)據(jù)庫 * @param connection * @param rreparedStatement * @param resultSet */ public static void closeAll(Connection connection, Statement statement,ResultSet resultSet) { try { if (resultSet != null) { ()。 resultSet = null。 } if (statement != null) { ()。 statement = null。 } if (connection != null) { ()。 connection = null。 } } catch (SQLException e) { ()。 } } 福建農(nóng)林大學(xué)本科畢業(yè)設(shè)計(jì)說明書 18 public static void main(String[] args) { InputStream in = ().getResourceAsStream()。 } } 每次修改數(shù)據(jù)庫的密碼,只要對(duì)應(yīng)修改配置文件 就可以。而且對(duì)數(shù)據(jù)庫的鏈接和釋放都進(jìn)行了必要的封裝。 福建農(nóng)林大學(xué)本科畢業(yè)設(shè)計(jì)說明書 19 6 編碼實(shí)現(xiàn) 主頁的實(shí)現(xiàn) 圖 61 主頁的實(shí)現(xiàn)效果圖 主要源代碼 : /*! * Ext JS Library *定義主頁整體布局 */ FeedViewer = {}。 (function(){ ()。 // 針對(duì)應(yīng)用程序配置默認(rèn) 的 state provider (new ({state: }))。 // 傳入一個(gè)元素的值的參數(shù) ,用于創(chuàng)建模板 ,( var tpl = (39。previewtpl39。, {//預(yù)覽功能定義模板 piled:true, getBody : function(v, all){ // 剝?nèi)ニ心_本( )標(biāo)簽 return (v || )。 } })。 = function(){ return tpl。 福建農(nóng)林大學(xué)本科畢業(yè)設(shè)計(jì)說明書 20 } = { render: function(p){ ({ 39。mo
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1