Basic usage of listview and litepal version 2.0
LitePal has written a previous article. It uses the version 1.6 of LitePal. I saw version 2.0 these days. In fact, there is no big change in version 2.0. Its basic usage is similar to that of 1.6. If you want to know the usage of version 1.6, you can visit: https://blog.csdn.net/qq_40205116/article/details/88741724 . After tha ...
Added by fitzbean on Thu, 05 Dec 2019 14:05:12 +0200
Various problems of configuring json in spinning
What I built is that springboot is version 4.x, which sometimes brings a lot of problems
Question 1
In the beginning, when we used the lower version, we configured json to return
<!--<!– https://mvnrepository.com/artifact/org.codehaus.jackson/jackson-core-asl –>
<dependency>
...
Added by p0pb0b on Thu, 05 Dec 2019 09:57:36 +0200
How to keep Android service alive
Supporting the original: http://tryenough.com/android-...
Two aspects can be taken into consideration for the life guarantee Service:
I. ways to change the Service itself
1. Improve Service priority
In the Android manifest.xml file, for the intent filter, you can set the highest priority through the android:priority = "1000" property ...
Added by tommynanda on Thu, 05 Dec 2019 07:53:46 +0200
Android Learning Grid View
I. Introduction:
GridView is a component that displays multiple pictures in the form of tables. It displays the content in the form of rows and columns. For example, to implement the nine palace diagram, GridView is the first choice.
2. Code block:
The students who read my last blog should know that it takes a lot of time to write all the steps ...
Added by undertaker16 on Thu, 05 Dec 2019 02:36:28 +0200
Notes arrangement of React beginner study -- Introduction and syntax of JSX
Let's look at this code first:
import React from 'react';
//In the final rendering, you need to call the react DOM library to render jsx to all pages
import ReactDOM from 'react-dom';
import * as serviceWorker from './serviceWorker';
let h = <React.Fragment>
<h2>hello</h2>
<ul></ul>
</React.Fragment ...
Added by ihcra on Tue, 03 Dec 2019 03:34:20 +0200
Android development WiFi signal detection
1. First, add the following code to the Android manifest.xml file to enable permissions:
<! -- access to WiFi status -- >
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
<! -- permission to change network state -- >
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE"/>
<! -- ...
Added by racerxfactor on Mon, 02 Dec 2019 01:09:30 +0200
spring boot2 using log4j2
spring boot uses logback by default. I've seen many places saying that logback consumes more performance than log4j. I haven't tried it, but I still use log4j more personally.
Look at pom dependency first
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter ...
Added by mitchell on Sun, 01 Dec 2019 23:00:56 +0200
SpringBoot 2.0 | SpringBoot + MyBatis Configure Multiple Data Sources
In the traditional monolithic architecture, one system corresponds to one database, but in a distributed system, such as micro-services, each service corresponds to one database. Due to business requirements, sometimes it is necessary to access data from multiple databases in one service. We need to configure multiple data sourc ...
Added by staffanolin on Sun, 01 Dec 2019 21:25:50 +0200
js export Excel table
js export Excel table
Direct code:
Red part: if there is a value such as "1 / 1" in the table data, it will be converted to the date "January 1" in the exported Excel, so the two sentences in red are added. If there is no such format in the return value, the red part can be left blank.
1 //Excel download
2 function base64 ...
Added by jmaccs64 on Sun, 01 Dec 2019 14:15:02 +0200
One to many and many to one XML configuration details of Mybatis Association query
Generally, dao, bean and XML files are generated automatically in the development process, and rarely write the configuration relationship of XML. Today, record the many to one and one to many situations in the associated query of mybatis.
First, there are two tables (Student table and Teacher table). In order to be more understandable, only th ...
Added by PHPQuack on Sun, 01 Dec 2019 09:34:41 +0200