freemarker tag usage and configuration

After some time of research, freemarker really works better than jsp, and freemarker strictly divides the mvc pattern.Show on the page as a template filler.The following describes the use and configuration of freemarker that I experienced. Configuration tags are good for maintaining and expanding the project. Create a freemarker configuratio ...

Posted by FrankHarley on Mon, 20 Jul 2020 08:38:52 -0700

Kids learn Java (6): encapsulation

Object oriented has three characteristics: Encapsulation, Inheritance and Polymorphism. This section covers encapsulation. Procedure 1 class Woman { private String name; private int age; private Man husband; public void setName(String name) { this.name = name; } public String getName() { return ...

Posted by thehigherentity on Sun, 19 Jul 2020 08:51:28 -0700

References in Java and JNI (strong, soft, weak, virtual)

1. Strong References (Objects) Features: Strong references provide direct access to the target object. Will not be recycled. Two, soft reference (SoftReference class) Features: When GC reclaims based on JVM memory, JVM reclaims when it finds it is out of memory Conditions for freeing up space: JVM found insufficient m ...

Posted by alireza on Sun, 19 Jul 2020 08:34:35 -0700

java ajax instantly verifies that the same classification exists in the database

When I do the project again, the customer needs me to implement a function, probably when adding classifications, if the database has the same classifications, the jsp interface will prompt for information and cannot be added successfully.The results are as follows:   Below is the idea for implementation: 1. First implement an onblur event in ...

Posted by BLeez on Fri, 17 Jul 2020 09:02:47 -0700

android exceptions collect error information and save it to the crash folder

Save the log file to the sdcard, directory: crash folder under the sdcard root directory First, set permissions, no permissions to the final effect <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>Two classes must be crea ...

Posted by falcon1 on Wed, 15 Jul 2020 08:11:06 -0700

Mybatis (2) Parameters transfer

Mybatis parameter (Parameters) pass 1.. Single parameter Values of basic type, object type, collection type can be accepted.In this case, MyBatis can use this parameter directly without any processing.   <!-- according to id Query a record in a data table and encapsulate it User object --> <select id="selectById" resultType="com.s ...

Posted by mailtome on Tue, 14 Jul 2020 08:23:04 -0700

Single Case Mode Static Internal Class Resolves Reflection to Get Multiple Objects

First of all, there is no single pattern of hungry Han, lazy, if you need Baidu A little better than the Hungry Han style is the static inner class singleton Paste code here package com.test; public class SimpleTest { private static class SimpleNB { private static final SimpleTest INSTANCE = new SimpleTest(); } private SimpleT ...

Posted by sajlent on Tue, 14 Jul 2020 07:26:20 -0700

Android Custom WheelView

function Wheeled Select View, similar to TimePicker or DataPicker, allows you to set whether or not there is a boundary (the beginning and end meet) Design sketch Explain Inherited from View to assist with scrolling with OverScroller, using a minimum API version of 9.If necessary, you can use Scroller instead, w ...

Posted by bobicles2 on Mon, 13 Jul 2020 08:46:00 -0700

Android Custom WheelView

function Wheeled Select View, similar to TimePicker or DataPicker, allows you to set whether or not there is a boundary (the beginning and end meet) Design sketch Explain Inherited from View to assist with scrolling with OverScroller, using a minimum API version of 9.If necessary, you can use Scroller instead, w ...

Posted by Kane250 on Mon, 13 Jul 2020 08:47:24 -0700

Getting started with middleware mycat (1): Deployment and introduction

During the initial testing process, the project originally used kingshard as the middleware, but during the testing process, we found that the join does not support different sub-tables, so we can only choose to give up and change to mycat to do the testing Download address is [root@gzsd-ks01-101110214 download]# wget http://dl.mycat.i ...

Posted by Aptana on Fri, 10 Jul 2020 09:18:41 -0700