Java language -- user login case

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

Keep / save / restore scroll position when returning to ListView

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? #1 building 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

Java entry note 07 enumeration class

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

[Note 6 - payment and order module] independently completed the development of enterprise Java e-commerce website (server side) from 0

Payment module 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

Mybatis plus learning notes: code generator

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. Project structure: Before generation: After generation: pom.xml: <dependencies> <dependency> <groupId>org.springframework.boot& ...

Posted on Mon, 10 Feb 2020 07:49:40 -0800 by Mahfouz

JVM learning classadder parent delegation mechanism

JVM learning (7) - two parent delegation mechanism of class adder Class loader The hierarchical system of classloader in Java Root loader 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

Encapsulate POI excel export and realize export by configuring xml template

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

SpringBoot integrated Log4j

(1) Add dependency in pom.xml <!--Remove springboot Default log--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter</artifactId> <exclusions> <exclusion> <groupId>org.spri ...

Posted on Sun, 09 Feb 2020 07:07:54 -0800 by Arc

Understand EventBus and realize its basic functions

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

Java realizes WeChat (main and subsidiary business mode) and Alipay payment.

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