Skip navigation

DSpace

機構典藏 DSpace 系統致力於保存各式數位資料(如:文字、圖片、PDF)並使其易於取用。

點此認識 DSpace
DSpace logo
English
中文
  • 瀏覽論文
    • 校院系所
    • 出版年
    • 作者
    • 標題
    • 關鍵字
    • 指導教授
  • 搜尋 TDR
  • 授權 Q&A
    • 我的頁面
    • 接受 E-mail 通知
    • 編輯個人資料
  1. NTU Theses and Dissertations Repository
  2. 電機資訊學院
  3. 資訊工程學系
請用此 Handle URI 來引用此文件: http://tdr.lib.ntu.edu.tw/jspui/handle/123456789/95667
標題: 從 Spring 中的 XML 命名空間到 Java 註解的自動轉換
Auto-Transform XML Namespaces to Java Annotations in Spring
作者: 許容綮
Jung-Ching Hsu
指導教授: 李允中
Jonathan Lee
關鍵字: Spring框架,依賴注入,自動轉換,設計模式,
Spring framework,DI,Auto-Transformer,Design Pattern,
出版年 : 2024
學位: 碩士
摘要: 在大多數的 Java 專案中,經常會使用 Spring 框架來加速軟體開發的速度。然而,在傳統的 Spring 專案中,通常使用 XML 作為配置文件。然而,使用 XML 配置文件會遇到很多問題,例如文件可能會變得非常冗長和複雜,尤其是當配置項目很多時。此外,XML 配置文件靈活性不足,配置內容需要提前定義,無法動態配置。因此,我們希望能夠找到一套流程和方法,自動將 XML 配置文件轉換成 Java 配置文件。本研究主要提出一個 XML 轉換到註解的自動轉換流程。過程中,我們會對 Spring 專案的所有配置文件進行分析,並為每個命名空間訂製轉換規則,依據這些規則將 XML 轉換成 Java 配置文件。最後,我們提供一個驗證機制,用以確認轉換規則的正確性。為了驗證我們的轉換規則,我們以一個大型的專案作為範例進行佐證。
In most Java projects, the Spring framework is often used to accelerate software development. However, in traditional Spring projects, XML files are typically used as the configuration files. Nonetheless, using XML configuration files encounters many issues, such as files becoming very lengthy and complex, especially when there are many configuration items. Additionally, XML configuration files lack flexibility; the configuration content needs to be predefined and cannot be dynamically configured. Therefore, we aim to find a process to automatically transform XML configuration files into Java configuration files. This study proposes an automatic transform process from XML to annotations. During the process, we analyze all configuration files in the Spring project and compile conversion rules for each namespace. Based on these conversion rules, we convert XML configuration files into Java configuration files. Finally, we provide a validation mechanism to ensure the correctness of Java configuration files. To validate our conversion rules, we use an large-scale project as an example to support our process.
URI: http://tdr.lib.ntu.edu.tw/jspui/handle/123456789/95667
DOI: 10.6342/NTU202404078
全文授權: 同意授權(全球公開)
顯示於系所單位:資訊工程學系

文件中的檔案:
檔案 大小格式 
ntu-112-2.pdf9.23 MBAdobe PDF檢視/開啟
顯示文件完整紀錄


系統中的文件,除了特別指名其著作權條款之外,均受到著作權保護,並且保留所有的權利。

社群連結
聯絡資訊
10617臺北市大安區羅斯福路四段1號
No.1 Sec.4, Roosevelt Rd., Taipei, Taiwan, R.O.C. 106
Tel: (02)33662353
Email: ntuetds@ntu.edu.tw
意見箱
相關連結
館藏目錄
國內圖書館整合查詢 MetaCat
臺大學術典藏 NTU Scholars
臺大圖書館數位典藏館
本站聲明
© NTU Library All Rights Reserved