Home » JVM Languages

JVM Languages

Grails Spring Security Tutorial

There are many security features in Spring Security such as authentication, authorization, instance-based control, and others. Grails developers use Spring security to secure the application. Table Of Contents 1. Overview 2. Grails Spring Security 2.1. Prerequisites 2.2. Download 2.3. Setup 2.4. Running Gradle 2.5. Running Grails 2.6. HelloWorld in Grails 2.7. Testing Grails Application 2.8. Grails IDE Integration 2.9. Building ...

Read More »

Scala Web Development Example

1. Introduction In this lesson, we will cover the basics of Web Development using Scala. We will make use of Play framework to construct RESTful APIs which can be used in any web application to perform various actions on resources of your application. We will make sure that the project can be run as is and we will start from ...

Read More »

Scala forall() Example

1. Introduction In this lesson, we will look at some excellent examples of Scala’s forall() function and how it can be used various scenarios to apply predicate logic over a collection of elements. It is one of the simplest functions to use in Scala and apply a simple logic in terms of functional programming as it allows us to define an ...

Read More »

Scala Tutorial for Java Developers

1. Introduction In this lesson, we will look at some excellent examples with which Java programmers can get started with Scala very fast and learn some important concepts that will help them call themselves as Scala professionals in a very short time. Well, the biggest challenge for any programmer, may he be comfortable with Java, Kotlin, Python or any other ...

Read More »

Groovy Collections Example

1. Introduction Apache Groovy (Groovy) is an object-oriented dynamic programming language for the Java platform. It is dynamically compiled to the Java Virtual Machine (JVM) bytecode, and inter-operates with other Java source codes and libraries. Groovy is written in Java and was first released in 2007. Groovy provides native support for various collection types, including lists, sets, maps, and ranges. Most of these are based on ...

Read More »

Groovy Each Example

1. Introduction Apache Groovy (Groovy) is an object-oriented dynamic programming language for the Java platform. It is dynamically compiled to the Java Virtual Machine (JVM) bytecode, and inter-operates with other Java source codes and libraries. Groovy is written in Java and was first released in 2007. Groovy each and eachWithIndex methods are defined in Groovy Object, so we can use them for any object. ...

Read More »

Groovy SQL Example

1. Groovy SQL – Introduction Apache Groovy (Groovy) is an object-oriented dynamic programming language for the Java platform. It is dynamically compiled to the Java Virtual Machine (JVM) bytecode, and inter-operates with other Java source codes and libraries. Groovy is written in Java and was first released in 2007. Groovy SQL module provides a higher-level abstraction on JDBC technology. The Groovy SQL API ...

Read More »

Grails Hello World Example

1. Introduction This example is about creating the first application in grails and we basically start application or any introduction with a Hello example. So this Hello World program in Grails will be the introduction for starting Grails application. Let’s start with Grails at first. Grails is a web application framework for JAVA platform. Also Grails is highly productive framework ...

Read More »

Grails REST Example

In this example we shall show you how to create RESTful APIs using Grails. Exposing your application functionality to other applications is always achieved using web services. Grails provides several features that make implementing a RESTful web service in Grails easy using a RESTful resource. Originally, web services grew in popularity as a means for system integration. But with the recent popularity ...

Read More »

Scala HTTP Example

In this Example series, we will see how to work with HTTP (Hyper Text Transfer Protocol) through a Web Application in Scala using Scalatra and Scalate. The following table shows an overview of the entire article.                 Table of Contents 1. Pre-Requisites 2. Environment 3. HTTP 3.1 What is HTTP 3.2 HTTP Request ...

Read More »