Done a very simple front-end verification plus back-end jump
Today's release of this may be the most careless one of their own, a lot of problems want to understand, but when doing it, they found that not as they imagined, but also slowly debugging, on-line check a lot of methods are always not working, or their own grope out!
Front end display + verification + background query, ...
Posted by alexsaidani on Thu, 02 Apr 2020 17:54:43 -0700
Introduction to Hibernate II (add, delete, modify and check)
Hibernate's addition, deletion, modification and query
increase
There are many ways to add, such as save, persist, savaoroupdate and merge.
The use method is as follows.
The code here follows the previous section
package test;
import java.util.Date;
import org.hibernate.Session;
import org.hibernate.SessionFactory ...
Posted by L0j1k on Thu, 02 Apr 2020 15:28:25 -0700
mysql master-slave configuration under linux
CentOS 6.5 192.168.1.84 host
CentOS 6.5 192.168.1.83 slave
1, Primary server configuration:
Create synchronization user and specify server address
[root@node04 ~]# mysql -u root -p111111
mysql>use mysql;
mysql>grant replication slave on *.* to 'tongbu'@'192.168.1.84' identified by '123456';
mysql>flush privileges # ...
Posted by smilinmonki666 on Thu, 02 Apr 2020 14:59:59 -0700
Two methods of Mysql using binlog to recover data to solve the problem of misoperation
Not finished yet... To be edited
To ensure that there is no other parameter configuration impact, a CentOS7 virtual machine with minimized installation is reinstalled
1. Install mysql5.6 database https://my.oschina.net/sgmder/blog/1631045
2. Configure mysql, enable binlog, and change binlog mode to Row Level mode
vi /etc/my.cnf
Modify the ...
Posted by UVL on Thu, 02 Apr 2020 09:06:03 -0700
Optimization of System.currentTimeMillis() performance problem in high concurrency scenario
Preface
The call of System.currentTimeMillis() takes more time than a normal object of new (I don't know how much more time it takes, but I heard it's about 100 times). However, this method is also a common method, sometimes it has to be used, such as generating wokerId, printing logs, etc. there must be performance problems in the high and emo ...
Posted by Mijii on Thu, 02 Apr 2020 03:22:29 -0700
logback configures output files for individual packages or classes
Source: https://www.cnblogs.com/izecsonLee/p/9058385.html
The most recent requirement is to output the log of a certain class to the specified file. Generally, it is output to the corresponding file according to the log level. Refer to related materials and logback tutorial, write the following demo for reference.
1. Add an appender ...
Posted by fert on Thu, 02 Apr 2020 01:22:37 -0700
Application of iOS predicate
The predicate in Cocoa provides a general query method to process data, The filtering form of data can be obtained and specified. In the actual development of Cocoa, NSPredicate and its parent classes NSComparisonPredicate and nscompoundpredict can be used. Its style is similar to the mixture of SQL query language and regular expression, provid ...
Posted by Anyaer on Wed, 01 Apr 2020 22:49:36 -0700
Oracle 12C creates indexes for partial partitions of partitioned tables
Sometimes we need to create indexes for some partitions. Oracle 11g provides this function. You can create local and global indexes on partial partitions.
Global partial index: only those partitions that need to be indexed will be indexed, and other partitions will not be created.
Local index: if index is turned on fo ...
Posted by jacko on Wed, 01 Apr 2020 09:45:30 -0700
MySQL tutorial (18) grouping
MySQL GROUP BY statement
The GROUP BY statement groups the result set based on one or more columns.
We can use COUNT, SUM, AVG, and other functions on grouped columns.
GROUP BY syntax
SELECT column_name, function(column_name)
FROM table_name
WHERE column_name operator value
GROUP BY column_name;
Example demonstration
T ...
Posted by Aaron111 on Wed, 01 Apr 2020 06:09:05 -0700
ORACLE rebuild control file
Due to the loss of control file caused by a power failure, the startup database reported ORA-00205 error:
SQL> startup
ORACLE instance started.
Total System Global Area 419430400 bytes
Fixed Size 2925120 bytes
Variable Size 285216192 bytes
Database Buffers 125829120 bytes
Redo Buffers ...
Posted by automatix on Wed, 01 Apr 2020 03:50:01 -0700