6, Java Web Foundation (session technology -- detailed explanation of cookie s and sessions, introduction to JSP)
1, Conversation Technology
1. Concept
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 disconnects
2. Functions:
Data is shared between multiple requests within the scope of a session
3. Method:
Clien ...
Posted by sungpeng on Sun, 03 Oct 2021 18:47:03 -0700
[crazy God Theory] JavaWeb notes (middle)
JavaWeb (medium)
Cookie s and sessions
1. Conversation
Session: users open a browser, click many hyperlinks, access multiple web resources, and close the browser. This process can be called session;
Stateful conversation: when a classmate comes to the classroom next time, we will know that the classmate has been here, which is called st ...
Posted by Russ on Fri, 24 Sep 2021 20:10:54 -0700
Hiberante reverse-generates database tables
1,hibernate.cfg.xml
Comment out this section of configuration
<!--Update database level automatically-->
<!--<property name="hbm2ddl.auto">create</property>-->
2. New Generate Database Table Tool Class
public class HibernateSchemaExport {
static Session session;
static Configuration ...
Posted by rigi2 on Sat, 18 Jul 2020 08:49:13 -0700
express Learning (3) - cookie s and session s
express Learning (3) - cookie s and session s
Cookies exist in the browser and can only store up to 4K of data, which is not safe
Session exists in the server and cannot be independent (read cookie s before session), which is more secure
cookie
tool
Send cookie s:
Write the basics first:
const express = require('express');
var server=expre ...
Posted by Jedi Legend on Thu, 16 Jul 2020 08:18:30 -0700
Mybatis (2) Parameters transfer
Mybatis parameter (Parameters) pass
1.. Single parameter
Values of basic type, object type, collection type can be accepted.In this case, MyBatis can use this parameter directly without any processing.
<!-- according to id Query a record in a data table and encapsulate it User object -->
<select id="selectById" resultType="com.s ...
Posted by mailtome on Tue, 14 Jul 2020 08:23:04 -0700
CentOS 7 PHP7 Enable session extension
Configuration Guide: http://php.net/manual/zh/refs.basic.session.php http://php.net/manual/zh/session.configuration.php
Use the command:
php -i
Find the information for the printout session block
session
Session Support => enabled
Registered save handlers => files user
Registered serializer handlers => ph ...
Posted by markyoung1984 on Fri, 10 Jul 2020 08:49:27 -0700
Braintree SDK integration and common problem solving
Introduction to Braintree android sdk integration
Drop-in UI integration link:
1.Official Web - drop-in UI Official UI and server interaction (nothing else to do)
2.git address Official demo examples
Interactive schematic diagrams:
Interactive steps:
Your app or web front-end requests a client token from your server in order ...
Posted by msgcrap on Wed, 08 Jul 2020 09:14:33 -0700
Braintree SDK integration and common problem solving
Introduction to Braintree android sdk integration
Drop-in UI integration link:
1.Official Web - drop-in UI Official UI and server interaction (nothing else to do)
2.git address Official demo examples
Interactive schematic diagrams:
Interactive steps:
Your app or web front-end requests a client token from your server in order ...
Posted by barrylee on Wed, 08 Jul 2020 09:14:12 -0700
[Spring] Pure java for Spring-hibernate integration
First import the corresponding jar package for Spring-hibernate
Then prepare the file for the database connectionHibernate.propertiesAlsoJdbc.properties
Hibernate.propertiesFile: Configure the hibernate dialect and automatic table building
hibernate.dialect=org.hibernate.dialect.H2Dialect
hibernate.hbm2ddl.auto=create
Jdbc.propertiesFi ...
Posted by mjgdunne on Wed, 08 Jul 2020 07:43:57 -0700
Prompt access_when timed task is executed in micro messageToken invalidation (short note)
Scenario reproduction: The timer task is working, but when the timer function executes regularly, the error message access_is printed in the logToken fails (or cannot be obtained, etc.), access_in the test tableToken is 0; access_is available when you directly access a link to a timer function yourselfToken.
Reason: When I execute by myself, ...
Posted by oldtimer on Mon, 06 Jul 2020 08:28:12 -0700