Configuration and simple use of Hibernate

1. Concepts Hibernate is an open source Object Relational Mapping (ORM) framework that encapsulates JDBC in a very lightweight object package, allowing Java programmers to ditch writing SQL statements in their programs and manipulate databases with their own object programming thinking. 2. Preparations Install the HibernateTools plug-in in Ecl ...

Posted on Sat, 13 Jul 2019 10:24:18 -0700 by acemods

Summary of the most complete Java novice problems in history

Java is currently one of the most popular programming languages - it can be used to write Windows programs or Web applications, mobile applications, network programs, consumer electronics products, set-top box devices, it is everywhere. More than three billion devices are running on Java. according to Oracle Statistical data, just in use J ...

Posted on Fri, 12 Jul 2019 15:16:29 -0700 by Hieroglyphics

JSP-EL Syntax Explanation and Example

EL:Expression Language   EL is designed to design JSP pages without java code. EL can be used in JSP 2.0 and above without using JSTL. 1. EL grammar EL expression: ${expression} For example: ${a+b}${x+y}           <my: tag someAttribute="${expression}"/> Attributes of an object can be accessed by [] and. operators For ex ...

Posted on Thu, 11 Jul 2019 17:37:21 -0700 by eugene2009

Build a website with Flask from scratch (2)

Build a website with Flask from scratch (1) This paper describes how to build a Python environment and the basic project structure of Flask application.The website we are building is a third-party integrated console, similar to Slack .This article focuses on how data flows in Flask applications, and the other frameworks are basically the same. ...

Posted on Wed, 10 Jul 2019 11:15:34 -0700 by richtux

Use interceptor to control login and privileges in strut 2

Struts In JSP servlets, we usually use Servlet Filter to control whether the user logs in or has permission to go to a page. In struts 2, we should think of his Interceptor, which plays a very important role in struts 2. Many of the functions in struts 2 are implemented using Interceptor.  Requirements: Simple login interface, allowing ...

Posted on Tue, 09 Jul 2019 14:27:45 -0700 by simrx11

Diagnostic optimization of database performance problems caused by massive concurrent SQL

1. Environmental Introduction Operating System: Aliyun ECS Database: Oracle 11.2.0.1 ADG 2. Introducing knowledge points Firstly, we introduce some knowledge about binding variables. When Oracle parses and executes the target SQL, it finds the matching parent cursor in the database cache based on the hash value of the target SQL's SQL t ...

Posted on Sun, 07 Jul 2019 17:29:01 -0700 by amyhughes

Front-end Technology Blog

- I. Relevant to the "Remember Me" Function There are many ways to remember me. This part introduces two kinds of functions. 1. cookie References to jQuery.cookie.js can be recorded on the browser side with cookies. 2. localsession Recording user information on the server side (which is uncertain) is the local storage of HTML5, ...

Posted on Wed, 03 Jul 2019 16:25:44 -0700 by MrJW

[MyBatis Source Analysis] Processing flow of insert method, update method, delete method (last part)

Open a Session After analyzing MyBatis's process of converting a configuration file to a Java object, this article starts by analyzing the process of insert, update, delete methods, and why these three methods are put together because: Semantically, insert, update, delete are all updates to rows in the database From an implementation perspect ...

Posted on Tue, 02 Jul 2019 10:14:52 -0700 by firecat318

Java Web Learning IX (jsp in-depth)

I. jsp directives In a jsp page, you can define 0-N instructions 1. Overview of JSP instructions jsp instruction format <%@Specified name attr1=""attr2="% Generally, JSP instructions are placed at the top of the JSP file, but this is not necessary. There are three main instructions in JSP: page,include,taglib. The mo ...

Posted on Sun, 30 Jun 2019 16:44:29 -0700 by nezona

Actual build mybatis code and details (full self-written version)

mybatis application directory   mybatis-config.xml <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "http://mybatis.org/dtd/mybatis-3-config.dtd"> <!--Each is based on MyBatis Applications are all based on one SqlSessionFactory Example-centric. SqlSessionFactory E ...

Posted on Sat, 29 Jun 2019 11:57:05 -0700 by Jagand