게시글
질문&답변
404에러가 계속 뜹니다.
그럼 답변 내용만 봤을땐 아무문제 없는건데 왜그러죠 그래들 리프레쉬도 수차례하고 컨트롤러 url 경로 폴더경로 다 문제 없는건데요..
- 0
- 2
- 101
질문&답변
404에러에 관한 질문 static 폴더밑의 jsp 파일조차 실행안됩니다.
build.gradle.kts 파일을 보내드리겠습니다.plugins { java alias(libs.plugins.spring.boot) alias(libs.plugins.spring.dependency.management) id("jacoco") } configurations { compileOnly { extendsFrom(configurations.annotationProcessor.get()) } } allprojects { group = property("app.group").toString() } dependencyManagement { imports { mavenBom(libs.spring.cloud.dependencies.get().toString()) } } dependencies { implementation(libs.spring.boot.starter.web) implementation("org.springframework.boot:spring-boot-starter-data-jpa") implementation("org.springframework.boot:spring-boot-starter-thymeleaf") implementation("org.springframework.boot:spring-boot-starter-web") implementation("org.apache.tomcat.embed:tomcat-embed-jasper") implementation("javax.servlet:javax.servlet-api:4.0.1") implementation ("javax.servlet:jstl") compileOnly(libs.lombok) annotationProcessor(libs.lombok) annotationProcessor(libs.spring.boot.configuration.processor) testImplementation(libs.spring.boot.starter.test) } // about source and compilation java { sourceCompatibility = JavaVersion.VERSION_17 } with(extensions.getByType(JacocoPluginExtension::class.java)) { toolVersion = "0.8.7" } // bundling tasks tasks.getByName("bootJar") { enabled = true } tasks.getByName("jar") { enabled = false } // test tasks tasks.test { ignoreFailures = true useJUnitPlatform() }
- 0
- 3
- 166
질문&답변
08:55 테스트 이후에 파라미터 id 값을넣어도 에러가 뜹니다.
이렇게 설정하니 되네요dependencies { implementation 'org.springframework.boot:spring-boot-starter-thymeleaf' implementation 'org.springframework.boot:spring-boot-starter-web' // implementation 'org.springframework.boot:spring-boot-starter-jdbc' implementation 'org.springframework.boot:spring-boot-starter-data-jpa' runtimeOnly 'com.h2database:h2' // testImplementation 'org.springframework.boot:spring-boot-starter-test' testImplementation('org.springframework.boot:spring-boot-starter-test') { exclude group: 'org.junit.vintage', module: 'junit-vintage-engine' } testRuntimeOnly 'org.junit.platform:junit-platform-launcher' }
- 0
- 2
- 114