Android product display cases ListView and SQLite
1. activity_main.xml
Add the LinearLayout of the horizontal layout in the LinearLayout of the vertical layout, and then add EditText product name, EditText amount, ImageView add button
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://sch ...
Added by subrata on Thu, 07 Nov 2019 01:13:34 +0200
Apk error reported for Android N and above
Apk error in Android N installation
android.os.FileUriExposedException: file:///storage/emulated/0/download/1558506119385taiheApp.apk exposed beyond app through Intent.getData()
Because Android 7.0 added "private directory restricted access"
"Restricted access to private directory" means that in Android 7.0, in order to ...
Added by turtleman8605 on Thu, 07 Nov 2019 01:01:03 +0200
Spring Boot log processing are you still using Logback?
▶ Log4j2 performance
https://logging.apache.org/log4j/2.x/performance.html
▶ Spring Boot dependency and configuration
Maven dependence
<!-- web -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<exclu ...
Added by SoundreameR on Wed, 06 Nov 2019 16:26:20 +0200
Independent completion of enterprise Java e-commerce website development (server side) from 0
Data table structure design
unique index ensures data uniqueness
CREATE TABLE `mmall_user` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'User table id',
`username` varchar(50) NOT NULL COMMENT 'User name',
`password` varchar(50) NOT NULL COMMENT 'User password, MD5 encryption',
`email` varchar(50) DEFAULT NULL,
`phone` varchar(20) D ...
Added by j007w on Tue, 05 Nov 2019 20:20:49 +0200
Mybatis reverse generation
Mybatis reverse generation
brief introduction
Reverse engineering literally means reverse generation engineering. Like hibernate, mybatis also has its own reverse engineering tools. I haven't done the reverse generation of hibernate
When using reverse engineering, it should be noted that the relationship between tables cannot be mapped In othe ...
Added by jason97673 on Sun, 03 Nov 2019 20:43:32 +0200
Android LocationManager obtains longitude and latitude information
Article directory
I. positioning introduction
Two, code
1. Instantiate LocationManager
2. Processing runtime permissions
3. Start request location
4. Positioning monitor
5. Update positioning
III. Demo download
I. positioning introduction
You can also use Android without using the third-party map SDK
Its own ...
Added by bunner bob on Sun, 03 Nov 2019 02:22:17 +0200
[system log note 1] - rich Log4j2 configuration
Log4j should be more familiar to you. Log4j2 is a relatively large upgrade of log4j. The bottom layer uses disruptor rewriting to optimize the asynchronous output log, which greatly improves the performance. The author has made performance comparison among log4j, logback and log4j2, and log4j2 does show absolute advantages. Not much to say, the ...
Added by npereira on Sat, 02 Nov 2019 22:03:08 +0200
Java back end dodge -- Spring Boot integrates Shiro
Shiro is a common security authentication framework, which is simple and practical. There are two ways to integrate Shiro in Spring Boot:
Implement the configuration in traditional SSM+Shiro in Java
Use Shiro's official automated configuration dependency
This article chooses the second practical way to integrate, but ...
Added by cmancone on Sat, 02 Nov 2019 20:15:43 +0200
Look at spring 5 annotation AOP
Change AOP in XML mode to annotation mode.
Step 1: annotation configuration business class
Annotate the ProductService class with @ Component("s")
package com.how2java.service;
import org.springframework.stereotype.Component;
@Component("s")
public class ProductService {
public ...
Added by saint959 on Thu, 31 Oct 2019 22:36:10 +0200
MyCat configuration and use
Mysql should also be installed on the MyCat host.
I. read write separation configuration:
1. Upload or download:
wget http://dl.mycat.io/1.6.7.1/Mycat-server-1.6.7.1-release-20190627191042-linux.tar.gz
2. Decompress:
tar xzvf /srv/ftp/Mycat-server-1.6.7.1-release-20190627191042-linux.tar.gz -C /usr/local/
3. Open the configuration ...
Added by hmmm on Thu, 31 Oct 2019 21:02:45 +0200