mybatis notes (open)

Development environment jdk1.8 maven mysql8.0 1, guide package 2. Configure config (including write db.properties) db.properties: driver=com.mysql.cj.jdbc.Driver url=jdbc:mysql://localhost:3306/mybatis?useSSL=false&serverTimezone=UTC mybatis-config.xml: <?xml version="1.0" encoding="UT ...

Posted by Sa177ir on Sun, 02 Feb 2020 10:15:51 -0800

How to make the corner circle of the button?

I want to round the corner of the button. Is there an easy way to do this in Android? #1 building Create an xml file in the drawable folder as follows <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" android:padding="10dp"> <!-- you ...

Posted by dejvos on Sat, 01 Feb 2020 07:47:12 -0800

android gesture recognition

No more details Gesture recognition code http://download.csdn.net/detail/zhupengqq/9578532 After running the above project, it will generate such a gesture recognition library, gestures, and create a new project, Under res, create a raw folder, and then import the library   Here is an exampl ...

Posted by elToro on Sat, 01 Feb 2020 07:47:21 -0800

8. [kowtow to Spring] - IoC's parsing Bean: parsing the import tag

In blogs [kowtow to Spring] - IoC's registration BeanDefinitions According to the analysis in, there are two ways to parse beans in Spring: If the root node or child node adopts the default namespace, the ා parseDefaultElement(...) method is called for default label resolution Otherwise, the beand ...

Posted by gardner1 on Fri, 31 Jan 2020 21:48:34 -0800

Android custom ListView click event invalid

Because the built-in listview cannot meet the needs of the project, implement its own Adapter to inherit the ArrayAdapter to implement the Item project of the custom listview. Each item that appears and clicks on the ListView will not execute the onItemClick method in the setOnItemClickListener. The reason is that there are some sub controls ...

Posted by phphunger on Fri, 31 Jan 2020 14:57:21 -0800

sql--CONVERT, for XML path to solve practical problems

Demand: stores under each platform classification, name, picture path and score of each store, name, picture path and score of four products under each store Train of thought: At the beginning, stores are dynamic and easy to write, just use Ajax. But it's a bit unrealistic to ask for a query for the products under each store. At the beginning, ...

Posted by drdokter on Fri, 31 Jan 2020 12:31:24 -0800

Notes on iOS reverse learning -- LLDB dynamic debugging target program

Notes on iOS reverse learning: LLDB dynamic debugging target program Configure debugserver 1. Copy the debugserver in the mobile phone to the Mac (provided that the mobile phone has been used as a test machine) scp root@192.168.0.15:/Developer/usr/bin/debugserver /Users/mac/Desktop/dump 2. Check the debugserver architec ...

Posted by matt86 on Fri, 31 Jan 2020 12:03:45 -0800

Socket realizes file transfer

Socket realizes file transfer 1. client Connect to the server through new Socket("ip",port) Create file input stream read file Create an output stream that returns to the socket Write article name, length and other attributes Read and write articles Closed flow package com.company; import javax.xml.crypto.Dat ...

Posted by irandoct on Fri, 31 Jan 2020 11:38:13 -0800

Encapsulate a tool to delete useless resource files at will

Encapsulate a tool to delete useless resource files at will Train of thought: Export a txt file with lint log through lint command Filter out all useless resource files by reading the "[UnusedResources]" field in it Files can be deleted directly - drawable-mdpi - drawable-hdpi - drawable-xhdpi ...

Posted by RedDragon on Fri, 31 Jan 2020 09:35:06 -0800

Fresco of Android open source framework

brief introduction Fresco is Facebook's latest powerful image library for displaying pictures in Android applications, which can load pictures from network, local storage and local resources. Compared with image loader, it has many advantages, such as faster image download speed and can load and displ ...

Posted by jmrothermel on Fri, 31 Jan 2020 09:15:26 -0800