Spring boot development-development environment-

This time, I decided to develop in an environment I have never experienced before. However, as an example, it is very common, so I think that we will develop while looking up information on the net. Since the environment has been created once, it is described as a memorandum up to that point.

Technology used

environment

・ Win10 ・ Infrastructure: AWS (I will not write anything because I will not build AWS) ・ We plan to use the latest development tools as of July 2019.

Language: Java

I have been developing WEB systems using Java for about 3 years. Whereas it used to be SI, this time it is a WEB member site.

FW:Spring boot There is a little Spring, but boot is the first time! !!

DB:PostgreSQL DB is about 3 years for Oracle, less than 1 year for MySQL, and SQL Server and PostgreSQL have no practical experience The basics are okay, but I don't know the details.

Version control: Git

SVN all the time at work I'm touching it at home, but I can't use it very much (I can understand the terms a little)

Development environment: Eclipse

I often make near misses and get the results for the first time, but I think it's a common type in web development.

Development environment creation

Eclipse

Dropped from the site and decompressed directly under C Dora I am the latest version http://mergedoc.osdn.jp/ image.png

Add Git and Java EE from top right

image.png

Create a project from Package Explorer> Springboot Starter Project Older versions don't include Spring Boot by default, so you may have to get STS from the Eclipse Marketplace.

image.png

Select by dependency as shown in the image below (may change later)

image.png

PostgreSQL https://www.postgresql.jp/download

Download and install from here Set ID, password, DB name, etc.

Make a table by flowing DDL

Also edit the following files of the project and set the DB connection information

src/main/resources/application.properties


spring.datasource.driver-class-name=org.postgresql.Driver
spring.datasource.url=jdbc:postgresql://localhost:5432/DB name
spring.datasource.username=User ID
spring.datasource.password=password

Git Create a suitable repository for your account on Github https://github.co.jp/

Right click on the project Team> Project Sharing> Git

image.png

Check ~ in the parent folder of the project and select the path below (do not check) Press Create Repository image.png

Copy the path of your Github repository from the clone download on the right of Github image.png

Go back to Eclipse and right click on your local repository from the top right Git tab Select Paste Repository Path or URI

image.png

Register the repository by doing the next

The environment creation is over here I'm still investigating and developing screen startup, but it will take a while to understand enough to explain to people

Recommended Posts

Spring boot development-development environment-
[Spring Boot] Environment construction (macOS)
Docker × Spring Boot environment construction
◆ Spring Boot + gradle environment construction memo
Challenge Spring Boot
Spring Boot Form
[Spring] Environment construction
Spring Boot Memorandum
gae + spring boot
Create Spring Boot development environment on Vagrant
Spring Boot environment construction memo on mac
Spring Boot + Docker Java development environment construction
Try Spring Boot 1 (Environment construction ~ Tomcat startup)
About designing Spring Boot and unit test environment
SPRING BOOT learning record 01
Spring Boot + Heroku Postgres
Spring boot memo writing (1)
First Spring Boot (DI)
Spring Boot2 cheat sheet
Spring Boot Servlet mapping
Spring Boot learning procedure
Build Spring Boot project by environment with Gradle
Learning Spring Boot [Beginning]
Spring boot memo writing (2)
Spring Boot 2.2 Document Summary
[Spring Boot] DataSourceProperties $ DataSourceBeanCreationException
Spring Boot 2.3 Application Availability
Create Spring Boot environment with Windows + VS Code
Spring boot tutorials Topics
Download with Spring Boot
Create a Spring Boot development environment with docker
Switch environment with Spring Boot application.properties and @Profile annotation
SSO with GitHub OAuth in Spring Boot 1.5.x environment
How to boot by environment with Spring Boot of Maven
Database environment construction with Docker in Spring boot (IntellJ)
Set context-param in Spring Boot
Try Spring Boot from 0 to 100.
Generate barcode with Spring Boot
Hello World with Spring Boot
Spring Boot on Microsoft Azure
Implement GraphQL with Spring Boot
Get started with Spring boot
Hello World with Spring Boot!
Spring Boot 2 multi-project in Gradle
[Spring Boot] Web application creation
spring boot port duplication problem
Run LIFF with Spring Boot
SNS login with Spring Boot
Spring Boot Hot Swapping settings
[Java] Thymeleaf Basic (Spring Boot)
Introduction to Spring Boot ① ~ DI ~
File upload with Spring Boot
Spring Boot starting with copy
Introduction to Spring Boot ② ~ AOP ~
CICS-Run Java application-(4) Spring Boot application
Spring Boot starting with Docker
Spring Boot + Springfox springfox-boot-starter 3.0.0 Use
Spring Boot DB related tips
Hello World with Spring Boot
Set cookies with Spring Boot
[Spring Boot] Easy paging recipe