Dodoke September 3 study notes

Syllabus 1. jsp form data change 2. Difference between form method get and post; 3. Character encoding Course notes 1, jsp form data change //First, query the database through id and display it in the form <% String id = request.getParameter("id"); String name =""; Class.forName("com.mysql.jdbc.Driver"); ...

Posted by foreverhex on Wed, 01 Jan 2020 10:01:14 -0800

Getting started with JDBC

JDBC concepts and quick start cases 1. Concept of JDBC: Operate database by Java code (add, delete, modify, check) 2. Quick start procedure: A.Import jar package B.Registration driven Class.forName("com.mysql.jdbc.Driver"); C.Acquisition drive String url = "jdbc:mysql://127.0.0.1:3306 / EE "; / / EE is the name ...

Posted by javawizkid on Wed, 01 Jan 2020 00:58:11 -0800

Spring MVC + mybatis to configure multiple data sources

Business scenario: In the actual project development, sometimes the data will be stored in multiple databases, that is, there are different data sources. So in the SSM framework, how to configure multiple databases? Get ready: Two Oracle data sources DataSource1:172.83.242.145:1521/orcl user name: zsyw · Jr password: ...

Posted by richo89 on Tue, 31 Dec 2019 20:49:13 -0800

Java learning daily (using JDBC)

Learning content Use of JDBC Development steps 1. Select database: load database driver; 2. Connect to the database 3. Create database query 4. Get query results 5. Get query results Complete JDBC operation code package com.dodoke.jdbc; import java.sql.Connection; import java.sql.DriverManager; import java.sql.Prepared ...

Posted by cdjsjoe on Tue, 31 Dec 2019 05:34:00 -0800

How can factory mode be used to achieve program decoupling in Spring?

Catalog 1. What is coupling and decoupling? 2. jdbc program decoupling 3. Program coupling of traditional dao, service, controller 4. Use factory mode to decouple 5. Improvement of factory mode 6. Conclusion @ 1. What is coupling and decoupling? Since it is program decoupling ...

Posted by olko on Wed, 25 Dec 2019 16:43:53 -0800

Google's open source dependency on injection and storage is smaller and faster than Spring!

Guice, an open-source dependency injection Library of Google, compares with Spring IoC Smaller and faster. Guice is widely used in elastic search. This paper briefly introduces the basic concept and usage of Guice. Learning objectives   Overview: understand what Guice is and what characteristics it has; Quick start: learn Guice through example ...

Posted by darkhorn on Wed, 25 Dec 2019 01:48:02 -0800

springboot integrates quartz and configures JNDI data sources

rely on <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-logging</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <d ...

Posted by n8r0x on Tue, 24 Dec 2019 19:15:05 -0800

SpringBoot 1.5.x Integrated Quartz task scheduling framework

Quartz has different memory and database modes In memory mode, task information is saved in memory, and it will be lost during shutdown. It needs to be re executed manually. In database mode, task information is saved in database, and the focus is to support cluster RAMJobStore in memory mode and database mode JobStoreTX, RAMJobStore is suita ...

Posted by Juan Dela Cruz on Sun, 22 Dec 2019 06:37:12 -0800

MyBatis Generator failed to get comments when generating the corresponding entity class of Oracle Database

Recently, a problem was found when using mybatis generator to generate the entity classes corresponding to Oracle database. It is hereby recorded. Because the project uses swagger2, we want to generate the corresponding @ ApiMode and @ ApiModelProperty annotations through table annotations and field annotations when generating entity classes. H ...

Posted by Shendemiar on Thu, 19 Dec 2019 10:02:11 -0800

apache dbutils calls stored procedures based on oracle Database

Preface Apache Commons dbutils version 1.7 shows the calls that support stored procedures. Please pay attention to the version issue when using this code. 1.7 version update method int execute(String sql, Object… params) executes SQL statements, including stored procedure calls, which do not return any result sets. ...

Posted by xux on Thu, 19 Dec 2019 07:33:59 -0800