Detailed JDBC implementation process (add, delete, modify and check)

I. create a table in the database In this example, MySQL database management system is used. In order to facilitate the operation, Navicat Premium, a graphical interface, is used to operate mysql. The following is the table creation statement: use test;//Using the test database create table user_info(//Create a table in the ...

Posted by ntg on Wed, 20 Nov 2019 09:26:43 -0800

spring+mybatis+springmvc integration

dao layer integration of spring and mybatis Required jar package db.properties jdbc.driver=com.mysql.jdbc.Driver jdbc.url=jdbc:mysql://localhost:3306/mybatis?characterEncoding=utf-8 jdbc.username=root jdbc.password=123456 log4j.properties # Global logging configuration, DEBUG is recommended for development environment log4j.r ...

Posted by seidel on Tue, 19 Nov 2019 11:50:43 -0800

Spring JDBC Implementation for Spring Applications

Getting started with the jdbcTemplate class Mode 1 POM.XML <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId& ...

Posted by mrman23 on Sun, 17 Nov 2019 09:02:45 -0800

2. Principle and Use of spark--spark core

[TOC] 1. Some basic terms in spark RDD: Elastically distributed datasets, the core focus of sparkOperators: Some functions for manipulating RDDapplication: user-written spark Program (DriverProgram + ExecutorProgram)job: an action class operator triggered operationstage: A set of tasks that divide a job into several stages based on dependencie ...

Posted by FeeBle on Fri, 15 Nov 2019 22:22:07 -0800

JDBC programming - get Connection and common problems

Connect to Oracle using JDBC Implementation ideas: Use a file named oracle.properties, which contains the Oracle URL, User, Password and driver classes. Through the input stream of ClassLoader, the input stream contains the Oracle connection initialization parameters of the input program. The input stream is loaded in the Properties load. Get t ...

Posted by dotbob on Fri, 15 Nov 2019 05:17:58 -0800

Connect MySQL with JDBC

Existing configuration: install IntelliJ (Java IDE) and MySQL. Then use MySQL Installer to install Connector/J. Open Intelli, create a new Project, and create a MySQL demo class. The code is as follows. The code comes from https://www.runoob.com/java/java-mysql-connect.html Some of them need to be changed into the contents ...

Posted by 8ta8ta on Wed, 13 Nov 2019 09:49:11 -0800

Mybaits Source Parsing - One of the most detailed web-wide: Spring-Mybatis framework use and source parsing

In the previous articles, we mainly analyzed the separate use of Mybatis. In practice, most of the common project development uses mybatis in conjunction with Spring. After all, few projects are developed without Spring.This article describes how Mybatis works with Spring and how its source code is implemented. Spring-Mybatis uses Add maven dep ...

Posted by Judas on Sun, 10 Nov 2019 19:50:08 -0800

Use Mybatis every day, but do you really know how it works?

Recently, I want to write a mybatis paging plug-in, but before I write the plug-in, I must understand the specific working principle of mybatis, so I will start to work by referring to other blogs and reading the source code. Core components: SqlSession Executor StatementHandler ParameterHandler ResultSetHandler TypeHandler MappedStatement Co ...

Posted by neridaj on Fri, 08 Nov 2019 04:12:39 -0800

Mybatis Reverse Engineering in Intellij Idea

Beginning A useful feature of Mybatis is reverse engineering, which can reverse-generate entity classes based on table structure to avoid manual errors.Most of the tutorials on the market are very old, mostly for mysql5. Here's my experience with mysql8. Introducing Engineering Using the maven package management tool, add the following configur ...

Posted by Jeller on Thu, 07 Nov 2019 06:30:34 -0800

Spark SQL uses beeline to access hive warehouse

I. add hive-site.xml Add the hive-site.xml configuration file under $SPARK_HOME/conf in order to access hive metadata normally vim hive-site.xml <configuration> <property> <name>javax.jdo.option.ConnectionURL</name> <value>jdbc:mysql://192.168.1.201:3306/hiveDB?createDatabaseIfNotExist=true ...

Posted by mrodrigues on Wed, 06 Nov 2019 14:06:19 -0800