Continuous Code Quality Management-Sonar Deployment

Sonar is an open platform for code quality management.Through the plug-in mechanism, Sonar can integrate different testing tools, code analysis tools, and continuous integration tools.Unlike continuous integration tools such as Hudson/Jenkins, Sonar does not simply display the results of different code checking tools (such as FindBugs, PMD, ...

Posted by psunshine on Sat, 18 May 2019 07:31:35 -0700

SQL Injection for JDBC Connecting MySQL

* JDBC is a bridge for Java to operate database. With the help of the data-driven provided by the database and the database language to be operated on, After executing the database statement, you can crud the records in the database.* See the demo case of linking mysql database to simulate landing: Case 1: SQL injection, deceiving th ...

Posted by DedoMraz on Sat, 18 May 2019 01:06:43 -0700

How should you unit test the DAO layer

If you work on projects that use Spring, Hibernate, JPA, and you want to unit test the Data Connection Layer (DAO), this article may help you. When you plan to test the DAO layer, you need to connect to the database. But you are not allowed to use existing databases. There may be two reasons. One is that you are likely to corrupt the data that ...

Posted by AdamBrill on Fri, 17 May 2019 19:46:11 -0700

Timed Task-Framework Learning Based on Quartz

Quartz Notes Recently, I came across a scene where I need to be able to perform tasks at a specified time, such as opening a service at 3 o'clock every Saturday and Sunday. I can't say that I want to list the dates of every Saturday and Sunday in the future for the program to execute. So Baidu found such an open source ...

Posted by everydayrun on Fri, 17 May 2019 01:58:25 -0700

A crawl record of JdbcTemplate

After more than three months, I finally remember that I still have a blog. Actually, I don't forget it. I just don't have time to write a blog when I'm busy at work. So I'll make time tonight to record a problem I encountered in my last job and share it with my garden friends so as to avoid going into a hole.   Last week, JdbcTemplate execute ...

Posted by lmg on Thu, 16 May 2019 22:05:44 -0700

Minimalist Mybatis Tour (1): CRUD

abstract Recently, mybatis framework has been studied. As an excellent ORM framework, many excellent design ideas of mybatis are worth learning. The configuration files of mybatis are mainly config and mapper. Config defines global parameters: data source type (POOL, UNPOOLED, JNDI), transaction management type (default manag ...

Posted by UVL on Thu, 16 May 2019 01:23:03 -0700

Apache activeMQ message queue

Introduction to ActiveMQ ActiveMQ is Apache's most popular and powerful open source message bus. ActiveMQ is a JMS Provider implementation that fully supports JMS 1.1 and J2EE 1.4 specifications JMS: Java Message Service java Message Service ActiveMQ: Implementing JMS Specification JMS only gives the interface, the concrete implementation is co ...

Posted by lill77 on Wed, 15 May 2019 02:31:40 -0700

Registry Eureka Source Parsing: Application Example Registration Discovery (5)

ABSTRACT: Origin http://www.iocoder.cn/Eureka/instance-registry-evict/ "Taro Source Code" Welcome to reprint, keep the abstract, thank you! This paper is mainly based on Eureka 1.8.X version. 1. overview 2. Why do we need to expire? 3. EvictionTask 4. Outdated Logic 666. eggs (iv) Concern ** Wechat Public Number: [Taro Source Cod ...

Posted by MickeyAsh on Tue, 14 May 2019 08:23:34 -0700

Learning spring Things

Understanding things Transaction, as you know, is a series of rigorous operations, either completed or revoked. Spring transaction manages the transaction mechanism of the Be based on underlying database itself. The foundation of database transaction is to master Spring transaction management. This article summarizes s Spring transactions. Tra ...

Posted by raydenl on Tue, 14 May 2019 07:16:06 -0700

Detailed Description of Database Connection Pool Technology

Preface Today let's talk about database connection pool technology. Actually, this term sounds a little taller than before, but it's not really very complicated. I believe that after I explain it and I actually write the code once, I can have a deep understanding of this technology. Overview of Database Connection P ...

Posted by narch31 on Tue, 14 May 2019 04:44:01 -0700