C ා basic SQL Server creates database and data table

(1) Database creation 1) Database classification System database and user database; distinguish database type by viewing object Explorer; Note: the master database should not be moved. This is the database of the database. We mainly study the user database; 2) User database file composition T ...

Posted by micknc on Fri, 31 Jan 2020 22:37:31 -0800

8. [kowtow to Spring] - IoC's parsing Bean: parsing the import tag

In blogs [kowtow to Spring] - IoC's registration BeanDefinitions According to the analysis in, there are two ways to parse beans in Spring: If the root node or child node adopts the default namespace, the ා parseDefaultElement(...) method is called for default label resolution Otherwise, the beand ...

Posted by gardner1 on Fri, 31 Jan 2020 21:48:34 -0800

Android custom ListView click event invalid

Because the built-in listview cannot meet the needs of the project, implement its own Adapter to inherit the ArrayAdapter to implement the Item project of the custom listview. Each item that appears and clicks on the ListView will not execute the onItemClick method in the setOnItemClickListener. The reason is that there are some sub controls ...

Posted by phphunger on Fri, 31 Jan 2020 14:57:21 -0800

Use FreeMarker to export word documents (support to export pictures)

1, Add maven dependency and import the jar package required by FreeMarker 1 <dependency> 2 <groupId>org.freemarker</groupId> 3 <artifactId>freemarker</artifactId> 4 <version>2.3.20</version> 5 </dependency> 2, Define word template file 3, Modify template xml file Save the word fi ...

Posted by Scip on Fri, 31 Jan 2020 00:45:55 -0800

Learning Android ConstraintLayout

Advantages: Reduce layout nesting Better performance More powerful Reference blog: Android ConstraintLayout use details ConstraintLayout fully parsed. Let's optimize your layout ConstraintLayout visual operation Performance advantages of ConstraintLayout Introduction steps compile 'com.android.support.constraint:con ...

Posted by new2code on Thu, 30 Jan 2020 23:46:12 -0800

Introduction to Android Development - Common UI controls

date: 2020-01-12 21:46:05 Article directory control Button TextView EditText ImageView ProgressBar AlertDialog ProgressDialog layout LenearLayout android:layout_gravity android:layout_weight RelativeLayout FrameLayout Percentage layout Other Custom control ListView Customizing the ListView UI o ...

Posted by cjmling on Thu, 30 Jan 2020 23:42:42 -0800

21 days to build a distributed crawler (I) urllib Library

1.1.usage of urlopen function #encoding:utf-8 from urllib import request res = request.urlopen("https://www.cnblogs.com/") print(res.readlines()) #urlopen Parameters #def urlopen(url, data=None, timeout=socket._GLOBAL_DEFAULT_TIMEOUT, # *, cafile=None, capath=None, cadefault=False, context=None): 1.2.urlretriev ...

Posted by greywire on Thu, 30 Jan 2020 20:29:55 -0800

SpringMVC Annotation Configuration

Configuring spring mvc with annotations (1) configuration file for spring mvc <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xsi:schemaLocation="htt ...

Posted by pwes24 on Thu, 30 Jan 2020 17:43:35 -0800

Maven modifies the default jdk13 version information to solve the problem of too low JDK version

The default jdk of Maven is version 1.5. It is too cumbersome to modify the jdk version again every time you create a new project, so the following methods can modify the default jdk version of Maven. Note: it's better to update Maven's version. The setting.xml jdk13 configuration is invalid when I use ...

Posted by lynwell07 on Thu, 30 Jan 2020 06:56:20 -0800

Java Web advanced filter

Filter Chapter 1 basic use of filter 1. Initial filter Filter - filter: Filter is a component of J2EE Servlet module The function of Filter is to block URL s in a unified way Filter is usually used for global processing at the application level Three elements of filter development: *Any filt ...

Posted by robot43298 on Wed, 29 Jan 2020 06:47:14 -0800