Hibernate 4 + MySQL demonstration of Chinese naming

Recently, there is an opportunity to verify the feasibility of Chinese naming in a given development environment. The source code of the example is as follows: HibernateExampleZh Currently, Hibernate 3.3.2.GA is used. Later, more versions are tested. See the last part for eggs Test environment: Windows 7 Pro 64bit, JDK 1.7.0_80, MySQL 5.5.62, ...

Posted on Mon, 04 Nov 2019 12:20:16 -0500 by brucec

XXE vulnerability triggered by XML referencing external entities

Record a question first   The input in the input box is displayed in the area above. Check the background source code, there is such a fragment function XHR() { var xhr; try {xhr = new XMLHttpRequest();} catch(e) { var IEXHRVers =["Msxml3.XMLHTTP","Msxml2.XMLHTTP","Microsoft.XMLHTTP"]; f ...

Posted on Mon, 04 Nov 2019 12:19:16 -0500 by jwadenpfuhl

Spring boot 2.0: a hundredfold journey to lose weight

Preface In order to save my little yellow map, I am currently working on a map bed service, which integrates various third-party cloud storage services, and is currently in the internal testing stage. The project runs in the form of Jar on Tencent cloud. Don't ask me why I use Tencent cloud, because old users and dogs of Alibaba cloud are not ...

Posted on Mon, 04 Nov 2019 09:36:52 -0500 by cyandi_man

Spring AOP - Introduction to the use of annotation

Preface In the previous chapter of source code analysis, I explained the source code of the core part of Spring IOC. If you are familiar with the use of Spring AOP, after understanding the core source code of Spring IOC, learning the source code of Spring AOP should be a natural process without any difficulties. But to start with the source cod ...

Posted on Mon, 04 Nov 2019 06:10:36 -0500 by PFMaBiSmAd

Mybatis source code parsing: how is mybatis integrated with Spring?

Mybatis source code analysis (1) -- how is mybatis integrated with Spring?                          How does it load various mybatis related xml? How does it realize database operation only through a Mapper interface + Mappe. ...

Posted on Mon, 04 Nov 2019 05:15:50 -0500 by Ola

json&xml learning notes -- Java implementation of xml and json format conversion

Write before: It uses the least comprehensible method and does not represent the optimal solution or the most commonly used solution. XML to JSON: This function is more commonly used than JSON to XML. book.xml Ready, put it in the src root directory: <?xml version="1.0" encoding="UTF-8" ?> <bookstore> <book category="COOKING" ...

Posted on Sun, 03 Nov 2019 18:28:39 -0500 by dizandat

spring timing task - file upload progress bar

spring scheduled tasks Guided dependency <!-- https://mvnrepository.com/artifact/org.quartz-scheduler/quartz --> <dependency> <groupId>org.quartz-scheduler</groupId> <artifactId>quartz</artifactId> <version>2.2.3</version> </dependency> Configure scheduled task class pac ...

Posted on Sun, 03 Nov 2019 16:10:14 -0500 by Miichael

idea to build ssm framework (super detailed)

One. Create project Attach the test database first DROP TABLE IF EXISTS `user`; CREATE TABLE `user` ( `id` int(5) NOT NULL AUTO_INCREMENT, `name` varchar(10) COLLATE utf8_bin DEFAULT NULL, `password` varchar(10) COLLATE utf8_bin DEFAULT NULL, `remark` varchar(50) COLLATE utf8_bin DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=In ...

Posted on Sun, 03 Nov 2019 15:26:11 -0500 by Harsh

Spring? Bean processor interface (postprocessor)

First, BeanPostProcessor interface (postprocessor) After instantiation and dependency injection of Bean object, before and after initialization of method Note that it is triggered after Bean instantiation and dependency injection Logic can be added to relevant methods according to business requirements The interface has only two methods: pos ...

Posted on Sun, 03 Nov 2019 13:38:04 -0500 by maryp

SSM paging query

Database: mysql5.7 limit is mainly used for paging query limit 10, 2 the last two queries starting from Article 11, that is, the query results are 11, 12 Top 10 queries limit 10, 0 query 0 items after the start of Article 11, that is, the result is 0 - limit 10, - 1 - query all records after the start of Article 11 (supported by earlier ve ...

Posted on Sun, 03 Nov 2019 10:25:58 -0500 by barbs75