월 22,000원
5개월 할부 시다른 수강생들이 자주 물어보는 질문이 궁금하신가요?
- 미해결스프링 부트 개념과 활용
springboot app 종료 방법
안녕하세요. 여러 강좌들 유용하게 보고 있습니다. 첫 질문 남겨봅니다.맥에서 springboot app 을 강사님처럼 java -jar ~.jar 로 시작후 앱을 종료하기 위해서 control + z 키로 죽이면 프로세스가 제대로 종료되지 않는 것 같습니다.그래서 kill -9 로 pid 를 찾아서 죽이는 경우가 종종 있는데요. 어떻게 하면 제대로 종료시킬 수 있을까요?
- 미해결스프링 부트 개념과 활용
실습을 따라하는데 에러가 발생했습니다.
https://github.com/goodGid/Inflearn http://localhost:8080/m/hello.html ==> 에러 발생 http://localhost:8080/ ==> index.html 못찾는 에러 발생 왜 이런 에러가 뜨는걸까요?
- 스프링 부트 개념과 활용
ApplicationRunner는 언제 사용하는것인가요 ?
삭제된 글입니다
- 미해결스프링 부트 개념과 활용
인터넷이 되지않는 인트라넷 상에서 스프링부트를 개발할 수 있는 방법
인터넷이 되지않는 인트라넷 상에서 스프링부트를 개발할 수 있는 방법이 있는지요... nexus 의 central 에 다 부었는데 nexus 에서 maven 설정의 parent 를 못가져 오는것 같아서요...
- 미해결스프링 부트 개념과 활용
스엥님 저는 빈을 재정의하면 그냥 값이 잘 출력 돼요!!
안녕하세요 스엥님 intellij 얼티밋으로 강의 잘 따라하고 있습니다.지금 부트 2.1.3 버전을 사용 하고 있는데 빈을 재정의 했을 때 따로 설정을 안해줘도 재정의한 빈 값으로 출력이 잘 됩니다.resources/META-INF/spring.factories 파일도 잘 만들어두었습니다.
- 미해결스프링 부트 개념과 활용
build시 다음과 같은 에러가 납니다.
APPLICATION FAILED TO STARTDescription:The bean 'holoman', defined in class path resource [me/izac/HolomanConfiguration.class], could not be registered. A bean with that name has already been defined in me.izac.Application and overriding is disabled.Action:Consider renaming one of the beans or enabling overriding by setting spring.main.allow-bean-definition-overriding=trueProcess finished with exit code 1
- 미해결스프링 부트 개념과 활용
mvn package 명령어..
terminal에서 C:SpringBootWorkIntellijspringbootgettingstarted>mvn package 'mvn'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는 배치 파일이 아닙니다. 이렇게 뜨는데 뭐가 설치가안된건가요?
- 미해결스프링 부트 개념과 활용
안녕하세요
다름이 아니라 제가 핵심기술 -> BOOT -> JPA 요렇게 수강중인데요 .BOOT 강의를 다들었는데 실수로 타이핑한 예제를 통으로 지워버렸네요 ; 찾으려 해도 못찾겠고 이거 혹시 어디서 받을수없나요 ???
- 미해결스프링 부트 개념과 활용
강좌 문서 자료 제공 가능하신가요?
강의하실때 사용하시는 구글독 문서 내용 공유 가능하신가요?
- 미해결스프링 부트 개념과 활용
JpaRepository cannot be resolved to a type 가 발생합니다 .
https://github.com/ShitaoMiu/startEducation/tree/master/springsecurityEducation입니다 .아래 JpaRepository 가 import에러가 발생한다고 글올렸던 사람입니다
- 미해결스프링 부트 개념과 활용
JpaRepository cannot be resolved to a type 가 발생합니다 .
JpaRepository cannot be resolved to a type이러한 에러가 자꾸 떠서 다음으로 넘어가질 못하는데요 ...<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">4.0.0<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.1.3.RELEASE</version> <relativePath/> <!-- lookup parent from repository --></parent><groupId>com.antMart.com</groupId><artifactId>springsecurityEducation</artifactId><version>0.0.1-SNAPSHOT</version><name>springsecurityEducation</name><description>Demo project for Spring Boot</description><properties> <java.version>1.8</java.version></properties><dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-jpa</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-security</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <dependency> <groupId>com.h2database</groupId> <artifactId>h2</artifactId> <scope>runtime</scope> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.springframework.security</groupId> <artifactId>spring-security-test</artifactId> <scope>test</scope> </dependency></dependencies><build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> </plugins></build>jap랑 boot 는 다 설정했거던요 ..어디가 문젠지 모르겠어요 maven update계속 해도 마찬가지네요 ..그리고 서비스파일에 private Collection<? extends GrantedAuthority> authorities() {return Arrays.asList(new SimpleGrantedAuthority("ROLE_USER"));}위에 부분 import가 잘못된건지 아니면 먼가를 빠트렸는지 모르겠네요 다 확인해봐도 정확한 답ㅁ을 못찾겠습니다 .서비스 파일입니다 .import java.util.Arrays;import java.util.Collection;import java.util.Optional;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.security.core.GrantedAuthority;import org.springframework.security.core.authority.SimpleGrantedAuthority;import org.springframework.security.core.userdetails.User;import org.springframework.security.core.userdetails.UserDetails;import org.springframework.security.core.userdetails.UserDetailsService;import org.springframework.security.core.userdetails.UsernameNotFoundException;import org.springframework.stereotype.Service;@Servicepublic class AccountService implements UserDetailsService {@Autowiredprivate AccountRepositorys accountRepository;public Account createAccount(String username, String password) { Account account = new Account(); account.setUsername(username); account.setPassword(password); return accountRepository.save(account);}@Overridepublic UserDetails loadUserByUsername(String username) throws UsernameNotFoundException { Optional<Account> byUserName = accountRepository.findByUsername(username); // 없으면 뱉어라 Account account = byUserName.orElseThrow(() -> new UsernameNotFoundException(username)); return new User(account.getUsername(), account.getPassword(), authorities());}private Collection<? extends GrantedAuthority> authorities() { return Arrays.asList(new SimpleGrantedAuthority("ROLE_USER"));}}interface 부분입니다 .import java.util.Optional;import org.springframework.data.jpa.repository.JpaRepository;public interface AccountRepositorys extends JpaRepository<Account, Long> {Optional findByUsername(String username);}runner 부분 입니다 .import org.springframework.beans.factory.annotation.Autowired;import org.springframework.boot.ApplicationArguments;import org.springframework.boot.ApplicationRunner;public class AccountRunner implements ApplicationRunner {@AutowiredAccountService accountService;@Overridepublic void run(ApplicationArguments args) throws Exception { Account account = accountService.createAccount("keesun","1234"); System.out.println(account.getUsername()+""+account.getPassword());}}maven clean과 project clean 여러번 해서 한번 된거같은데 그떄는 Service쪽에서 Description:Field accountRepository in com.antMart.com.AccountService required a bean of type 'com.antMart.com.AccountRepositorys' that could not be found.The injection point has the following annotations:@org.springframework.beans.factory.annotation.Autowired(required=true)Action:Consider defining a bean of type 'com.antMart.com.AccountRepositorys' in your configuration.이러한 에러가 발생했습니다 ..STS 사용중이구요 어디가 잘못된건지 모르겠습니다 ;
- 미해결스프링 부트 개념과 활용
강의듣다가 안되는게 있어서 질문드립니다.
spring.datasource.url=jdbc:postgresql://localhost:5433/testspring.datasource.username=postgresspring.datasource.password=123456spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation=truespring.jpa.hibernate.ddl-auto=validatespring.jpa.generate-ddl=falsespring.jpa.show-sql=true이렇게 application.properties 파일을 설정 해놓았구요POM.XML파일은 현재<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">4.0.0<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.0.3.RELEASE</version> <relativePath/> <!-- lookup parent from repository --></parent><groupId>com.antMart.com</groupId><artifactId>antMall</artifactId><version>0.0.1-SNAPSHOT</version><name>antMall</name><description>Demo project for Spring Boot</description><properties> <java.version>1.8</java.version></properties><dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-jdbc</artifactId> </dependency> <dependency> <groupId>com.h2database</groupId> <artifactId>h2</artifactId> <scope>runtime</scope> </dependency> <dependency> <groupId>org.postgresql</groupId> <artifactId>postgresql</artifactId> <scope>runtime</scope> </dependency> <dependency> <groupId>org.flywaydb</groupId> <artifactId>flyway-core</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-jpa</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.springframework.restdocs</groupId> <artifactId>spring-restdocs-mockmvc</artifactId> <scope>test</scope> </dependency></dependencies><build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> </plugins></build><repositories> <repository> <id>spring-snapshots</id> <name>Spring Snapshots</name> <url>https://repo.spring.io/snapshot</url> <snapshots> <enabled>true</enabled> </snapshots> </repository> <repository> <id>spring-milestones</id> <name>Spring Milestones</name> <url>https://repo.spring.io/milestone</url> </repository></repositories><pluginRepositories> <pluginRepository> <id>spring-snapshots</id> <name>Spring Snapshots</name> <url>https://repo.spring.io/snapshot</url> <snapshots> <enabled>true</enabled> </snapshots> </pluginRepository> <pluginRepository> <id>spring-milestones</id> <name>Spring Milestones</name> <url>https://repo.spring.io/milestone</url> </pluginRepository></pluginRepositories>이러한 상태이구요/resource/db/migration/V1__init.sql에 강의내용이랑 같은 sql를 넣었구요postsql 에서 database만 만들어놓은 상태입니다 이경우에 aplication을 run 돌리면 스키마를 만들지를 않아요 아무 에러도 없구요그래서 V1__init.sql을 v1으로 바꿔서 에러라도 내볼려고 해도 그마저도 에러가 없어요 아에 작동을 안하는거 같은데 어디를 봐야할까요 ??
- 미해결스프링 부트 개념과 활용
h2 사용시 테이블을 생성하지 않아도 되는 이유
안녕하세요 강의를 잘 수강하고 있습니다.JPA를 h2와 연동해 사용할 경우 엔티티와 매핑될 테이블을 직접 생성해 주지 않아도 되는데에 반해, 일반 RDBMS와 연동해 사용할 때에는 테이블을 직접 생성해 줘야 하는 것으로 알고 있습니다. 후자의 경우야 너무나 당연한 내용이라고 생각이 들지만, 어떻게 h2에서는 테이블을 직접 생성해주지 않아도 되는 것인지 궁금합니다. 또 이와 비슷한 원리로 RDBMS에서도 테이블을 자동으로 생성될 수 있도록 설정하는 방법이 있을까요?
- 미해결스프링 부트 개념과 활용
강의를 듣다가 궁금한점이 생겼습니다 .[jpa연동]
<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">4.0.0<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.0.3.RELEASE</version> <relativePath/> <!-- lookup parent from repository --></parent><groupId>com.antMart.com</groupId><artifactId>antMall</artifactId><version>0.0.1-SNAPSHOT</version><name>antMall</name><description>Demo project for Spring Boot</description><properties> <java.version>1.8</java.version></properties><dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-jdbc</artifactId> </dependency> <dependency> <groupId>com.h2database</groupId> <artifactId>h2</artifactId> <scope>runtime</scope> </dependency> <dependency> <groupId>org.postgresql</groupId> <artifactId>postgresql</artifactId> <scope>runtime</scope> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-jpa</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.springframework.restdocs</groupId> <artifactId>spring-restdocs-mockmvc</artifactId> <scope>test</scope> </dependency></dependencies><build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> </plugins></build><repositories> <repository> <id>spring-snapshots</id> <name>Spring Snapshots</name> <url>https://repo.spring.io/snapshot</url> <snapshots> <enabled>true</enabled> </snapshots> </repository> <repository> <id>spring-milestones</id> <name>Spring Milestones</name> <url>https://repo.spring.io/milestone</url> </repository></repositories><pluginRepositories> <pluginRepository> <id>spring-snapshots</id> <name>Spring Snapshots</name> <url>https://repo.spring.io/snapshot</url> <snapshots> <enabled>true</enabled> </snapshots> </pluginRepository> <pluginRepository> <id>spring-milestones</id> <name>Spring Milestones</name> <url>https://repo.spring.io/milestone</url> </pluginRepository></pluginRepositories>전체 pom.xml 소스 첨부드립니다 .저는 저기서 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-jpa</artifactId> <scope>test</scope> </dependency>이부분만 넣으면 에러가 와장창 떠버리네요 이유를 모르겠습니다 clean도 해보고 폴더에 가서 maven을 직접 지우고 다시 빌드 해봐도 마찬가지네요 ..좀 알려주세요 .에러내용을 이미지로 첨부드리고 싶었는데 이미지를 올릴수가 없네요 여기는 ..그래서 복사해서 첨부합니다.Description Resource Path Location TypeThe project cannot be built until build path errors are resolved antMall Unknown Java ProblemThe container 'Maven Dependencies' references non existing library 'C:Usersblossom.m2repositoryorgspringframeworkbootspring-boot-starter-web2.0.3.RELEASEspring-boot-starter-web-2.0.3.RELEASE.jar' antMall Build path Build Path ProblemMissing artifact org.yaml:snakeyaml:jar:1.19 pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact org.xmlunit:xmlunit-core:jar:2.5.1 pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact org.springframework.restdocs:spring-restdocs-mockmvc:jar:2.0.1.RELEASE pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact org.springframework.restdocs:spring-restdocs-core:jar:2.0.1.RELEASE pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact org.springframework.data:spring-data-jpa:jar:2.0.8.RELEASE pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact org.springframework.data:spring-data-commons:jar:2.0.8.RELEASE pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact org.springframework.boot:spring-boot:jar:2.0.3.RELEASE pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact org.springframework.boot:spring-boot-test:jar:2.0.3.RELEASE pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact org.springframework.boot:spring-boot-test-autoconfigure:jar:2.0.3.RELEASE pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact org.springframework.boot:spring-boot-starter:jar:2.0.3.RELEASE pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact org.springframework.boot:spring-boot-starter-web:jar:2.0.3.RELEASE pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact org.springframework.boot:spring-boot-starter-tomcat:jar:2.0.3.RELEASE pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact org.springframework.boot:spring-boot-starter-test:jar:2.0.3.RELEASE pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact org.springframework.boot:spring-boot-starter-logging:jar:2.0.3.RELEASE pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact org.springframework.boot:spring-boot-starter-json:jar:2.0.3.RELEASE pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact org.springframework.boot:spring-boot-starter-jdbc:jar:2.0.3.RELEASE pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact org.springframework.boot:spring-boot-starter-data-jpa:jar:2.0.3.RELEASE pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact org.springframework.boot:spring-boot-starter-aop:jar:2.0.3.RELEASE pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact org.springframework.boot:spring-boot-autoconfigure:jar:2.0.3.RELEASE pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact org.springframework:spring-webmvc:jar:5.0.7.RELEASE pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact org.springframework:spring-web:jar:5.0.7.RELEASE pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact org.springframework:spring-tx:jar:5.0.7.RELEASE pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact org.springframework:spring-test:jar:5.0.7.RELEASE pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact org.springframework:spring-orm:jar:5.0.7.RELEASE pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact org.springframework:spring-jdbc:jar:5.0.7.RELEASE pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact org.springframework:spring-jcl:jar:5.0.7.RELEASE pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact org.springframework:spring-expression:jar:5.0.7.RELEASE pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact org.springframework:spring-core:jar:5.0.7.RELEASE pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact org.springframework:spring-context:jar:5.0.7.RELEASE pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact org.springframework:spring-beans:jar:5.0.7.RELEASE pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact org.springframework:spring-aspects:jar:5.0.7.RELEASE pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact org.springframework:spring-aop:jar:5.0.7.RELEASE pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact org.slf4j:slf4j-api:jar:1.7.25 pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact org.slf4j:jul-to-slf4j:jar:1.7.25 pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact org.skyscreamer:jsonassert:jar:1.5.0 pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact org.postgresql:postgresql:jar:42.2.2 pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact org.ow2.asm:asm:jar:5.0.4 pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact org.objenesis:objenesis:jar:2.6 pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact org.mockito:mockito-core:jar:2.15.0 pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact org.jboss.logging:jboss-logging:jar:3.3.2.Final pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact org.jboss:jandex:jar:2.0.3.Final pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact org.javassist:javassist:jar:3.22.0-GA pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact org.hibernate.validator:hibernate-validator:jar:6.0.10.Final pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact org.hibernate.javax.persistence:hibernate-jpa-2.1-api:jar:1.0.2.Final pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact org.hibernate.common:hibernate-commons-annotations:jar:5.0.1.Final pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact org.hibernate:hibernate-core:jar:5.2.17.Final pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact org.hamcrest:hamcrest-library:jar:1.3 pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact org.hamcrest:hamcrest-core:jar:1.3 pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact org.assertj:assertj-core:jar:3.9.1 pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact org.aspectj:aspectjweaver:jar:1.8.13 pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact org.apache.tomcat.embed:tomcat-embed-websocket:jar:8.5.31 pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact org.apache.tomcat.embed:tomcat-embed-el:jar:8.5.31 pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact org.apache.tomcat.embed:tomcat-embed-core:jar:8.5.31 pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact org.apache.logging.log4j:log4j-to-slf4j:jar:2.10.0 pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact org.apache.logging.log4j:log4j-api:jar:2.10.0 pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact net.minidev:json-smart:jar:2.3 pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact net.minidev:accessors-smart:jar:1.2 pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact net.bytebuddy:byte-buddy:jar:1.7.11 pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact net.bytebuddy:byte-buddy-agent:jar:1.7.11 pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact junit:junit:jar:4.12 pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact javax.validation:validation-api:jar:2.0.1.Final pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact javax.transaction:javax.transaction-api:jar:1.2 pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact javax.servlet:javax.servlet-api:jar:3.1.0 pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact javax.annotation:javax.annotation-api:jar:1.3.2 pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact dom4j:dom4j:jar:1.6.1 pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact com.zaxxer:HikariCP:jar:2.7.9 pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact com.vaadin.external.google:android-json:jar:0.0.20131108.vaadin1 pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact com.jayway.jsonpath:json-path:jar:2.4.0 pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact com.h2database:h2:jar:1.4.197 pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact com.fasterxml.jackson.module:jackson-module-parameter-names:jar:2.9.6 pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.9.6 pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact com.fasterxml.jackson.datatype:jackson-datatype-jdk8:jar:2.9.6 pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact com.fasterxml.jackson.core:jackson-databind:jar:2.9.6 pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact com.fasterxml.jackson.core:jackson-core:jar:2.9.6 pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact com.fasterxml.jackson.core:jackson-annotations:jar:2.9.0 pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact com.fasterxml:classmate:jar:1.3.4 pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact ch.qos.logback:logback-core:jar:1.2.3 pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact ch.qos.logback:logback-classic:jar:1.2.3 pom.xml /antMall line 1 Maven Dependency ProblemMissing artifact antlr:antlr:jar:2.7.7 pom.xml /antMall line 1 Maven Dependency ProblemFailed to read artifact descriptor for antlr:antlr:jar:2.7.7org.eclipse.aether.resolution.ArtifactDescriptorException: Failed to read artifact descriptor for antlr:antlr:jar:2.7.7at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:282)at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArtifactDescriptor(DefaultArtifactDescriptorReader.java:198)at org.eclipse.aether.internal.impl.DefaultDependencyCollector.resolveCachedArtifactDescriptor(DefaultDependencyCollector.java:535)at org.eclipse.aether.internal.impl.DefaultDependencyCollector.getArtifactDescriptorResult(DefaultDependencyCollector.java:519)at org.eclipse.aether.internal.impl.DefaultDependencyCollector.processDependency(DefaultDependencyCollector.java:409)at org.eclipse.aether.internal.impl.DefaultDependencyCollector.processDependency(DefaultDependencyCollector.java:363)at org.eclipse.aether.internal.impl.DefaultDependencyCollector.process(DefaultDependencyCollector.java:351)at org.eclipse.aether.internal.impl.DefaultDependencyCollector.doRecurse(DefaultDependencyCollector.java:504)at org.eclipse.aether.internal.impl.DefaultDependencyCollector.processDependency(DefaultDependencyCollector.java:458)at org.eclipse.aether.internal.impl.DefaultDependencyCollector.processDependency(DefaultDependencyCollector.java:363)at org.eclipse.aether.internal.impl.DefaultDependencyCollector.process(DefaultDependencyCollector.java:351)at org.eclipse.aether.internal.impl.DefaultDependencyCollector.doRecurse(DefaultDependencyCollector.java:504)at org.eclipse.aether.internal.impl.DefaultDependencyCollector.processDependency(DefaultDependencyCollector.java:458)at org.eclipse.aether.internal.impl.DefaultDependencyCollector.processDependency(DefaultDependencyCollector.java:363)at org.eclipse.aether.internal.impl.DefaultDependencyCollector.process(DefaultDependencyCollector.java:351)at org.eclipse.aether.internal.impl.DefaultDependencyCollector.collectDependencies(DefaultDependencyCollector.java:254)at org.eclipse.aether.internal.impl.DefaultRepositorySystem.collectDependencies(DefaultRepositorySystem.java:316)at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:172)at org.apache.maven.project.DefaultProjectBuilder.resolveDependencies(DefaultProjectBuilder.java:215)at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:188)at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:119)at org.eclipse.m2e.core.internal.embedder.MavenImpl.readMavenProject(MavenImpl.java:636)at org.eclipse.m2e.core.internal.project.registry.DefaultMavenDependencyResolver.resolveProjectDependencies(DefaultMavenDependencyResolver.java:63)at org.eclipse.m2e.core.internal.project.registry.ProjectRegistryManager.refreshPhase2(ProjectRegistryManager.java:530)at org.eclipse.m2e.core.internal.project.registry.ProjectRegistryManager$3.call(ProjectRegistryManager.java:492)at org.eclipse.m2e.core.internal.project.registry.ProjectRegistryManager$3.call(ProjectRegistryManager.java:1)at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:177)at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:151)at org.eclipse.m2e.core.internal.project.registry.ProjectRegistryManager.refresh(ProjectRegistryManager.java:496)at org.eclipse.m2e.core.internal.project.registry.ProjectRegistryManager.refresh(ProjectRegistryManager.java:351)at org.eclipse.m2e.core.internal.project.registry.ProjectRegistryManager.refresh(ProjectRegistryManager.java:298)at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager.updateProjectConfiguration0(ProjectConfigurationManager.java:405)at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager$2.call(ProjectConfigurationManager.java:352)at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager$2.call(ProjectConfigurationManager.java:1)at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.executeBare(MavenExecutionContext.java:177)at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:151)at org.eclipse.m2e.core.internal.embedder.MavenExecutionContext.execute(MavenExecutionContext.java:99)at org.eclipse.m2e.core.internal.embedder.MavenImpl.execute(MavenImpl.java:1351)at org.eclipse.m2e.core.internal.project.ProjectConfigurationManager.updateProjectConfiguration(ProjectConfigurationManager.java:349)at org.eclipse.m2e.core.ui.internal.UpdateMavenProjectJob.runInWorkspace(UpdateMavenProjectJob.java:77)at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:39)at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Failure to transfer antlr:antlr:pom:2.7.7 from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact antlr:antlr:pom:2.7.7 from/to central (https://repo.maven.apache.org/maven2): The operation was cancelled.at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:444)at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:246)at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:223)at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:267)... 41 moreCaused by: org.eclipse.aether.transfer.ArtifactTransferException: Failure to transfer antlr:antlr:pom:2.7.7 from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact antlr:antlr:pom:2.7.7 from/to central (https://repo.maven.apache.org/maven2): The operation was cancelled.at org.eclipse.aether.internal.impl.DefaultUpdateCheckManager.newException(DefaultUpdateCheckManager.java:238)at org.eclipse.aether.internal.impl.DefaultUpdateCheckManager.checkArtifact(DefaultUpdateCheckManager.java:206)at org.eclipse.aether.internal.impl.DefaultArtifactResolver.gatherDownloads(DefaultArtifactResolver.java:585)at org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:503)at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:421)... 44 morepom.xml /antMall line 1 Maven Dependency Problem이 에러들이 전부 pom.xml에 jpa 추가하는 부분만 없애면 다 사라지거던요 ..이유를 좀 알수잇을까요
- 미해결스프링 부트 개념과 활용
정적 페이지를 고칠 때마다 서버를 재시작 해야하나요?
400.html를 404.html로 수정하면서 재시작를 하시더라고요.예전에 JSP에서는 안에 있는 내용이 추가 되거나 파일명이 변경되면 런타임에 반영이 되거든요.정적콘텐츠가 수정될 때마다 서버를 재시작하는 건 너무 비효율적인것 같습니다.좋은 방법이 없을까요?
- 미해결스프링 부트 개념과 활용
자료실에 소스 같은게 혹시 있나요 ??
질문이라기 보단각 강좌마다 소스를 볼수있는곳이 혹시 있을까요 ??
- 미해결스프링 부트 개념과 활용
Hateoas 관련 질문 드립니다.
강의에서 Resource를 이용한 URI생성을 보여주셨는데요. 호출된 리소스에 대한 URI가 아닌 다른 하이퍼링크에 대한 Hateoas는 어떤식으로 생성하는 방법이 있을지요.. 예를들어, 게시판에서 게시글들을 보여주는 API를 호출하였을 때, 각각의 게시글들을 상세하게 볼 수 있는 하이퍼링크를 담게 하려면 어떻게 해야할까요?? 궁금한 부분에 대한 설명이 미흡한점 죄송스럽게 생각하며, 답변 기다리겠습니다. 감사합니다!
- 미해결스프링 부트 개념과 활용
강의를 듣다가 궁금한점이 생겼습니다 .
500에러 커스텀 페이지가 동작을 하지 않습니다 .2.1.2.RELEASE 버전이구요 @GetMapping("/helloException")public String helloException() { throw new SampleException();}이 소스이구요import org.springframework.boot.SpringApplication;import org.springframework.boot.WebApplicationType;import org.springframework.boot.autoconfigure.SpringBootApplication;@SpringBootApplicationpublic class SampleException extends RuntimeException{}경로는 resources > public > error 에 넣어도 봤고 static에도 넣어봤지만 역시 안뜨네요 500.html으로 넣었는데 이유를 잘 모르겠습니다 . 501.
- 미해결스프링 부트 개념과 활용
테스트 관련해서 궁금한게 있습니다~!
가끔 책이나 영상, 기선님의 강의를 포함해서 따라하다보면 늘 궁금했던 부분이 있습니다.테스트를 위해 AssertThat을 사용할 때 어떤 경우엔 Junit에 있는 것을 사용하고 어떤 경우에는 AssertJ에 있는 것을 사용하던데, 어떤 기준으로 구분해서 사용하는지 알 수 있을까요?그리고 그러한 테스트를 공부하기 위해서는 도움이 될만한 서적이나 사이트 등을 추천해주실 만한 것이 있는지 궁금합니다.좋은 강의 항상 감사드리고, 앞으로 올라올 Spring MVC 강의도 기대하겠습니다!
- 미해결스프링 부트 개념과 활용
테스트코드를 돌릴 경우 슬라이스테스트는 인베디드DB를 쓴다고 하셨는데요.
제가 이해를 잘못했는지 모르겠습니다.AccountRepositoryTest는 슬라이스 테스트였고 그렇다면 메모리DB 인 H2를 사용하는걸로 말씀하신것 같은데요.postgres에 저장된 이유가 있을까요?제가 아마 놓친 부분이 있는거 같습니다만...