[JAVA] Build a WEB system with Spring + Doma + H2DB

Introduction

I thought I'd make a system, so I'll make something. I want to study Java soon, so the language is Java. Framework is Spring and Doma that I have never used. Also, DB was H2DB because it was troublesome to prepare Orale.

Development environment

MacBook Pro (13-inch, 2016, Four Thunderbolt 3 Ports) Eclipse(Pleiades All in One 4.6.3.v20170422) JDK 8u131 Spring Boot 1.5.4(Maven) Doma2 2.12.0 H2DB 1.4.195

Project creation

Create a project template by referring to here

Project import

  1. Access SPRING INITIALIZR
  2. Select Maven Project, Java, Spring Boot 1.5.4
  3. Group, Artifact are free
  4. Select Web, JDBC, H2 for Dependencies and Generate Project SpringBoot.png Then (Artifact) .zip (in this case" create-design-documents.zip ") will be downloaded.
  5. Select Import MavenExisting Maven Project from Eclipse and Next
  6. Select the unzipped folder in the root directory, check pom.xml in the project and complete

Add Doma

  1. Add the following contents to the dependencies tag of pom.xml

pom.xml


<!-- https://mvnrepository.com/artifact/org.seasar.doma.boot/doma-spring-boot-starter -->
<dependency>
    <groupId>org.seasar.doma.boot</groupId>
    <artifactId>doma-spring-boot-starter</artifactId>
    <version>1.1.0</version>
</dependency>

This completes the project template.

Next time, I will create Entity and Dao and display them on the screen.

Referenced URL Use Spring Boot + Doma2

Recommended Posts

Build a WEB system with Spring + Doma + H2DB
Build a WEB system with Spring + Doma + H2DB + Thymeleaf
Build a WEB system with Spring + Doma + H2DB Part 2
Build a web application with Javalin
Build Doma1 with Ant
Create a web api server with spring boot
The first WEB application with Spring Boot-Making a Pomodoro timer-
Create a Hello World web app with Spring framework + Jetty
Build a "Spring Thorough Introduction" development environment with IntelliJ IDEA
Build a Node.js environment with Docker
Build a Tomcat 8.5 environment with Pleiades 4.8
Database linkage with doma2 (Spring boot)
Spring Boot gradle build with Docker
Implement a simple Web REST API server with Spring Boot + MySQL
Let's make a book management web application with Spring Boot part3
Let's make a book management web application with Spring Boot part2
Create a simple web application with Dropwizard
Build a PureScript development environment with Docker
Create a simple on-demand batch with Spring Batch
Start web application development with Spring Boot
Build a Wordpress development environment with Docker
De-cron! Build a job scheduler with Rundeck
Run WEB application with Spring Boot + Thymeleaf
I tried to clone a web application full of bugs with Spring Boot
Create a website with Spring Boot + Gradle (jdk1.8.x)
Create a simple search app with Spring Boot
Build a Laravel / Docker environment with VSCode devcontainer
How to use built-in h2db with spring boot
Build Spring Boot project by environment with Gradle
[Win10] Build a JSF development environment with NetBeans
Creating a common repository with Spring Data JPA
Create a Spring Boot development environment with docker
Build a Java development environment with VS Code
A story that stumbled when deploying a web application created with Spring Boot to EC2
Memorandum (Spring Web)
Build a docker container for a python simple web server
A memorandum when trying Spring Data JPA with STS
A memorandum of addiction to Spring Boot2 x Doma2
Access the built-in h2db of spring boot with jdbcTemplate
Easily build a Vue.js environment with Docker + Vue CLI
[Note] Build a Python3 environment with Docker in EC2
[JUnit 5] Write a validation test with Spring Boot! [Parameterization test]
A memorandum when creating a REST service with Spring Boot
I wrote a test with Spring Boot + JUnit 5 now