Idea uses the MyBatis Generator plug-in to quickly generate code

1. Add in Add the following dependencies to the pom.xml file. Note that this is a plugin <plugin> <groupId>org.mybatis.generator</groupId> <artifactId>mybatis-generator-maven-plugin</artifactId> <version>1.4.0</version> </plugin> 2. Write generatorConfig.xml Place th ...

Posted by Benjigga on Tue, 05 May 2020 14:01:18 -0700

Preliminary Study on Android JetPack Component-CameraX

CameraX is also a JetPack component from Google, which is a new gadget, so I want to share my experience in using it in my project. What is CameraX? The Google Developer Documentation gives you the following evaluation of AmeraX: CameraX is a Jetpack support library designed to help you streamline the development of camera applications.It pro ...

Posted by a6000000 on Tue, 05 May 2020 12:14:10 -0700

The fastest Android TreeView appears!

The fastest Android TreeView appears! Source address: https://github.com/niugao/RecyclerListTreeView Based on RecyclerView. The structure of storing data is not a Tree, but an ArrayList. Unlike all the known implementations on the Internet, it seems that people can't jump out of fixed thinking. You can compare the am ...

Posted by daveoffy on Tue, 05 May 2020 07:40:35 -0700

Intent -- open another Activity -- bidirectional value transfer

In Android applications, we use the intent mechanism to jump between activities. This example simply introduces how to use intent to make the program jump from MainActivity to another OtherActivity to realize a single parameter value. When returning MainActivity, use Bundle for batch return. 1, Design interface 1. MainActivity la ...

Posted by jeny on Tue, 05 May 2020 04:46:03 -0700

A simple jsp interface to upload attachments to the server instance

1. Description: upload the attachment in a web project. The jar package used in demo is commons-fileupload-1.3.3.jar commons-httpclient-3.1.jar commons-io-2.0.1.jar. It can be obtained in the source code. Download address: http://download.csdn.net/download/shenju 2011/10215828 2. Code interpretation (1) The jsp interface is processed with a ...

Posted by hairyjim on Tue, 05 May 2020 01:30:35 -0700

Android Project Actual Series - based on my module in Savvy Valley

Please be patient to read this module because of its large content and length. My module is divided into four parts [ ] My interface [ ] Set up interface [x] Modify password interface [x] Set Secret Security and Retrieve Password 1. Modify Password 1. Create a password modification interface In the com.boxuegu.activity package, creat ...

Posted by congos on Tue, 05 May 2020 01:30:21 -0700

Android uses TabLayout to create a sliding tab bar

Sliding tab bar is very common in App. I tried to implement one by myself in the past. Using HorizontalScrollView and ViewPager, now TabLayout is much more convenient. First, the effect map and UI are slightly ugly. Don't mind ha ~ PS: there is a source code link at the bottom design sketch No nonsense, just code! ...

Posted by ppatwari on Tue, 05 May 2020 00:26:14 -0700

The usage of Litepal and the solution of dbname is empty

The steps to use Litepal are as follows: 1. Introduce JAR package and change configuration Use Android Studio to add: dependencies { compile 'org.litepal.android:core:1.6.1' } 1.6.1 is the version number, which can be changed according to the requirements. Then configure the litepal.xml file. Generally, create ...

Posted by MSK7 on Mon, 04 May 2020 22:10:01 -0700

Hibernate, Session object, Query object and HQL

Session object 1. Introduction Session object is the object of database session, which provides the method of interaction with database session object is thread unsafe, so it cannot be used as a global variable 2. Obtaining and closing the session object How to get / create and close: //Get new session object (not commonly us ...

Posted by voyde on Mon, 04 May 2020 21:59:42 -0700

php wechat app payment

Scenario introduction It is applicable for merchants to integrate wechat payment function in mobile APP. When the merchant APP calls the SDK provided by wechat to call the wechat payment module, the merchant APP will jump to wechat to complete the payment, then jump back to the merchant APP after the payment, and fina ...

Posted by vince251 on Mon, 04 May 2020 21:35:33 -0700