3. Loading and using properties file

1, About Properties The Properties class inherits from the HashTable, and the methods provided are very similar to the implementation class HashMap of Map. It has been around since the early days of Java programming, and has changed little. The Tiger version of J2SE enhances this class. It can not only specify multiple key value pairs separated ...

Posted on Tue, 31 Mar 2020 21:03:59 -0400 by indigobanana

How to integrate Jedis with SpringBoot

Add jedis dependency Add dependency in project pom.xml file <!-- Add to jedis rely on --> <dependency> <groupId>redis.clients</groupId> <artifactId>jedis</artifactId> </dependency> Add redis configuration Find the application.properties file in the project resources directory to add reids co ...

Posted on Tue, 31 Mar 2020 20:31:03 -0400 by Bunkermaster

Mybatis framework 1: build test

The Mybatis framework no longer introduces: There are some problems in JDBC: 1. Frequent connection and release of resources waste memory 2. The coding is not easy to maintain So we have a framework to simplify database operation: Hibernate, Mybatis and so on. Here we introduce Mybatis   Download address: https://github.com/mybatis/mybatis-3/re ...

Posted on Tue, 31 Mar 2020 16:30:33 -0400 by david-remone123

Development and adaptation of Android large screen (advertising screen)

In the development of large screen advertising machine, it is found that the original design of the code in the advertising machine display adaptation problems.. Solutions found online.. Dimensional adaptation Create values of corresponding resolution under res, such as values-1280x720,values-1920x1080 Next, create ...

Posted on Tue, 31 Mar 2020 16:02:21 -0400 by neh

Learning notes "Android group English biography" -- Chapter 4 tips for using ListView

Learning notes "Android group English biography" -- Chapter 4 tips for using ListView Chapter contents: Chat list Method 1: Provides two xml message layouts (receiver's, sender's), using the @Override public int getItemViewType(int position) { ChatListBean bean = mData.get(position); return bean.getTy ...

Posted on Tue, 31 Mar 2020 13:20:55 -0400 by m4tt

maven's method of adding dependency package and local dependency package

1. overview In normal development, there are some Jar packages that are not included in Maven's central warehouse for various reasons, so they need to be introduced locally. 2. Copy to project root The root directory of the project is the same level directory as the pom.xml file. You can create the folder lib under the root directory of the ...

Posted on Tue, 31 Mar 2020 07:26:54 -0400 by lotrfan

Android transition animation

Transition animation Scene Transition TransitionManager Code animation xml animation Transition animation Transition animation is a new animation framework introduced in Android 4.4 (API > = 19). In essence, it encapsulates attribute animation to facilitate the transition animation effect of Activity or View. ...

Posted on Tue, 31 Mar 2020 06:51:07 -0400 by MarCn

BottomSheet + ToolBar + ListView use posture correctly

Effect preview Or bring SearchView layout 1.Fragment or Activity <?xml version="1.0" encoding="utf-8"?> <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.androi ...

Posted on Tue, 31 Mar 2020 02:48:42 -0400 by nitestryker

spring traditional xml configuration okhttp3

problem The back-end service needs to use http client to request other service support. In the project, HttpClient needs to be replaced with okhttp. Why should okhttp be replaced? The advantages and disadvantages between the two are not discussed here. This article focuses on integrating okhttp with Spring's traditional xml configu ...

Posted on Tue, 31 Mar 2020 02:35:31 -0400 by Joseph Witchard

[MyBatis] learning summary V: resultMap

Let's talk about resultMap in this section. Because a large number of instance codes have been provided in the previous sections, this section will not be introduced any more. You can enter my github, clone or download to import your tool try run (Methods) for what you need demo2 Welcome Star or Follow Here's a tip to share: domain alias @ Alia ...

Posted on Tue, 31 Mar 2020 00:23:21 -0400 by ahzulfi