Memo mode of design mode

scene Protect the integrity of the saved state of these objects and the internal implementation from being exposed You need to store the state externally on the premise of getting the state. So that at some point, you can restore your previous state. role There are three conventional roles: Originator: primitive state class Memo: a specific ...

Posted by omelin on Sat, 07 Dec 2019 19:08:52 -0800

How Mybatis works

Objectives of this paper: Using the pure Mybatis framework to obtain data; Clarify the working process of Mybatis. Create project and run First, create maven project, and the process will not be repeated. The dependence is as follows: <dependencies> <dependency> <groupId>org.mybatis</groupId> <artifa ...

Posted by samsolomonraj on Sat, 07 Dec 2019 18:48:51 -0800

Configuration and common problems of jeecg code generator

Take mysql for example: diver_name=com.mysql.jdbc.Driver url=jdbc:mysql://192.168.*.*:3306/car?useUnicode=true&characterEncoding=UTF-8&useSSL=false username=root password=dp@ssord database_name=car jeecg_config.properties #code_generate_project_path project_path=D:\\SourceProject\\car #bussi_package[User defined] bussi ...

Posted by invinate on Sat, 07 Dec 2019 18:16:37 -0800

Advanced chapter: dockersurm of docker adjusts micro service and service configuration (29)

>Original article, welcome to reprint. Reprint please indicate: reprint from IT people's story meeting Thank you!>Original link address: Advanced chapter: dockersurm of docker adjusts micro service and service configuration (29) Last time, the swarm cluster environment has been set up. There are three virtual machines, server01, server0 ...

Posted by aclees86 on Sat, 07 Dec 2019 18:12:34 -0800

xutils3 database upgrade (markdown version)

xutils is a good android development framework, which reduces a lot of code in the process of using. But there are also a few things to pay attention to. For other uses, please see Detailed usage of xutils3 1. Notes Unlike the comments of scalpel, the comments of xutils are in runtime (ps: I don't understand either). It is found ...

Posted by jchemie on Sat, 07 Dec 2019 17:16:48 -0800

lua getting started demo (read by HelloWorld+redis)

1. lua introduction demo 1.1. Hello World!! Because I am used to using docker to install various software, this lua script also runs on the docker container Openresty is a variety of modules of nginx+lua, so you can install openresty directly in docker Modify the nginx.conf configuration file, and add lua_package_path "/usr/local/openresty/lu ...

Posted by HHawk on Sat, 07 Dec 2019 14:38:08 -0800

Java Web Learning - filters and listeners

Filter The basic knowledge is introduced in detail in the rookie course Rookie tutorial filter   <!--Prepare the first filter--> <filter> <filter-name>Filter1</filter-name> <filter-class>com.servlet.filter.Filter1</filter-class> </filter> <filter-mapping> <fil ...

Posted by snorky on Sat, 07 Dec 2019 13:56:58 -0800

The way of using JavaFX with embedded browser in swing and java

One background Swing can write a desktop program that can be opened as long as jre is installed on the machine. Can we embed web pages in swing? 2. JavaFX mode instance Embed a JavaFX web browser in Swing import java.awt.BorderLayout; import java.awt.Toolkit; import java.io.File; import javafx.application.Platform; import javafx.em ...

Posted by radar on Sat, 07 Dec 2019 13:33:37 -0800

Java sword finger offer 21-40 questions

Enter two integer sequences. The first sequence represents the push order of the stack. Please judge whether the second sequence is the pop-up order of the stack. Assume that all the numbers pushed into the stack are not equal. For example, sequence 1,2,3,4,5 is the pressing sequence of a stack, sequence 4,5,3,2,1 is a pop-up s ...

Posted by madhouse92 on Sat, 07 Dec 2019 13:16:13 -0800

Efficient string splicing in Go language

+ number splicing This kind of splicing is the simplest and easiest for us to use, because it is not limited to programming languages, such as Go language, Java, and they are + operators, which are calculated at runtime. var s string s+="Nickname?"+":"+"Zhiqiang 1224"+"\n" s+="Contact information QQ"+":"+"354662600"+"\n" fmt.Println(s) fmt spl ...

Posted by dan90joe on Sat, 07 Dec 2019 11:18:54 -0800