Java import Excel tool class tutorial

Preface: This tool class provides the excel import function. Through the reflection mechanism, the data in excel is mapped to the entity class to obtain Excel data. The tool class depends on the org.apache.poi package. It supports RESTful API and Spring MVC. I. supporting functions of this tool class: Support File type impo ...

Posted by Forever_xxl on Mon, 02 Dec 2019 19:10:28 -0800

Direction resolution of django template: generate link address based on url

Environment the same django article. web services running django:  cd py3/django-test1/test4  python manage.py runserver 192.168.255.70:8000 First, use a tag hyperlink in html to automatically match the url route of the application, and then display the specified html page: Edit view function: vim bookshop/views.py from django.shortcuts imp ...

Posted by Hoppus on Mon, 02 Dec 2019 08:15:47 -0800

Spring @CrossOrigin annotation principle

In real development, we inevitably encounter cross domain problems. In the past, I only knew about the solution of jsonp. Later, I heard that spring can solve cross domain problems only by joining @ CrossOrigin. In the spirit of curiosity, I read the working principle of @ CrossOrigin and wrote this blog. Let's start with the principle: a ...

Posted by siri_suresh on Mon, 02 Dec 2019 04:40:03 -0800

Summary of JavaScript basic video tutorial (Chapter 081-090)

<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>081-090 Chapter summary</title> </head> <body> <pre> 081. Date object //Using Date object to represent a time in JS </pre> <script type="text/javascript"> console.log("--081--"); //If you use the ...

Posted by wrathican on Mon, 02 Dec 2019 01:53:19 -0800

One article explains 10 minute quick start Python 3

Python was designed by Guido van Rossum in the early 1990s. It is one of the most commonly used programming languages today. Its syntax is simple and elegant, almost executable pseudo code. I don't understand in learning Python and recommend to join the communication group No.: 864573496 There are like-minded partners in the group ...

Posted by Dragoa on Mon, 02 Dec 2019 01:44:34 -0800

Summary of JavaScript basic video tutorial (Chapter 051-060)

<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>051-060 Chapter summary</title> </head> <body> <pre> 051. Function introduction - Function is also an object - Functions can encapsulate some functions (codes) and execute them when necessary - Function can save some ...

Posted by kentopolis on Mon, 02 Dec 2019 01:35:12 -0800

Introduction to IOC annotation development of Spring 1

The basic knowledge points are as follows: Introduce annotation constraints and configure component scanning Annotation on class: @ response @ Controller @Service @Repository Annotation @ value of common attribute Annotation @ Resource @ Autowired @ Qualifier for object properties Bean life cycle, initialization and destruction: @ PostConstruc ...

Posted by sanand158 on Sun, 01 Dec 2019 20:13:59 -0800

jQuery----jquery to implement Tab key switch

Using Jquery to switch the tab key, the code is simple and easy to understand, and the implementation logic is clear. The specific summary is as follows:   Demand analysis: When the mouse enters the tab switch module, the upper border of the current module of the mouse changes to red, and the corresponding product name is displayed. After the m ...

Posted by mckooter on Sun, 01 Dec 2019 16:11:46 -0800

python object oriented (reflection)

1. isinstance, type, issubclass isinstance: judge whether the object you give is of type xx Type: returns the data type of xxx object issubclass: a subclass to determine whether the xxx class is xxx class Animal: def eat(self): print("Just woke up to eat something") class Cat(Animal): def play(self): print("Cats lik ...

Posted by Yeti on Sun, 01 Dec 2019 13:53:54 -0800

Several possible solutions for font penetration and darkening in Duilib

Abnormal, font penetrating, bright and dark  Normal phenomenonRecently, when using the Duilib lightweight UI library as the interface, there are some problems with fonts. I did the operation after laying a layer of mask. Here are several possible situations I. wrong property setting For example, the SetShortcut property of t ...

Posted by shivangp on Sun, 01 Dec 2019 12:12:12 -0800