[source code analysis] why? spring boot a jar can develop a web project

problem Why to develop a web project, spring boot starter web is done with a jar? What does this jar do? Through the spring boot project, we can see that all the boot modules spring boot starter XXX that are used out of the box are in the spring boot starters sub module, and all the spring boot starter XXX modules have no code, so they all com ...

Posted by first_lady_the_queen on Sat, 19 Oct 2019 05:43:20 -0700

Using TreeSet causes serialization exception java.io.NotSerializableException

Using TreeSet causes serialization exception Problem Description: sort the second level classifications under the first level classification according to the order field (Integer type). At that time, a TreeSet was made and a user-defined Comparator was passed. It was OK to run locally, and the sortin ...

Posted by flameche on Fri, 18 Oct 2019 10:26:20 -0700

net.sf.json.JSONException: There is a cycle in the hierarchy!

Abnormal problem net.sf.json.JSONException: There is a cycle in the hierarchy! at net.sf.json.util.CycleDetectionStrategy$StrictCycleDetectionStrategy.handleRepeatedReferenceAsObject(CycleDetectionStrategy.java:97) at net.sf.json.JSONObject._fromBean(JSONObject.java:657) at net.sf.json.JSONObject.fromObject(JSONObject.java:172) ...

Posted by kecebong_soft on Tue, 15 Oct 2019 11:41:39 -0700

Android -- base64 encryption and decryption algorithm

Base64 is one of the most common encoding methods used to transmit 8Bit bytecode on the network. Base64 is a method based on 64 printable characters to represent binary data. You can view RFC2045 ~ RFC2049, which has the detailed specification of MIME. Base64 encoding is a binary to character proc ...

Posted by Francois on Tue, 15 Oct 2019 08:52:31 -0700

Hibernate Implementing the Effect of limit Statement

Hibernate hibernate implements limit effect Since the limit grammar cannot be written directly in the hql statement, this effect needs to be achieved in other ways. limit effects generally require two parameters: start location and number of queries num. Both parameters are final int The implementation code is as follows: try { // ...

Posted by gaz_hayes on Sun, 13 Oct 2019 09:07:20 -0700

When JPA meets four styles of MySQL table names: full capitalization + full lowercase + hump + Hungary

I have always known that MySQL has the case problem of field names, table names, etc. on Linux, so in order to avoid this problem, I chose underscores and all lowercase, saying that although we use JPA, as long as we use annotations to write clearly that table names and field names are uppercase, that's all right. For example It turns out tha ...

Posted by mananx on Wed, 09 Oct 2019 20:34:27 -0700

jpa query partial field to get entity class

The code has been put into github, demo2 in test corresponds to sql mode, demo3 corresponds to hql mode, demo1 is paging query, another article will talk about {% post_link paging query paging query%}github address Preface When we usually use jpa query, there are two situations: one is to query all fi ...

Posted by shorty114 on Sun, 06 Oct 2019 21:25:48 -0700

ExtJs 4.2 Application: Using ExtJs Extension Component searchfield to Realize Data Search Function

Links to the original text: https://my.oschina.net/qiuzhping/blog/611700 ExtJs 4.2 Application: Extending component search field with ExtJs Implementing Data Search Function 1. Int ...

Posted by jonathandg on Wed, 02 Oct 2019 12:37:45 -0700

Hibernate Framework of Java Framework

What is a framework? Answer: Semi-finished projects that can complete some functions JavaEE Three-tier Architecture Web Service Dao The 5 framework: SSH: Spring + Struts2 + Hibernate SSM: Spring + SpringMVC + MyBatis hibernate is an orm framework orm:object relation mapping. Object relation mapping orm ...

Posted by pmt2k on Wed, 02 Oct 2019 04:12:34 -0700

validator automated verification

Reminder Please collect and see again. This article is too long for you to read in a short time. It's a pity to miss it because it has too much dry goods. The sample code can focus on Yifeilu (Public Number) replying to jy acquisition. Harvest Explain in detail: You can master various postures using hibernate-validator and similar calibration ...

Posted by upperbid on Mon, 23 Sep 2019 06:54:00 -0700