Android daily learning: Android View Animation

introduce There are two kinds of view Animation: I. Tween Animation1. Scale is translated as "scale, scale", which is to scale the View in a specific range2. alpha realizes the effect of View hiding by changing the transparency of View3. translate is translated as "transfer", which is to move the position of View4. Rotate is ...

Posted on Wed, 13 Nov 2019 04:09:34 -0800 by techcone

The result processor of Mybatis

Preface Above How to map the method of Mybatis to XML SqlCommand and MethodSignature need to be instantiated. When MethodSignature is initialized, there is a parameter of resultHandlerIndex to specify whether the ResultHandler parameter is set. This paper focuses on how to use ResultHandler, how to trigger and how to customize the result handl ...

Posted on Wed, 13 Nov 2019 03:54:22 -0800 by mad4dweb

Mybaits source code analysis - how is Mybatis transaction managed by Spring? Is the Connection used in Mybatis and Spring transactions the same?

I don't know if some students have such a question. Why do you want to configure dataSource in Mybtis and Spring transactions? Is the Connection used in Mybatis and Spring transactions the same? Our common configurations are as follows <!--Conversational factory --> <bean id="sqlSessionFactory" class="org.mybatis.spring.SqlSessionFact ...

Posted on Tue, 12 Nov 2019 20:46:44 -0800 by ryanb

nginx enables gzip compression and static caching

The principle of nginx to realize resource compression is to intercept requests through the NGX ﹣ http ﹣ gzip ﹣ module, and gzip compression for the types that need to be gzip. This module is the default foundation, and can be opened directly without recompilation. Basic configuration # Open gzip gzip on; # The minimum file with gzip compre ...

Posted on Tue, 12 Nov 2019 00:23:24 -0800 by phpdragon

Mybatis Type Processor

Preface Above How Mybatis XML maps to methods Type processors are described, which are used in two places to set parameters to the database and to retrieve data from the result set. Specific type processors are retrieved from the type registrar according to different data types and processed separately. This article will focus on type processor ...

Posted on Mon, 11 Nov 2019 18:57:47 -0800 by Rob the R

SSM configuration Swagger2 interface document engine

POM To increase the dependency required by Swagger2, pom.xml is configured as follows: <!-- Swagger2 Begin --> <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactId> <version>2.9.2</version> </dependency> <dependency> ...

Posted on Mon, 11 Nov 2019 14:44:09 -0800 by cpetercarter

The effect of Spinner in Dialog

Copyright notice: This is the original article of xing'star. Please indicate the source for reprint! This paper is synchronized from http://javaexception.com/archives/91 Background: Remember a long time ago, when I met a demand scenario, I needed to display the Spinner in Android Dialog for selection. At that time, I was still confused. I do ...

Posted on Mon, 11 Nov 2019 08:19:18 -0800 by pureDesi

Scrapy crawls Douban book data and writes it to MySQL

Project address BookSpider introduce The main content of this article is to get all the book data under the classification and write it into MySQL Get ready Python 3.6, Scrapy, Twisted, MySQLdb, etc Demonstration Code I. create project scrapy startproject BookSpider #Create project scrapy genspider douban book.douban.com #Create a bean cr ...

Posted on Mon, 11 Nov 2019 06:28:55 -0800 by HokieTracks

Use of Android ActionBar and ToolBar

Reference resources 1,ActionBar and ToolBar in android 2,"Material Design learning notes" topic and AppCompatActivity (with demo) 3,Android Development: the most detailed summary of Toolbar development practice 4,Detailed explanation of Toolbar setting - pit dropping summary Preface Since Android 5.0, AppCompatActivity has re ...

Posted on Mon, 11 Nov 2019 01:57:52 -0800 by toolman

azure upload blob to ams(CreateFromBlob)

Encountered error: The destination storage credentials must contain the account key credentials, parameter name: destinationStorageCredentials Solution: the parameter values of AccountName and AccountKey are wrong AccountName is the name of the storage account How to obtain the AccountKey value: open the storage account > access secret ke ...

Posted on Sun, 10 Nov 2019 14:02:00 -0800 by johnkelly