kchung1995 / crud-web-bulletin-board Goto Github PK
View Code? Open in Web Editor NEWCRUD 웹 게시판 만들기
CRUD 웹 게시판 만들기
아래와 같은 테스트 코드를 작성했을 때,
@Log4j2
@RestController
public class LoggerControllerTest {
@GetMapping("/log")
public void log() throws Exception {
System.out.println("하이");
log.fatal("FATAL");
log.error("ERROR");
log.warn("WARN");
log.info("INFO");
log.debug("DEBUG");
log.trace("TRACE");
}
}
log를 찾을 수 없다는 내용의 에러가 발생함.
IntelliJ Cannot find symbol ‘log’ ...
JUnit5와 Gradle 6.7.1이 호환되지 않는지,
Could not complete execution for Gradle Test Executor 1
라는 에러가 뜸
단위 테스트 시에는 정상적으로 동작하지만, 전체 테스트 시 PostsApiControllerTest.java의 Posts_updated()가 실패함
아래 형식의 build.gradle 작성 시 Gradle이 성공적으로 빌드되지 않음.
buildscript {
ext {
springBootVersion = '2.1.9.RELEASE'
}
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
group 'com.katfun.crudboard'
version '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
compile('org.springframework.boot:spring-boot-starter-web')
testCompile('org.springframework.boot:spring-boot-starter-test')
}
test {
useJUnitPlatform()
}
에러 메세지:
Build file '/Users/kchung1995/IdeaProjects/CRUD-Web-Bulletin-Board/build.gradle' line: 14
Could not compile build file '/Users/kchung1995/IdeaProjects/CRUD-Web-Bulletin-Board/build.gradle'.
> startup failed:
build file '/Users/kchung1995/IdeaProjects/CRUD-Web-Bulletin-Board/build.gradle': 14: only buildscript {} and other plugins {} script blocks are allowed before plugins {} blocks, no other statements are allowed
uri로 받은 요청을 적절한 vue 화면까지 전달할 수 없는 문제
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.