How to Enable Sql Logs in Spring Boot Application

How to Enable Sql Logs in Spring Boot Application

Introduction This tutorial will demonstrate how to enable and disable SQL log statements in a Spring Boot application in order to debug SQL flow. Problem You will frequently need to debug the SQL statement while developing a Spring Boot application with a SQL database. SQL debug logs can assist you figure out what’s wrong with JPA statements and whether or not there’s a problem with database connectivity. Example If you’ve built custom Spring data JPA methods and need to know what SQL statement is being utilized behind them,...

April 8, 2022
Cucumber Setup Using Gradle

Cucumber Setup Using Gradle

Introduction This tutorial will help you configure Cucumber into a Java project using the Gradle build tool. Cucumber is a test automation tool that supports Behavior-Driven Development (BDD). It is written in plain English text called “Gherkin.” Cucumber enables you to write test cases that anyone can easily understand, regardless of their technical knowledge. Setup First, create a Gradle project using the gradle init command. gradle init Complete the Gradle wizard to create a project....

April 5, 2022
Getting Started With Micronaut Using Gradle

Getting Started With Micronaut Using Gradle

Introduction In this tutorial, we will create a Micronaut application using Gradle. What you will need Java installed on your machine Gradle installed on your machine Text Editor Steps First create your project folder, we will make a folder called “micronaut-project” for this tutorial. The second step is to add the build.gradle file inside the project folder. This will contain a script to build the Micronaut application. Now update the build....

March 15, 2022
Abstract Factory

Abstract Factory Design Pattern Analysis

What is the Abstract Factory design pattern? The intent or definition of Abstract Factory is “Provide an interface for creating families of related or dependent objects without specifying their concrete classes” It’s a bit of a complicated definition, so we’ll need to break it down into meaningful chunks to understand it. 1. “Provide an interface” When we discuss the Abstract Factory, we are referring to interfaces rather than abstract classes. Essentially, this design pattern provides us with an interface, similar to those found in Java, C#, or Typescript (abstract class)....

April 24, 2020
AngularJs Getting Started

Angularjs Tutorials Bootstrap

Introduction Every application starts with bootstrap process which initialize application and wire it other with dependencies and configurations. AngularJs is not different from other application. It also starts application with bootstrap process. Following operation happens inside AngularJs bootstrap process. Load application module. Create dependency injector and load dependencies. Compile HTML and create scope for application. All these steps happens inside angular.js scripting file. therefore we need to include it first. we can include it inside HEAD tag or at end of BODY tag....

March 4, 2015
Mongodb Tutorials Aggregation Framework

Mongodb Tutorials Aggregation Framework

Introduction MongoDB Aggregation Framework groups set of documents together and performs certain operation on this grouped documents and returns results in the form of documents. MongoDB aggregation answer to those query which requires grouping of documents. Aggregation framework works on three type of model Aggregation pipeline Map Reduce Single Purpose Aggregation Operations Now let see how MongoDB Aggregation Framework works with simple example. Suppose you are MongoDB application developer in a respected company and you have been given a MongoDB database that holds information about human population which is distributed according to cities and their states....

November 27, 2014
Php Tutorials Autoload Php Classes

Php Tutorials Autoload Php Classes

Introduction With some examples, this tutorial post will teach the PHP autoloader and namespace concepts. What is Autoloading in PHP PHP autoload’s primary function is to load PHP files into the application context. The import statement is the default method to include PHP file into context. However, we may avoid the issue by using the PHP autoload capability to autoload essential PHP files, which keeps your code clean and composable....

November 2, 2014
Json Tutorials Getting Started

Json Tutorials Getting Started

Introduction JSON is widely accepted text formatted structured data. JSON stands for “JavaScript Object Notation”. In general JSON can represent Object of database record. Object to represent a list of HTML elements. Result of search query. Response of an Ajax call. Here you can see JSON is used in many different areas and for many different scenarios. This means it has simple data structure. most of programming languages adopt it and it can flow easily from one connection to another....

October 25, 2014
Doctrine2 Installation Configuration

Doctrine2 Installation Configuration

Introduction In this tutorial, we will look at how to install Doctrine2 in your PHP project. This post will make use of Doctrine2’s Composer tool. Installation First, create a directory for your project. mkdir zainabed cd zainabed Now, create a composer.json file. vi composer.json Then, add the following repository information to it. { "require": { "doctrine/orm": "*" } } You are now ready to use Composer to install Doctrine, but first you must install Composer on your machine....

October 23, 2014
Twig Tutorials Install and Configure

Twig Tutorials Install and Configure

Introdcution In this tutorial, we’ll look at how to install Twig within your PHP project and thereafter configure it so that we can create and use a Twig template inside our PHP web application. Later on, we’ll see a simple Twig template example that displays a Welcome to Twig template message. Let’s take it one step at a time. Installation The Twig template can be installed using Composer, Git, or PEAR....

October 16, 2014