Experience and skills summary of Python Django development

Article directory 1. Data transfer between front and back stations 2. Several common methods of interacting with database and returning data 3. Solutions of multiple buttons corresponding to one form 4. Form control and operation in HTML 5. Message frame message usage 6. Auto now, auto now add of Dat ...

Posted by Ilovetopk on Sat, 18 Jan 2020 04:11:04 -0800

Spring-1 - important concepts

1, IOC and DI IOC (reverse control): the creation of objects is handed over to spring for configuration. DI (dependency injection): sets values to properties in a class.Relationship between IOC and DI: DI cannot exist alone and needs to be completed on the basis of IOC. 2, Scope of Bean Singleto ...

Posted by Willburt on Sat, 18 Jan 2020 00:04:01 -0800

python (program structure 2)

Exception handling Error abnormal 1. Definition: errors detected at run time. 2. Phenomenon: when an exception occurs, the program will no longer execute downward, but will go to the call statement of the function. 3. Common types of exceptions: - name error: variable not defined. - type error: differen ...

Posted by jesbin on Fri, 17 Jan 2020 08:00:42 -0800

Advanced properties of thread control -- Realization of functions such as mutex and lock

Content: 1. What is one-time initialization? Example 1: one time initialization verification of pthread ﹣ once function: #include"stdio.h" #include"unistd.h" #include"sys/types.h" #include"pthread.h" #include"stdlib.h" #include"string.h" pthread_once_t once = PTHREAD_ONCE_INIT;//Declare global var ...

Posted by srdva59 on Fri, 17 Jan 2020 05:01:52 -0800

Log4j2 configuration and customization

The new requirements need to make some customized things on log4j, so the log4j2 is supplemented To configure Let's look at the traditional configuration of log4j2 <?xml version="1.0" encoding="UTF-8"?> <Configuration status="WARN"> <properties> <property name="log_path"&gt ...

Posted by fluteflute on Fri, 17 Jan 2020 03:18:16 -0800

Chapter 6 Feign parameter binding

Parameter binding stay The fifth chapter Feign is used to implement a REST service binding without parameters. However, in the actual business, it is much more complicated than this. Different types of parameters are passed in at various locations of HTTP requests, and the returned parameters may als ...

Posted by halex on Fri, 17 Jan 2020 00:55:22 -0800

[java] ConcurrentHashMap1.7 source code details

Catalog Preface HashTable and ConcurrentHashMap data structure Class Segment attribute put(K key, int hash, V value, boolean onlyIfAbsent) remove(Object key, int hash, Object value) Class HashEntry attribute Construction method Core method put(K key, V value) get(Object key) size() remove(Object k ...

Posted by juancarlosc on Wed, 15 Jan 2020 23:15:36 -0800

Spring Boot configuration unified format Result return value

In web development, the separation of front and back development has been deeply rooted in the hearts of the people. Such a development mode is very useful for the development of elegant and beautiful web applications. I have consulted some materials on the Internet and learned to use the unified format ...

Posted by bobbybrown on Wed, 15 Jan 2020 19:52:49 -0800

How easy is the Android floating window to implement?This is easy to do with kotlin!

Starting with business applications, this paper abstracts a floating window tool class from scratch that can be used to display floating windows on any business interface.It can manage multiple floating windows at the same time, and floating windows can respond to touch events, can be dragged, and have side animations. The sample code is writt ...

Posted by mrdave on Wed, 15 Jan 2020 10:33:32 -0800

Common features of vue. Form, calculated properties, custom, listener, filter, lifecycle

Form operation Form scope modifier Number: converts the form value to a number data:{ inputmsg:'123' } <input type=text v-model.number="inputmsg">//The value of this form is output as data trim: remove spaces at the beginning and end of the form data:{ inputmsg:' 123 ' } <input ty ...

Posted by OuchMedia on Wed, 15 Jan 2020 04:11:00 -0800