프로젝트 정리/실시간 검색어 프로젝트
#2 프로젝트 생성
JunGi Jeong
2021. 8. 25. 12:10
Dependencies 설정 및 기본 설정
build.gradle 파일
plugins {
id 'org.springframework.boot' version '2.5.4'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'java'
}
group = 'devjun'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '11'
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
dependencies {
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'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.thymeleaf.extras:thymeleaf-extras-springsecurity5'
compileOnly 'org.projectlombok:lombok'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
runtimeOnly 'com.h2database:h2'
runtimeOnly 'org.postgresql:postgresql'
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.springframework.security:spring-security-test'
}
test {
useJUnitPlatform()
}
테스팅 중 스프링 시큐리티로 인해 로그인 요청
스프링 시큐리티를 사용하면 기본적으로 User라는 아이디와 생성된 비밀번호를 통해 로그인 할 수 있다.
Github에 올리고 일단 네이버쪽 랭킹뉴스를 크롤링 해 보자.
https://github.com/devjun63/searchingissue/tree/84cff38616f16f03176e2a1fc99c5e8c2d6464d3
GitHub - devjun63/searchingissue: Crawl the main issues on the portal site. Create a real-time search term site based on the acq
Crawl the main issues on the portal site. Create a real-time search term site based on the acquired data. - GitHub - devjun63/searchingissue: Crawl the main issues on the portal site. Create a real...
github.com