MyBatis first program: HelloWorld

1. Download the jar package required by MyBatis Download links of Github versions of MyBatis: https://github.com/mybatis/mybatis-3/releases Download the JDBC driven jar package of the corresponding database      2. Prepare the database to use create database School; use School; create table Users (   id int primary key,   name varcha ...

Posted by tranzparency on Thu, 02 Apr 2020 14:05:48 -0700

Android LinearLayout linear layout details

In order to better manage the components in the user interface of Android applications, Android provides a layout manager. Through the use of layout manager, Android application GUI has good platform independence. It is recommended to use layout manager to manage the distribution and size of components, rather than directly setting the location ...

Posted by jofield on Thu, 02 Apr 2020 12:50:25 -0700

Initial experience of Web Service: axis calls wsdl and document parsing

Neo Jun met the situation that he needed to call the web service interface. However, as a little white, he was tired of understanding this aspect. After groping, he completed a small Demo and recorded it. 1: background My colleague gave me a web service address. After opening it, the suffix is "...? wsdl". Put the link "http: / / ...

Posted by canadian_angel on Thu, 02 Apr 2020 10:04:29 -0700

python upload file

Using python to bulk upload files Recently, I need to fill in the form and upload the file on the Internet, so I thought whether I could write a step to do it, so I finally completed this task through Baidu. Let's summarize Grab a bag You can see from the packet capture that the upload process is actually complete ...

Posted by lady_bug on Thu, 02 Apr 2020 08:13:37 -0700

Android click the button to turn off the screen

Sometimes we see some pad of control equipment in some hotels. When we click the close button, we will turn off the device and turn off the pad screen. Today, we will try to realize the function of clicking the button to turn off the screen. 1. Create an XML folder under res and a resource file of lock_screen.xml. The source ...

Posted by bonekrusher on Thu, 02 Apr 2020 07:55:25 -0700

CountDownTimer source code analysis

Countdown function, for example: send SMS verification code countdown. 1 public class CountDownTimerActivity extends Activity { 2 3 private Button mSend; 4 private SendCountMessage mCountMessage; 5 6 @Override 7 protected void onCreate(Bundle savedInstanceState) { 8 super.onCreate(savedInstanceState); 9 ...

Posted by mattyj10 on Thu, 02 Apr 2020 06:11:51 -0700

Summary of five ways to use Toast

As for Toast, I'm sure you are familiar with it. Here's a summary. There are five ways to use Toast: Default style Custom location Custom picture Fully custom layout Use in other threads All right, no more nonsense, just look at the code 1. first, add 5 buttons in the activity.xml file to click the event to pop up the Toast ...

Posted by rocram16 on Thu, 02 Apr 2020 02:32:09 -0700

Using freemarker to save the ecrats picture to word

Using freemarker to save the ecrats picture to word In a business in an existing field, it is often necessary to make statistics on a kind of data, generate echarts charts and export them with corresponding description materials: Save eckarts locally java reads pictures for base64 encoding Making freemarker templates ...

Posted by Pixelsize on Thu, 02 Apr 2020 01:33:02 -0700

logback configures output files for individual packages or classes

Source: https://www.cnblogs.com/izecsonLee/p/9058385.html The most recent requirement is to output the log of a certain class to the specified file. Generally, it is output to the corresponding file according to the log level. Refer to related materials and logback tutorial, write the following demo for reference.   1. Add an appender ...

Posted by fert on Thu, 02 Apr 2020 01:22:37 -0700

Spring MVC environment construction

Spring MVC execution principle When the page sends the request, the controller finds the corresponding mapping (method) according to the request. After the function is executed, the controller jumps to the corresponding page and presents the processing result after the view parser processing according to the returned result. ...

Posted by andybrooke on Wed, 01 Apr 2020 20:24:39 -0700