In this tutorial, we’ll learn what Data Transfer Object (DTO), Value Object (VO), Plain Old Java Object (POJO), and JavaBeans are. We will look at the differences between them and understand which type to use and when.
Today’s article is quite good and also an important topic in Spring Boot. Specifically, let’s find out how the data will change when going through different layers. And what are the concepts of Entity, Domain model and DTO.
It all happens when I was trying to build a springboot application by ./mvnw clean install. When I first run the install command, it runs into following problem: [ERROR] Source option 5 is no longer supported. Use 6 or later and [ERROR] Target option 1.5 is no longer supported. Use 1.6 or later.
By default, Spring Boot use Tomcat as the default embedded server, to change it to Jetty, just exclude Tomcat and include Jetty in pom.xml . From the dependency: spring-boot-starter-web, we exclude the artifactId spring-boot-starter-tomcat and include the new artifactId spring-boot-starter-jetty
In Spring Boot, by default, the context path is “/”. To change the context path, we need to update server.contextPath properties. The following examples update the context path from / to /favtuts or http://localhost:8080/favtuts
In this article, we will show you how to create a Spring Boot JDBC application + MySQL and HikariCP. Tools used in this article :Spring Boot 1.5.1.RELEASE, MySQL 5.7.x, HikariCP 2.6, Maven, Java 8
In this article, we will show you how to create a Spring Boot JDBC application + Oracle database + Commons DBCP2 connection pool. Tools used in this article :Spring Boot 1.5.1.RELEASE, Oracle database 11g express, Oracle JDBC driver ojdbc7.jar, Commons DBCP2 2.1.1, Maven, Java 8
The previous Spring Boot + Spring data JPA will be reused, modify to support PostgreSQL database. Technologies used :Spring Boot 2.1.2.RELEASE, Spring 5.1.4.RELEASE, Hibernate 5.3.7, HikariCP 3.2.0, PostgreSQL driver 42.2.5, Maven 3. Java 8
The previous Spring Boot + Spring data JPA will be reused, modify to support MySQL database. Technologies used :Spring Boot 2.1.2.RELEASE, Spring 5.1.4.RELEASE, Hibernate 5.3.7, HikariCP 3.2.0, mysql-connector-java:jar 8.0.13, Maven 3, Java 8