Android serial 11 - excellent practice of news app
1, Using shards for a best practice, we write a news app
1. First, create a news class
package com.example.fragmentbestpractice;
public class News {
private String title;
private String content;
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
...
Posted by TonyIOD on Sun, 17 May 2020 09:03:54 -0700
Deploy multiple projects in Tomcat, and configure the process of secondary domain name through Nginx reverse agent
Purchase domain name. Example: example.com
Set multiple secondary domain names. As shown in the figure:
To configure the tomcat file:
Modify the server.xml File:
The following configuration configures three containers with three different ports.
Please note three points: ① port number: Connector port; ② container name: portservice ...
Posted by kenchucky on Sun, 17 May 2020 08:11:31 -0700
Android custom ToolBar and immersive
The ToolBar is Android Five A new navigation control is introduced to replace the previous ActionBar. Because of its high customizability, flexibility, Material Design style and other advantages, more and more apps also use toolbars.Immersive status bar is from android Kitkat (Android Four point four )In the beginning, it can be set to the same ...
Posted by bios on Sat, 16 May 2020 07:04:15 -0700
MyBatis Series Talking about SQL Execution Process Analysis
Catalog
Use Mybatis on its own
Mybatis Execution Process
SqlSessionFactory\SqlSession
MapperProxy
Excutor
Use Mybatis on its own
This article focuses on analyzing the Mybatis framework's processes for executing SQL. Recalling that we used the Mybatis semi-automation framework on our own, we needed to follow t ...
Posted by BradZynda on Fri, 15 May 2020 17:17:44 -0700
C ා use Topshelf to create Windows service
I. project creation
Create a console application. Right click the project - > manage NuGet packages - > topshelft and Topshelf.Log4Net.
II. Topshelf configuration
Generally speaking, the service will set how often to perform tasks. Here, use System.Threading.Timer to make a simple log record and write the log to the Debug\Log folder.
2. ...
Posted by HA7E on Fri, 15 May 2020 07:26:46 -0700
Log Series 2 - Profile Details
Catalog
1.logback Composition of configuration file
1.1 rootnode
1.2.property node
1.3.appender node
1.3.1 ch.qos.logback.core.ConsoleAppender
1.3.2 ch.qos.logback.core.FileAppender
1.3.3 ch.qos.logback.core.rolling.RollingFileAppender
1.3.4 ch.qos.logback.classic.AsyncAppender
1.3.5 rollingPolicy
2. Examples of configuration files
3 s ...
Posted by member on Thu, 14 May 2020 18:44:30 -0700
Log series 1 -- slf4j log framework principle
catalog
1. Preface
2. Log face
3. Log Library
4. Log adapter
5. Selection of log base
6.logback.xml configuration file
1. Preface
When it comes to logging tools, you must have heard these terms in your daily work or study: log4j, logback, jdk-logging, slf4j, commons-logging, etc. What is the relationship between them and what is their role ...
Posted by dk4210 on Wed, 13 May 2020 19:21:52 -0700
Node.js Part 12: random verification code of pictures
1. Why random verification code is needed
Prevent malicious machine registration. The role of verification code: effectively prevent this problem from a specific registered user using a specific program brute force to try to login, in fact, verification code is the current way of many websites, using a relatively simple way to achieve this fun ...
Posted by Naez on Wed, 13 May 2020 10:49:20 -0700
First line kotlin series kotlin button click event
Button findViewBuId
<Button
android:id="@+id/mButton4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Jump"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toBottomOf="@+id/mB ...
Posted by Aeglos on Wed, 13 May 2020 08:50:10 -0700
Do you know how Spring resolves configuration classes?
Do you know how Spring resolves configuration classes?
Catalog
Second line of code in SpringClassPathBeanDefinitionScanner Source Analysis1. Complete the scan by findCandidateComponents method2. Execute the postProcessBeanDefinition method3. Execute the processCommonDefinitionAnnotations method4. Register BeanDefinitionHow does Spring resolve ...
Posted by bigger on Sun, 10 May 2020 18:13:22 -0700