Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e9b56cc

Browse files
committed
20221105 maven to gradle 전환, minio s3연결
1 parent 3820fcd commit e9b56cc

File tree

18 files changed

+459
-671
lines changed

18 files changed

+459
-671
lines changed

‎.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ jobs: # a collection of steps
55
#working_directory: ~/circleci-demo-java-spring # directory where steps will run
66

77
docker: # run the steps with Docker
8-
- image: adoptopenjdk/maven-openjdk11:latest # ...with this image as the primary container; this is where all `steps` will run
8+
- image: gradle:jdk11 # ...with this image as the primary container; this is where all `steps` will run
99

1010
steps: # a collection of executable commands
1111

1212
- checkout # check out source code to working directory
1313

14-
- run: mvn clean install
14+
- run: ./gradlew clean build

‎.gitignore

Lines changed: 35 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,39 @@
1-
#
2-
/target/
3-
1+
HELP.md
2+
target/
3+
!.mvn/wrapper/maven-wrapper.jar
4+
!**/src/main/**/target/
5+
!**/src/test/**/target/
46
*.class
57
*.DS_Store
8+
.gradle/
9+
build/
10+
buildSrc/.gradle
11+
buildSrc/build
12+
13+
### STS ###
14+
.apt_generated
15+
.classpath
16+
.factorypath
17+
.project
18+
.settings
19+
.springBeans
20+
.sts4-cache
21+
22+
### IntelliJ IDEA ###
23+
.idea
24+
*.iws
25+
*.iml
26+
*.ipr
627

7-
.idea/
8-
.idea_modules/
28+
### NetBeans ###
29+
/nbproject/private/
30+
/nbbuild/
31+
/dist/
32+
/nbdist/
33+
/.nb-gradle/
34+
build/
35+
!**/src/main/**/build/
36+
!**/src/test/**/build/
937

10-
/Spring-WebServer-Oracle.iml
38+
### VS Code ###
39+
.vscode/

‎.mvn/wrapper/maven-wrapper.jar

-57.4 KB
Binary file not shown.

‎.mvn/wrapper/maven-wrapper.properties

Lines changed: 0 additions & 2 deletions
This file was deleted.

‎README.md

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,23 @@
22

33
# Spring-WebServer-Oracle
44

5-
* It is a practice project for studying Spring Boot Oracle.
5+
* It is a practice project for studying Spring Boot and Oracle DB.
66

77
### Tools
8-
* Java Spring Oracle Redis JQuery
8+
* Java Spring Oracle JQuery
99

1010
### Prepare project environment
11-
* First, prepare Redis, AWS S3
12-
1311
* Execute Oracle DB and Minio S3 with docker
1412

1513
```bash
1614
docker-compose up
1715
```
18-
### Build and Execution
1916

20-
* Build executable jar
21-
```
22-
./mvnw clean package
23-
```
17+
### Execution
2418

25-
* Run Spring Boot project executable jar
19+
* Run Spring Boot project
2620
```
27-
./target/Spring-WebServer-Oracle.jar
21+
./gradlew clean bootRun
2822
```
2923

30-
* Check the web project at http://localhost:8090
24+
* Check the web project at http://localhost:8090/index

‎build.gradle

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
/*
2+
* This file was generated by the Gradle 'init' task.
3+
*
4+
* This project uses @Incubating APIs which are subject to change.
5+
*/
6+
7+
plugins {
8+
id 'java'
9+
id 'org.springframework.boot' version '2.7.5'
10+
}
11+
12+
apply plugin: 'java'
13+
apply plugin: 'io.spring.dependency-management'
14+
15+
repositories {
16+
mavenCentral()
17+
maven {
18+
url = uri('https://repo.maven.apache.org/maven2/')
19+
}
20+
}
21+
22+
dependencies {
23+
implementation 'org.springframework.boot:spring-boot-starter-web'
24+
implementation 'org.springframework.boot:spring-boot-starter-jdbc'
25+
implementation 'org.springframework.boot:spring-boot-starter-security'
26+
implementation 'org.springframework.boot:spring-boot-starter-aop'
27+
implementation 'org.springframework.boot:spring-boot-starter-actuator'
28+
implementation 'org.springframework.boot:spring-boot-starter-validation'
29+
implementation 'org.springframework.boot:spring-boot-starter-websocket'
30+
implementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter:2.2.0'
31+
implementation 'com.oracle.database.jdbc:ojdbc8:21.3.0.0'
32+
implementation 'org.apache.commons:commons-lang3:3.12.0'
33+
implementation 'org.apache.commons:commons-collections4:4.1'
34+
implementation 'commons-io:commons-io:2.6'
35+
implementation 'commons-dbcp:commons-dbcp:1.4'
36+
implementation 'org.projectlombok:lombok'
37+
annotationProcessor 'org.projectlombok:lombok'
38+
implementation 'javax.mail:mail:1.4.3'
39+
implementation 'org.apache.tomcat.embed:tomcat-embed-jasper:9.0.68'
40+
implementation 'com.amazonaws:aws-java-sdk-s3:1.12.261'
41+
implementation 'javax.servlet:jstl:1.2'
42+
testImplementation 'org.springframework.boot:spring-boot-starter-test'
43+
}
44+
45+
group = 'com.singer'
46+
description = 'Spring-WebServer-Oracle'
47+
java.sourceCompatibility = JavaVersion.VERSION_11
48+
java.targetCompatibility = JavaVersion.VERSION_11
49+
50+
bootJar {
51+
launchScript()
52+
}
53+
54+
test {
55+
useJUnitPlatform()
56+
testLogging.showStandardStreams = true
57+
}
58+
59+
tasks.withType(JavaCompile) {
60+
options.encoding = 'UTF-8'
61+
}

‎docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ services:
2626
- minio
2727
entrypoint: >
2828
/bin/sh -c "
29-
/usr/bin/mc alias set myminio http://minio:9000 accesskey secretkey;
29+
/usr/bin/mc alias set myminio http://minio:9000 minioadmin minioadmin;
3030
/usr/bin/mc mb myminio/s3-storage;
3131
/usr/bin/mc policy set public myminio/s3-storage;
3232
exit 0;"

‎gradle/wrapper/gradle-wrapper.jar

58.1 KB
Binary file not shown.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3-bin.zip
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /