Case: user login
User login case requirements:
1. Write two input boxes of login.html login page username & password
2. use the Druid database connection pool technology to operate the user table in the mysql and day14 databases
3. Using JdbcTemplate technology to encapsulate JDBC
4. Log in succ ...
Posted on Tue, 11 Feb 2020 08:50:12 -0800 by Supernovas
I have a long ListView where users can scroll before returning to the previous screen. When the user opens this ListView again, I want the list to scroll to the same location as before. Any ideas on how to achieve this?
Warning!! If ListView.getFirstVisiblePosition() is 0, there is an error in the AbsListView that does not al ...
Posted on Tue, 11 Feb 2020 04:02:24 -0800 by ragtek
Introduction: in some cases, the objects of a class are limited and fixed, such as the season class. There are only four objects: spring, summer, autumn and winter. This kind of class with limited and fixed instances is called enumeration class. In JDK 5.0 and later, enum keyword can be used to define enumeration class, and it is inherited from ...
Posted on Tue, 11 Feb 2020 03:18:19 -0800 by FireDrake
In the actual development work, we often encounter the following scenarios: one payment module, one Order module, has certain dependence, one colleague is responsible for the payment module, and another colleague is responsible for the Order module, but when developing the payment module, we need to rely on the relevant classes, ...
Posted on Mon, 10 Feb 2020 23:57:38 -0800 by computerzworld
AutoGenerator is the code generator of mybatis plus. Through AutoGenerator, you can quickly generate the code of Entity, Mapper, Mapper XML, Service, Controller and other modules.
Posted on Mon, 10 Feb 2020 07:49:40 -0800 by Mahfouz
JVM learning (7) - two parent delegation mechanism of class adder
The hierarchical system of classloader in Java
extensions class loader
system class loader
User defined class loader
This is the top-level root class loader, and so on.
User defined loaders are generally d ...
Posted on Mon, 10 Feb 2020 00:51:06 -0800 by Nilpez
In business system development, business data is usually exported to excel. If only one or two business functions are exported, we can directly write code to realize it. However, if there are many different business data to be exported, if we build workbook s, sheet s, row s and cell s through code, i ...
Posted on Mon, 10 Feb 2020 00:12:56 -0800 by ngu_tri
(1) Add dependency in pom.xml
<!--Remove springboot Default log-->
Posted on Sun, 09 Feb 2020 07:07:54 -0800 by Arc
Understand EventBus and realize its basic functions
Basic usage of EventBus and understanding of each step:
Note: it is only the initial implementation of basic processes, viscous events and sub threads are not in the scope, only for self memory
1, Register to listen to EventBus.getDefault().register(this);
Save the class ...
Posted on Sun, 09 Feb 2020 07:05:31 -0800 by pahikua
1, Business requirements
To achieve APP WeChat and Alipay payment, the back end needs to generate advance payment and respond to payment results; WeChat merchants adopt sub business mode.
2, Refer to official documents
Wechat ordinary merchant: https://pay.weixin.qq.com/wiki/doc/api/app/app.php?ch ...
Posted on Sun, 09 Feb 2020 06:35:22 -0800 by Kodak07