Tag:java

  • TabLayout pits encountered in use and Solutions

    Time:2019-8-24

    Modify the pit of underline width The results are as follows: Code implementation: If we want to achieve this effect, the most important control is the underline part. There are many articles on the Internet that modify the width of the underline by reflection, but if this code achieves the desired effect, it will be […]

  • Deeplink How to Improve App Conversion Rate and Retention Rate

    Time:2019-8-24

    In the era of mobile internet, information sharing and dissemination is undoubtedly the key to the growth of App drainage. Instead of spending a lot of energy and cost to find channels and hard promotion, it is better to start with details and use the fastest and easiest way to realize Deeplink technology, break the […]

  • Java Design Patterns – Six Principles

    Time:2019-8-24

    1. Single Responsibility Principle (SRP) Definition There should never be more than one reason for a class to change. There should be and only one cause for class changes In other words, an interface or class has only one responsibility benefit The complexity of classes is reduced and the responsibilities to be fulfilled are clearly […]

  • Json-path Learning Notes

    Time:2019-8-24

    Json JavaScript Object Notation (JSON)Is a lightweight, text-based, cross-lingualData exchange format。 It derives from the ECMAScript Programming Language Standard. JSON defines a set of portable formatting rules for representing structured data. brief introduction JSON is a text format for structured data serialization. JSON contains four basic types (string, number, Boolean and null) and two structural […]

  • Bridge mode

    Time:2019-8-24

    Bridging mode I. Bridging Mode 1.1 Definition The abstraction and realization are decoupled so that they can change independently. 1.2 Roles Implementor. Abstraction. 2. Realization 2.1 Creating Business Implementation Interfaces public interface IImplementor { void print(); } 2.2 Create specific implementation classes for business implementations public class ImplementorA implements IImplementor{ @Override public void print() { […]

  • Tomcat starts log: SLF4J: Class path contains multiple SLF4J bindings.

    Time:2019-8-24

    When Tomcat was recently launched, you saw the following output information:SLF4J: Class path contains multiple SLF4J bindings.SLF4J: Found binding in [jar:file:/D:/apache/tomcat/apache-tomcat-8.5.16/webapps/ROOT/WEB-INF/lib/log4j-slf4j-impl-2.9.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]SLF4J: Found binding in [jar:file:/D:/apache/tomcat/apache-tomcat-8.5.16/webapps/ROOT/WEB-INF/lib/slf4j-log4j12-1.7.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]SLF4J: See http://www.slf4j.org/codes.ht… for an explanation.SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]It is accompanied by a warning of serious errors. Open tomcat’s log record and see the following error message:javax.management.InstanceNotFoundException: com.alibaba.druid:type=DruidDataSourceStat…….. […]

  • MyBatis Plug-in Use–Paging Plug-in and Performance Interceptor

    Time:2019-8-24

    There’s a lot of information on PageHelper. The author’s documentation is comprehensive. I’m just recording my own configuration and usage here.Required jar packages:jsqlparser-0.9.5.jarandpagehelper-5.0.0.jar XML Configuration Configuration in spring configuration file: Create MyBatis SqlSession Factory and specify data sources <bean id=”sqlSessionFactory” class=”org.mybatis.spring.SqlSessionFactoryBean”> <!– <property name=”configLocation” value=”classpath:mybatis-config.xml” /> –> <property name=”dataSource” ref=”dataSource” /> <property name=”mapperLocations” value=”classpath:com/yupont/gs/dao/mapper/*.xml” ></property> […]

  • Java Dry Cargo Knowledge Deeply Understanding Internal Classes

    Time:2019-8-24

    Preface When it comes to internal classes, you are not unfamiliar with them, and they are often used when instantiating containers. However, the specific details of the internal class grammar, principles and implementation of what can be quite strange to many people, here is a summary, I hope to improve the understanding of the internal […]

  • Gson and List Objects’Matching Tour

    Time:2019-8-23

    With the improvement of people’s living standard, the channel of matchmaking between people has been further improved. Recently, I occasionally saw several variety shows of dating, whether civilians or stars. It can be seen that the tide of matchmaking is coming. That’s not why two old guys, Google and Java, can’t sit still, thinking that […]

  • Welcome to the api-doc wiki!

    Time:2019-8-23

    Welcome to the api-doc wiki! original intention The reason is simple. The main reason is Simplify the compilation of interface documents Faster visibility of interface modifications Main role api-docThe main function is generation.java apiDocumentation, it expandsJavaDocStandard annotations, without using annotations, reduce intrusion. At the same time, you can regulate yourjavaDocument specification. principle First of all, […]

  • Json-path Learning Notes

    Time:2019-8-23

    Json-smart This article mainly focuses on code examples, because the official document Json-smart and API can not be seen on google. So only a few code examples are given. Because the next Json-path underlying default is Json Smart. JsonSmart doesn’t have much source code, so you can check it out if you’re interested. Resolving Strings […]

  • Compile Android source code under Mac and import IntelliJ IDEA for source code reading

    Time:2019-8-23

    MacOS High Sierra Version 10.13.4 Xcode 9.3 AOSP branch: android-8.1.0_r20 Prepare compilation environment Specific reference to official documents Install jdk8u45 or newer Install the Xcode command line xcode-select –install Install other packages needed for compilation Installation using Homebrew (MacPorts is used for official documents) brew install gmake libsdl git gnupg _NOTE_ gmake can be installed […]