Connect Servlet to JDBC to realize page Jump

1. First, build a static HTML page for display. The page is simple and only needs a form form <form action="Cc" method="post"> User name < input type = "text" name = "name1" > Password < input type = "password" name = "pass" > <input type="submit"> ...

Posted by Arc on Sun, 03 May 2020 03:00:03 -0700

File upload learning record used in Java Web project (1)

File upload learning record used in Java Web project (1) Introduction: File upload is a commonly used function in development. I will mainly introduce the implementation of basic file upload function with commons-fileupload-1.2.1.jar package, that is, file upload to the specified directory, and introduce the relevant classes and methods use ...

Posted by hypuk on Sun, 03 May 2020 02:26:04 -0700

Model layer - 9: Query set API

This section details the API of the query set, which is based on the following model, the same as the one in the previous section: from django.db import models class Blog(models.Model): name = models.CharField(max_length=100) tagline = models.TextField() def __str__(self): # __unicode__ on Python 2 return sel ...

Posted by Sneo on Sat, 02 May 2020 12:02:14 -0700

Implement a simple database connection pool

Explain See the article of the head of the official account, and refer to a simple database connection pool. text ConnPool connection pool class must implement javax.sql.DataSource interface package com.datasource.connpool; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import ...

Posted by buzzby on Sat, 02 May 2020 08:45:51 -0700

Regular backup of linux mysql

The project needs to back up the database regularly. Here are your own operation notes 1. Check the disk space    # df -h Filesystem Size Used Avail Use% Mounted on /dev/vda1 40G 3.6G 34G 10% / tmpfs 16G 0 16G 0% /dev/shm This is my current situation of linux server. I don't know why it's like this (I'm ...

Posted by joozt on Sat, 02 May 2020 07:56:12 -0700

Oracle introduction 1

oracle installation, user authorization, table operation, data type, ddl table, dml data. Learning video: https://www.bilibili.com/video/BV1tJ411r7EC?p=15 Baidu cloud installation package is attached to the installation tutorial: https://blog.csdn.net/qq_40774525/article/details/79919057  oracle Baidu cloud installation package: https://pan.b ...

Posted by j8h9x on Sat, 02 May 2020 03:00:52 -0700

Use of ssdb queues

Recently contacted with ssdb, I feel that it is similar to redis. For the time being, I haven't studied too much. Anyway, even the command is almost used. The current framework is yii Requirements: Due to the large amount of data exported by users, in order to monitor the memory utilization of the server, the task is queued in the form of q ...

Posted by pulsedriver on Sat, 02 May 2020 01:31:41 -0700

[data structure conversion] [time] 01-16

Data structure transformation Preface In production and life, many enterprises use sql database. In business, in order to reduce database access and data transmission to the front, I choose to change the data format Through the two-dimensional data format, it is converted into a tree structure. Since I have been in the position ...

Posted by sorin1982 on Sat, 02 May 2020 01:27:36 -0700

SPARQL basic mode query

The last one is a brief introduction to SPARQL. This article introduces the basic schema query of SPARQL Still use the example from the previous article: <rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#' xmlns:vCard='http://www.w3.org/2001/vcard-rdf/3.0#' > <rdf:Description rdf:about="http://somew ...

Posted by Levan on Fri, 01 May 2020 22:27:02 -0700

Create users for the mysql container of docker

Environmental Science macOS 10.13.3 docker 17.12.0-ce mysql container information CONTAINER ID: 478bbac9137b IMAGE: mysql:5.7.21 PORTS: 0.0.0.0:3306->3306/tcp NAMES: mysql.5.7.21.plus Preface Currently, you use the MySQL container of docker to use mysql. As long as you run the container, you can use the local t ...

Posted by Randwulf on Fri, 01 May 2020 19:03:19 -0700