Java types and JDBC types commonly used in Mybatis

JDBC type Java type CHAR string VARCHAR string LongVarChar Strin G NUMERIC java.math.BigDecimal DECIMAL java.math.BigDecimal BIT Boolean Boolean Boolean TINYINTbyteSMALLINT

Java converts text of XML type to JSON

1 Packagedemo; 2 ImportNet.sf.json.JSONObject;3 ImportNet.sf.json.xml.XMLSerializer;4 /** 5 * 6 * @authorLove Ru a WAN year7 * dom4j generate XML documents and parse XML documents8 */ 9 Public classXmltojson {Ten One Public Static

Java method Parameters-think of something interesting

Always think that Java 's method parameters are passed values, after the call does not affect itself. Java does not have a pointer in C + + , in the fast sort, the incoming array, but the value of the change occurred. This leads to thinking:For the

Java transient keywords

1) Once the variable is transient modified, the variable will no longer be part of the object persistence, and the variable content cannot be accessed after serialization.2) The Transient keyword can only modify variables, not methods and classes.

java--Horse Soldier Tutorial Study notes

Introduction to Java1. Java Cross-platform: Compile once, execute everywhere. --java the existence of a virtual machine.2. Java is an interpreted language Compiled by: C + +, directly compiled into the format of the operating system

Java environment variable Configuration

1. To successfully configure Java environment variables, it is necessary to install the JDK in order to start the configuration. After the successful installation, the test is really successful installation, click "Start"----"Run"----input CMD,

Java inheritance, composition, encapsulation and polymophism

composition meansHAS AInheritance meansIS AExample: Car has a Engine and car is a AutomobileIn programming the is represented as:1 classEngine {}//The engine class.2 3 classautomobile{}//Automobile class which is the parent to Car class.4 5 //car is

Java Map Cache

/** * 缓存池 * @author xiaoquan * @create 2015年3月13日 上午10:32:13 * @see */publicclassCachePool {    private staticCachePool instance;//缓存池唯一实例    privatestaticMap cacheItems;//缓存Map        privateCachePool(){        cacheItems = newHashMap();    }    /**

Serialization analysis of Java ArrayList

First, IntroductionThe so-called Java serialization and deserialization, serialization is to keep Java objects in one form, such as storage to the hard disk, or for transmission. Deserialization is a reverse process of serialization.Java specifies

Directory Operations Tool Class Copydir.java

Package com.util; Import java.io.*; /** * 1, set up the destination directory. 2. Traverse the source directory. 3. During the traversal process, create a file or folder. Principle: Actually change the source file or directory header. *

Jvm--java Memory-related

Java memory model, Java memory Management, Java heap and stack, garbage collection This article is the first article of the "Cheng Shen Road Series", which is mainly about the introduction of the JVM. In continuous update Java

Java File Encoding Example

Converts a string to a byte array, using the default encoding of the current project:String s = "Hello abc";Byte[] B1 = S.getbytes (); To convert a string in the "GBK" format:byte[] B2 = s.getbytes ("GBK"); To convert a string in the "Utf-8"

Java NiO Reading notes

One, the difference between Java io and NiO:(1) Java NIO provides different IO modes of operation than standard IO: Channels and Buffers (channels and buffers): Standard IO is based on byte stream and character stream, while NiO is based on

The internationalization program of Java Learning

Internationalization program is the language of the program according to the user's language display, each country users can readThe implementation method is to write the output text in the configuration file, and then according to the user system

Java Reflection Mechanism Topic

· Java ReflectionReflection (reflection) is considered to be the key of dynamic language, and the reflection mechanism allows the program to obtain the internal information of any class by means of the Reflection API during the execution period, and

On the enumeration types in Java

Usage One: ConstantsBefore JDK1.5, we defined constants: public static fianl ..... Now, with enumerations, you can group related constants into an enumeration type, and enumerations provide more methods than constants.public enum Color { RED,

Java Internal classes

An inner class (Inner class) is a class that is defined in another class, a compiler phenomenon that is independent of the virtual machine. Benefits of the Inner class:     1. Hide mechanism: Inner classes can be hidden from other classes in the

Spring Boot MyBatis connects to the database

Spring Boot MyBatis connects to the database Recently busy, did not have time to extract the integration of MyBatis out, in fact, mybatis official website in late November 2015 has released the SpringBoot integrated Release version, Github has code:

Verification Code utility Jtaptcha and utility jtaptcha

Verification Code utility Jtaptcha and utility jtaptcha CAPTCHA is Completely Automated Public Turing Test to Tell Computers and Humans Apart The abbreviation of a completely automated Turing test that distinguishes computers from humans 1.

Java-18.2 basic thread mechanism (8) multi-thread exception capture

Java-18.2 basic thread mechanism (8) multi-thread exception capture In this section, we will discuss how to capture exceptions in multiple threads. 1. Exceptions in general situations Package com. ray. ch17; public class Test {public static void

Total Pages: 6206 1 .... 2822 2823 2824 2825 2826 .... 6206 Go to: GO

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.