Call Stored Procedure using Python

Introduction This tutorial will show you how to call stored procedure using Python programming language. Here I will use MySQL database server to store the data for this example. You may also want to read How to call stored procedure using Codeigniter framework. A stored procedure is a set of Structured Query Language (SQL) statements with a given name so…

Utility classes should not have a public or default constructor – Spring Boot

Introduction The error, utility classes should not have a public or default constructor, you notice mainly in utility classes where you have declared your class method(s) as public static and your class does not have private constructor as well as your class cannot be made as final. This error occurs due to the checkstyle rules defined generally in checkstyle.xml that is…

How to use checkstyle plugin in gradle based project

Introduction I will show here how to use checkstyle plugin in gradle based Java project. Checkstyle is a static code quality tool used to find Fan-out complexity of a class, complexity of method, utility class, bugs due to not following the coding standards. So you can remove the complexity from your Java source code and make the code more readable…

Python Web Application CRUD Example Using Flask And MySQL

Flask Web Application The tutorial on Python web application CRUD example using Flask and MySQL will show you the basic CRUD operations. CRUD means Create, Read, Update and Delete operations. In the below example I will create new record, read existing records, update the existing record and delete the existing record. I will use MySQL database as a permanent storage…

Junit Mockito Verify Example

Introduction The tutorial Junit Mockito Verify method will show you how to verify a Java class method has been executed at least once or not. When you write Junit test case for void method then you cannot return anything from your actual method test but at the same time you also don’t know whether your actual method has been executed…

Modifying XML using Python

Introduction Modifying XML using Python programming language means updating or modifying an existing XML file or XML string using Python. Extensible Markup Language (XML) are the most widely used formats for data, because this format is very well supported by modern applications, and is very well suited for further data manipulation and customization. Therefore it is sometimes required to generate…

Junit Testing Of File Upload And Download

Junit Test Here in this tutorial you will see examples on Junit testing of file upload and download in Spring REST Controllers. You might have seen how to write Junit test cases on Spring REST Controllers in my other tutorials but I did not show how to write Junit testing of file upload and download in Spring REST Controllers but…

File Download Example Using Spring REST Controller

File Download File download example using Spring REST Controller will show you how to download a file from any client (browser or any client) and Spring REST service is used as a server side technology for downloading the file. The file may be any type, i.e., such as excel, text, word, pdf etc. Here I will create Spring Boot application…

Building XML Using Python

XML Building Building XML using Python programming language means creating an XML file or XML string using Python. You might have seen how to parse or read an existing XML file or string using Python in my previous tutorial. Here you will see how to create an XML file or string using Python from scratch. I will not only create…

File Upload Example Using Spring REST Controller

File Upload File upload example using Spring REST Controller will show you how to upload a file when selected for uploading from any client (browser or any client) and Spring REST service is used as a server side technology for uploading the file. The file may be any type, i.e., such as excel, text, word, pdf etc. HereIe will create…