First Few Lines
Home
Java
Golang
Links icon
LinkedIn Twitter
About
  • Spark Java file upload example

    Jun 9, 2017 · 3 min read · Spark Java file upload  ·
    Share on:

    In this post we will see how to upload a multipart file using Spark Java. We will have a HTML frontend where user will select a file from his/her system. Then pressing the "Upload" button the file will be posted as multipart data to server. In the server side, the multipart file will be fetched and saved to a …

    Read More
  • Spring Boot H2 datasource with Thymeleaf using Gradle

    Jun 1, 2017 · 11 min read · Spring Boot Thymeleaf java  ·
    Share on:

    In this example, we will see how to build a simple web application in Spring boot with Thymeleaf as template engine and H2 database as embedded or in-memory database. Gradle has been used as build and dependency management tool. We will create a sample Student Information System where we can enter Student record in one …

    Read More
  • Spring Boot JPA Custom Query method

    May 31, 2017 · 2 min read · Spring Boot JPA Query  ·
    Share on:

    The CrudRepository interface provides the CRUD functionality in Spring JPA. It comes with default definitions of methods to execute common operations like find, save and delete records. To work with a domain class, we need to inherit the CrudRepository to create a new interface corresponding to the domain class. Here …

    Read More
  • How to join list of string using delimiter in Java

    May 17, 2017 · 2 min read · String join java  ·
    Share on:

    1. Join list of strings using Java 8 String.join(...) If we use Java 8, it is very easy to join a list or array of strings using a delimiter. For a common situation like building a CSV line, this approach is very easy and straightforward. 1List<String> stringList = new ArrayList<>(); …

    Read More
  • Spark Java AJAX post example using JQuery

    May 11, 2017 · 4 min read · Spark Java example AJAX  ·
    Share on:

    This post is very similar with the Spark Java example with JQuery Ajax except here we would use POST method for the Ajax call. Like the other example, we would get input of two numbers from the web page UI, make a ajax POST call to server with those numbers, the numbers get added at the server and returned result and …

    Read More
  • Store unique objects in sorted order using TreeSet in Java

    May 10, 2017 · 3 min read · Java TreeSet Sort Comparable Comparator  ·
    Share on:

    In Java, the TreeSet is a special implementation of Set interface to store unique objects in sorted order. By default it stores the objects in ascending order by performing simple compare. There are couple of ways to use the TreeSet as per our requirement. Here we would discuss about few most commonly used ways. First …

    Read More
  • Spark Java example with AJAX JQuery

    May 9, 2017 · 3 min read · Spark Java example AJAX  ·
    Share on:

    Spark is a relatively new, simple and lightweight framework written in Java which helps developers to rapidly create web services in minimal effort. It comes with embedded Jetty web server which hosts the web services. The syntax of declaring web services are very simple, quite similar with Node.js, which makes Node.js …

    Read More
  • Extract files from Zip archive in Java

    May 9, 2017 · 2 min read · extract file zip compress java  ·
    Share on:

    There are few open source libraries available to extract files from Zip archive. Apache common compress is one of the popular library. We can use gradle to resolve the dependency of Apache common compress. For this, we have to make an entry under dependency in build.gradle like this: 1dependencies { 2 compile …

    Read More
  • Working with select tag and option in HTML using JQuery

    May 7, 2017 · 1 min read · jQuery HTML select option JavaScript  ·
    Share on:

    JQuery made it really simple working with HTML select control. Consider you have following select control and you want to do various operations as listed thereafter. 1<select id="selectCtrl" multiple="multiple"> 2 <option value="bb">Black Berry</option> 3</select> The …

    Read More
  • Abstract class in Java

    May 1, 2017 · 2 min read · Abstract Class java  ·
    Share on:

    Abstract class is such a class where It is not possible to instantiate object from it It is meant for deriving other classes from it It is used as a type It is declared with abstract keyword An abstract class typically contains one or more abstract methods. Although it is not mandatory to have abstract methods at …

    Read More
    • ««
    • «
    • 1
    • 2
    • 3
    • 4
    • »
    • »»

Hansaraj Das

Technologist, student, teacher, continual incremental improvement.
Read More

Featured Posts

  • Java Selenium web automation example in gradle
  • Git frequently used commands
  • Spring Boot H2 datasource with Thymeleaf using Gradle

Recent Posts

  • Configure Windows Server Core for Remote access/management
  • Execute operating system shell command in Go
  • How to select first child element in Selenium java
  • Gradle publish / deploy to Nexus or Artifactory using maven-publish plugin
  • Java Selenium web automation example in gradle
  • Golang - fatal error: sync: RUnlock of unlocked RWMutex
  • Failed to create endpoint on network nat: failed during hnsCallRawResponse: hnsCall failed in Win32
  • Copy files from docker container to host

Categories

JAVA 24 SPRING-BOOT 6 SPARK-JAVA 4 GRADLE 3 DOCKER 2 ERROR 2 GOLANG 2 SELENIUM 2 DATABASE 1 DOWNLOAD 1 GIT 1 HIBERNATE 1 JAVASCRIPT 1 JPA 1
All Categories
DATABASE1 DOCKER2 DOWNLOAD1 ERROR2 GIT1 GOLANG2 GRADLE3 HIBERNATE1 JAVA24 JAVASCRIPT1 JPA1 SELENIUM2 SERVER1 SPARK-JAVA4 SPRING-BOOT6 SQL1
[A~Z][0~9]

Tags

JAVA 21 SPRING-BOOT 8 EXAMPLE 4 FILE 4 GRADLE 4 ERROR 3 JSON 3 SELENIUM 3 SPARK 3 AJAX 2 DOCKER 2 GOLANG 2 JOIN 2 JPA 2
All Tags
ABSTRACT-CLASS1 AJAX2 CHILD1 CLICK1 COMMAND1 COMMANDS1 COMPARABLE1 COMPARATOR1 COMPRESS1 CRUD1 DEBUG1 DEPLOY1 DIALECTS1 DOCKER2 ERROR3 EXAMPLE4 EXTRACT1 FILE4 GIT1 GO1 GOLANG2 GOOGLE-GSON1 GRADLE4 HELLO-WORLD1 HIBERNATE1 HTML1 INDEX1 INFO1 JAVA21 JAVASCRIPT1 JOIN2 JPA2 JQUERY1 JSON3 JSONFORMAT1 JSONSERIALIZE1 MOVETOELEMENT1 MYSQL1 NATIVE1 OPTION1 ORACLE1 PARSE1 POSTGRES1 PUBLISH1 QUERY1 READ1 REMOTE-DESKTOP1 REST1 RUNNABLE1 SELECT1 SELENIUM3 SHELL1 SORT1 SPARK3 SPRING-BOOT8 SQL1 STACKTRACE1 STRING2 TEXT2 THREAD1 THYMELEAF2 TREESET1 UPLOAD1 WINDOWS1 WINDOWS-SERVER-CORE1 WRITE1 ZIP1
[A~Z][0~9]
First Few Lines

Copyright  FIRST FEW LINES. All Rights Reserved