Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
28 changes: 19 additions & 9 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
id 'io.spring.dependency-management' version '1.1.7'
}

group = 'com.example'
group = 'com.petscope'
version = '0.0.1-SNAPSHOT'

java {
Expand All @@ -13,25 +13,35 @@ java {
}
}

configurations {
compileOnly {
extendsFrom annotationProcessor
}
}

repositories {
mavenCentral()
}

dependencies {
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
// Spring Boot starters
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'

// Database
runtimeOnly 'com.mysql:mysql-connector-j'

// JWT (jjwt 0.11.x)
implementation 'io.jsonwebtoken:jjwt-api:0.11.5'
runtimeOnly 'io.jsonwebtoken:jjwt-impl:0.11.5'
runtimeOnly 'io.jsonwebtoken:jjwt-jackson:0.11.5'

// Lombok
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'

// Test
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}

tasks.named('test') {
useJUnitPlatform()
}
}
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package com.example.demo;
package com.petscope;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class DemoApplication {
public class PetscopeApplication {

public static void main(String[] args) {
SpringApplication.run(DemoApplication.class, args);
SpringApplication.run(PetscopeApplication.class, args);
}

}
15 changes: 15 additions & 0 deletions src/main/java/com/petscope/controller/HomeController.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package com.petscope.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class HomeController {

@GetMapping("/")
public String home(Model model) {
model.addAttribute("message", "Hello Spring MVC!");
return "home"; // → home.html 뷰로 이동
}
}
13 changes: 13 additions & 0 deletions src/main/java/com/petscope/controller/TestController.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package com.petscope.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

@GetMapping("@/constants/categories")
public String hello() {
return "Hello from Spring Boot!";
}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package com.example.demo.test;
package com.petscope.test;


public class Test {
public static void main(String[] args) {
System.out.println("08/13 테스트 ");
System.out.println(System.getProperty("java.version"));
}
}
4 changes: 4 additions & 0 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
spring.application.name=demo
spring.datasource.url=jdbc:mysql://localhost:3306/testdb
spring.datasource.username=root
spring.datasource.password=1234
spring.jpa.hibernate.ddl-auto=update
29 changes: 29 additions & 0 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
spring:
datasource:
url: jdbc:mysql://localhost:3306/petscope?useSSL=false&serverTimezone=Asia/Seoul&characterEncoding=UTF-8
username: petscope
password: petscope_pw
jpa:
hibernate:
ddl-auto: update
properties:
hibernate:
format_sql: true
open-in-view: false
jackson:
serialization:
write-dates-as-timestamps: false

server:
port: 8080

app:
jwt:
secret: "change-this-to-very-long-random-secret-please-change"
expiry-seconds: 86400 # 1 day


MySQL DB 먼저 만들어둬:
CREATE DATABASE petscope;
CREATE USER 'petscope'@'%' IDENTIFIED BY 'petscope_pw';
GRANT ALL PRIVILEGES ON petscope.* TO 'petscope'@'%'; FLUSH PRIVILEGES;
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package com.example.demo;
package com.petscope;

import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
class DemoApplicationTests {
class PetscopeApplicationTests {

@Test
void contextLoads() {
Expand Down
34,695 changes: 34,695 additions & 0 deletions windsurf-plugin-diagnostics/idea.log

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions windsurf-plugin-diagnostics/windsurf-diff-diagnostics.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
2025-08-13 17:46:58,599 [8238607] INFO - #com.codeium.intellij.diff.DiffView - [252b7315] [DIFF-VIEW] Processing 0 validation states for cascade=f245767b-84cd-4dd9-802a-0f89aa098053
2025-08-13 18:42:10,503 [11550511] INFO - #com.codeium.intellij.diff.DiffView - [8940d32b] [DIFF-VIEW] Processing 0 validation states for cascade=ba00c36b-ed64-4fdf-bbfc-9fe217bd7c3b
Loading