persepolis in open source code learning [2]

  1, Download Interface   1. Main interface download display MainWindow first initializes aria and starts aria2. The startup method is in download.py.  # start aria2         start_aria = StartAria2Thread()         self.threadPool.append(start_aria)         self.threadPool[0].start()         sel ...

Posted by 0riole on Sun, 23 Feb 2020 00:38:50 -0800

Principle analysis of mybatis Spring integration

I have combed the workflow and key source code of MyBatis when it is used alone. Now let's see how MyBatis works when it is integrated with Spring Start with use Spring integrates MyBatis 1. Introduce dependency. In addition to the dependency of MyBatis, you need to introduce the dependency of MyB ...

Posted by juschillin on Sat, 22 Feb 2020 20:43:01 -0800

Get a thorough understanding of Auto-assembly and Autoowired in Spring

Untitled 1. Automatic assembly When Spring assembles Bean properties, it is sometimes quite clear that a reference to a Bean needs to be assembled to the specified properties.For example, if there is only one Bean of type org.mybatis.spring.SqlSessionFactoryBean in our application context, then any ...

Posted by 990805 on Sat, 22 Feb 2020 16:17:00 -0800

python3-cookbook notes: Chapter VI Data Encoding and Processing

Each section in the python3-cookbook explores the best solution of Python 3 to a given problem in three parts: problem, solution, and discussion, or how Python 3's own data structure, functions, classes, and so on, can be better used in a given problem.This book is very helpful for understanding Python 3 and improving Python programming capabil ...

Posted by Slashscape on Sat, 22 Feb 2020 08:48:46 -0800

Take you by hand to read the Mybatis Source Execution

Preface As mentioned in the previous article How MyBatis builds configuration classes Yes, I also said that MyBatis is mainly divided into two phases in the running process, the first is building, the second is executing, so this article will take you to see how MyBatis goes from building to executing our first SQL statement.This part of the co ...

Posted by rorobobo on Fri, 21 Feb 2020 19:46:42 -0800

Notes for MappingJackson 2HttpMessageConverter

Handle conversion of Date type fields to timestamps in Databases There are two ways to solve the date conversion Json problem: 1. (Not recommended) Local modification, custom annotation to convert date type to Date type. 2. (strongly recommended) Global modification, configure in XML (Spring MVC) or in Application.Java startup classes (Spring b ...

Posted by bing_crosby on Fri, 21 Feb 2020 08:30:05 -0800

2020.2.21Menu and PopupWindow

menu menus and windows System menu OptionsMenu Code display Effect display Matters needing attention Context menucontextmenu Code display Effect display Matters needing attention Pop-up Menu Code display Effect display PopupWindow window Code display Effect display Matters needing attention ...

Posted by LanHorizon on Fri, 21 Feb 2020 07:15:11 -0800

Day37 -- dynamic sql statement of MyBatis

MyBatis part2 Article directory MyBatis part2 Many to one processing One to many processing Dynamic SQL IF chooose(when,otherwise) trim(where,set) Foreach Before knowing many to one and one to many, the feeling after learning is like learning the joint table query in MySQL statements (there ...

Posted by ocpaul20 on Fri, 21 Feb 2020 05:42:24 -0800

Detailed use of Android official architecture component Navigation

Preface Some time ago, when I was doing project development, I encountered several small problems in Fragment management. I always felt that the encapsulated Fragment manager was not elegant at this stage. This has become the Navigation library that I am determined to learn from Jetpack, which was lau ...

Posted by corruption on Thu, 20 Feb 2020 23:04:06 -0800

How to set space between listView projects in Android

I try to use marginBottom on listView to make room between listView items, but they are still attached together. Is it possible if so, is there a specific way to do it? My code is as follows <LinearLayout android:id="@+id/alarm_occurences" android:layout_width="fill_parent" android:orientation="vertical" android:layout_height="fill ...

Posted by Majes on Thu, 20 Feb 2020 02:29:04 -0800