An introduction to JDBC, JNDI and Spring JDBC with Tomcat

所在平台: Udemy

课程主页: https://www.udemy.com/course/an-introduction-to-jdbc-jndi-and-spring-jdbc-with-tomcat/

课程评论:没有评论

第一个写评论        关注课程

课程简介

**课程名称:** JDBC、JNDI 与 Spring JDBC 入门 **课程概述:** 本课程教授如何在嵌入式 Tomcat 服务器中使用 JNDI 和 Spring JDBC 支持进行数据访问。 **课程模块:** * **课程介绍:** JDBC 历史与用户故事示例 * **Spring JDBC 开发环境搭建** * **数据库连接:** * DAO(数据访问对象)使用传统 JDBC 与 Spring JDBC 的对比 * Spring JDBC Template 实现完整的 CRUD 操作 * **学习 Spring JDBC 的原因:** * JDBC 在全球各大公司中的广泛应用 * 20 多年持续活跃维护 * Spring JDBC 帮助快速处理遗留 JDBC 代码 * **Spring JDBC 用户故事示例:** * 作为一名居住在海外的侨民,希望访问家乡所有慈善机构(非营利组织)的在线数据库。 * 按税务 ID 查找慈善机构。 * 按慈善机构类别(如环境、教育)进行搜索。 * 按慈善机构的项目类型进行搜索。 * **使用 JDBC 连接 MariaDB:** * 建立数据库连接 * 使用 DriverManager 类 * 指定数据库连接 URL * **使用 Spring 连接 MariaDB:** * 定义 Spring DataSource Bean 以获取数据库连接 * 在 application.xml 中指定数据库属性 * 使用 MariaDB DataSource Bean 类 * **使用 JNDI 连接 MariaDB:** * 使用 JNDI DataSource 对象获取数据库连接 * 将 DataSource 对象注册到使用 JNDI API 的命名服务 * 创建 DataSource 类实例并设置属性 * 使用已部署的 DataSource 对象 * **在嵌入式 Tomcat 中使用 JNDI 获取 JDBC 连接:** * Java 主方法启动嵌入式 Tomcat * 使用 JNDI API 注册 DataSource 对象 * 使用已注册的 JNDI DataSource 对象 * 使用 Maven 插件运行 JAR 包 * **在 Tomcat 中使用 Spring App Context 获取 JDBC 连接:** * Java 主方法启动嵌入式 Tomcat * 在 Spring application.xml 中定义 DataSource * 向 web.xml 添加 Context Listener * 在 Servlet 中获取 Spring DataSource bean * **在嵌入式 Tomcat 中使用 Spring 注解配置:** * Java 主方法启动嵌入式 Tomcat * 在 Spring Config 类中定义 DataSource * 在 Servlet 中获取 Spring DataSource bean **课程大纲:** 无

课程评论(0条)

课程详情

Data Access with Spring JDBC Support using JNDI in an embedded Tomcat Server.Course Modules:Course Introduction - JDBC History & Sample User StoryOur Spring JDBC Development EnvironmentConnecting to the DatabaseDAO with Traditional JDBC vs Spring JDBCFull CRUD with Spring JDBC Template exampleWhy learn Spring JDBC ?JDBC use is widespread in large companies worldwideActively maintained for 20+ years and countingSpring JDBC gives you a "quick win" when dealing with legacy JDBC codeSpring JDBC - Sample User StoryAs an expatriate living abroad I want access to an online database of all charities (non-profits) that operate in my "home country".I want to be able to find Charities by their Tax IdI want to be able to search by Charity Category such as Environment or EducationI want to be able to search by Charity Program TypesConnecting to the MariaDB with JDBCEstablishing a ConnectionUsing the DriverManager ClassSpecify the database Connection URLsConnecting to the MariaDB with Spring:Define Spring DataSource Bean to get a DB ConnectionSpecify the database properties in application.xmlUsing the MariaDB DataSource Bean ClassConnecting to the MariaDB:Using JNDI DataSource Objects to Get a ConnectionRegistering DataSource Object with Naming Service That Uses JNDI APICreating Instance of DataSource Class and Setting its PropertiesUsing Deployed DataSource ObjectConnecting to the MariaDB:Using JNDI to Get a JDBC Connection in Embedded TomcatJava Main Method to launch Embedded TomcatRegistering DataSource Object with JNDI APIUsing the registered JNDI DataSource ObjectRunning the JAR with Maven PluginConnecting to the MariaDB:Using Spring App Context to Get a JDBC Connection TomcatJava Main Method to launch Embedded TomcatDefining the DataSource in Spring application.xmlAdding a context listener to web.xmlRetrieve the Spring Data Source bean in the ServletConnecting to the MariaDB:Using Spring Annotation Config in Embedded TomcatJava Main Method to launch Embedded TomcatDefining the DataSource in Spring Config ClassRetrieve the Spring DataSource bean in the Servlet

课程标签

0人关注该课程

主题相关的课程