Skip to content

trysd/spring-boot-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

run

mvn spring-boot:run
OR
./mvnw spring-boot:run

SQL for PostgreSQL

CREATE TABLE animal (
id serial,
grp text,
kind text,
age integer,
name text DEFAULT NULL,
version integer DEFAULT 0
);

INSERT INTO animal
(grp, kind, name, age)
VALUES
('aaa', 'cat', 'tama', 1)
,('aaa', 'dog', 'taro', 2)
,('aaa', 'fox', 'kon', 3)
,('mmm', 'monkey', 'uki', 10)

debug command

mvn clean package && java -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005 -jar ./target/demo.example-0.0.1.jar

devtool

Template updates are mild as compilation does not run.

docker

app

docker rm -f app && docker build -t app:latest . docker run --rm --net n01 --name app -d -p 80:80 app:latest

DB

cd pg && docker-compose -f docker-pg.yml up --build

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published