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
Access other nodes through a jumper using the JSCH framework
A set of code for remotely accessing ssh has been developed. Recently, there is a need for a jumper to access the target service.After searching the web for half a day, I didn't find a good example, so I browsed the API of JSCH myself.But look in the clouds.Imagine if port forwarding works by mapping the target node ip:port to localhost:port an ...
Posted by Spoiler on Sun, 05 Jul 2020 08:04:33 -0700
Necessary knowledge points of MySQL development log file
Necessary knowledge points of MySQL log file development
Reference source: juejin.im/post/5b7c0aabf265da438415b9eb
preface
Log files record all kinds of activities that affect MySQL database. Common log files in MySQL database include error log, binary log, slow query log and query log. They are i ...
Posted by Yucky on Tue, 30 Jun 2020 00:40:28 -0700