Session technology - cookie&&session
Conversation Technology
Session: a session contains multiple requests and responses One session: the browser sends a request to the server resource for the first time, and the session is established until one party is disconnected Shared data: data is shared among multiple requests within the scope of a session Client session Technology: cooki ...
Posted by tsapat on Tue, 19 Oct 2021 18:13:52 -0700
hibernate Association
1, One to many association configuration
Database: master table, slave table, associated by foreign key
Class:
class A{
B b;
}
class B{
}
Example: order and orderItem
order entity class
package com.sjy.entity;
import java.util.HashSet;
import java.util.Set;
public class Order {
// create table t_hibernate_order
// (
// order_id i ...
Posted by dale282 on Mon, 18 Oct 2021 10:38:11 -0700
Linux Enterprise Operation and maintenance 6.4 -- nginx+php, tomcat+memcache cross storage
catalogue
PHP introduction
1.PHP source code compilation
php Download
Software compilation
2. Configuration of PHP FPM file
3.nginx+php-fpm
4. Add memcache module in php
Software download
Build nginx cache and add memcache function module
5. Configure the php loading module openresty
Download module
&n ...
Posted by ktstowell on Wed, 13 Oct 2021 06:16:39 -0700
[Spring Boot] Spring Boot Tomcat connection pool usage example
This page will introduce an example of Spring Boot Tomcat JDBC connection pool.
Tomcat connection pool supports high concurrency environment with high performance.
Tomcat connection pooling is very simple because its implementation is very simple.
Tomcat connection pool has the ability to configure custom interceptors to better handle id ...
Posted by AP81 on Fri, 24 Sep 2021 02:07:40 -0700
Servlet (knowledge point + instance project)
Previous review
1. What is API:
① API is application programming interface; ② It includes source code, bytecode and help documents (note that the version number is consistent).
2.JavaSE and JavaEE:
① JavaSE: <1> Javase is the standard version of java and has a set of basic class libraries; <2> The source code is sto ...
Posted by Dale_G on Mon, 20 Sep 2021 11:38:53 -0700
jsp - initial jsp and servlet
1, JSP
JSP is a special file format. It can embed Java code in html, but it is essentially a subclass of Servlet
JSP execution process: The browser requests JSP from the server - > the server finds the corresponding JSP file - > translates it into Java code and compiles it for execution - > returns the execution result to the se ...
Posted by gerrydewar on Sun, 19 Sep 2021 04:18:36 -0700
linux series: tell him he doesn't know kill at all
brief introduction
I have dealt with many programmers. These programmers may be familiar with several ways of writing for traversal, but they know nothing about the environment in which the written program is deployed. I bet few programmers know how tomcat works after spring boot. For them, running a jar package is done.
The advanced nature o ...
Posted by GoodGuy201 on Sat, 18 Sep 2021 03:32:31 -0700
tomcat source code analysis-executor and its implementation StandardThreadExecutor
executor
Executor is the engine, user requests are processed by executor, perception tells us this should be a multi-threaded, thread pool container, let's first look at the relationship between classes;
public interface Executor extends java.util.concurrent.Executor, Lifecycle {
public String getName();
@Deprecated
void execute ...
Posted by dustinkrysak on Fri, 10 Sep 2021 20:18:47 -0700
Implementation of servlet, relocation, forwarding, and simple login and registration interface in Java
1.Servlet annotation and configuration file writing
1.1 writing method of configuration file [if Servlet version is low]
1. You need to write the configuration in the web.xml file
Find the resource web.xml
First, create a test class to inherit HttpServlet and override doGet and doPost methods
package com.javacoffee.test;
import java ...
Posted by dheeraj on Fri, 10 Sep 2021 10:10:41 -0700
[Jsp] lesson 1 Introduction and introduction to Jsp network programming
This article uses jdk1.8 version and eclipse to develop the code under the software environment. Beginners should install the environment first. If necessary, please check it
[Java] JDK installation and environment configuration
[Java] Eclipse installation and J2EE development environment configuration
Introduction to Web server
}
Web
S ...
Posted by frenchy373 on Fri, 10 Sep 2021 02:00:55 -0700