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

正文內(nèi)容

javaee三層架構(gòu)_環(huán)境搭建、架構(gòu)思想、代碼書寫_指導(dǎo)手冊-資料下載頁

2025-05-13 22:29本頁面
  

【正文】 se * @return * @throws IOException */ @RequestMapping(method = , value = /) public ListVariationword findByWord(HttpServletRequest request, HttpServletResponse response) throws IOException { // 獲取url的傳值 String word = new String((Word).getBytes( ISO88591), utf8)。 (word)。 ListVariationword result = (word)。 return result。 }/** * 查找多個詞 * @param request * @param response * @return */ @RequestMapping(method = , value = /) public ListVariationword findByWordList(HttpServletRequest request, HttpServletResponse response) { ListString wordList = new ArrayListString()。 ListVariationword result = .findByWordList(wordList)。 return result。 }/** * 增加新詞 * @param request * @param response * @throws IOException */ @RequestMapping(method = , value = /) public void add(HttpServletRequest request, HttpServletResponse response) throws IOException { String varwordId = (varwordId)。 String netword = (netword)。 String replaceWord = (replaceWord)。 String note = (note)。 Variationword vw = new Variationword()。 (varwordId)。 (netword)。 (replaceWord)。 (note)。 (vw)。 }/** * 刪除單詞 * @param request * @param response * @throws IOException */ @RequestMapping(method = , value = /) public void delete(HttpServletRequest request, HttpServletResponse response) throws IOException { long id = ((id))。 Variationword vw = (id)。 (true)。 (vw)。 }}注解說明:各注解的具體意義見表34表34序號注解名注解(或?qū)傩裕┮饬x備注1@ Controller注冊Controller2@RequestMapping注冊訪問時的路徑 test測試文件夾下 準(zhǔn)備工作 在test源文件夾下,建立如圖33所示的包層次結(jié)構(gòu),test文件夾下存放的是測試src源代碼的測試代碼。圖33public class VariationwordDaoTest extends GenericDaoTestCaseLong, Variationword, VariationwordDao { public VariationwordDaoTest() { super()。 } @Autowired public void setVariationwordDao(VariationwordDao variationwordDao) { = variationwordDao。 }} dao層代碼說明:繼承基類的GenericDaoTestCase類,對src中的VariationwordDao進(jìn)行測試。public class VariationwordManagerTest extends GenericManagerTestCaseLong, Variationword, VariationwordManager { @Autowired public void setVwManager(VariationwordManager vwManager) { = vwManager。 } public VariationwordManagerTest() { super()。 }} service層代碼說明: VariationwordManagerTest繼承基類的GenericManagerTestCase類,對src中的類VariationwordManager進(jìn)行測試。public class VariationwordControllerTest extends BaseControllerTestCase { /** * Logger for this class */ private static final Logger logger = ()。 @Autowired VariationwordController variationwordController。 @SuppressWarnings(unchecked) @Test public void test() { }} controller層代碼說明: VariationwordControllerTest繼承基類的BaseControllerTestCase,對src中的類VariationwordController進(jìn)行測試。 六、 項目前臺前臺采用ExtJS技術(shù), 七、 問題整理、問題描述通過eclipse啟動Tomcat后,訪問Tomcat時出現(xiàn)如下問題問題分析 已經(jīng)安裝了Tomcat,應(yīng)該修改“Server Location”,選擇其中的“Use Tomcat installation”問題解決返回到eclispe IDE,按如下步驟操作Step 1Step 2重啟Tomcat。重新驗證,正常訪問。另,設(shè)置Tomcat自動發(fā)布項目,方便以后的項目開發(fā) 八、 參考url 44 / 44
點擊復(fù)制文檔內(nèi)容
職業(yè)教育相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1