묻고 답해요
164만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결파이썬을 활용한 데이터분석과 IT보안
mac os
mac os는 어떤식으로 설정해야 하나요? 궁금해서 여쭤봅니다
-
미해결파이썬을 활용한 데이터분석과 IT보안
안녕하세요
안녕하세요 영상 시청 도중 불편한 것 있어 질문 드립니다. 가운데 아래에 있는 보안프로젝트 베너광고 때문인데요. 없앨 수는 없나요?
-
미해결레트로의 유니티 C# 게임 프로그래밍 에센스
동작이 안됩니다.
강의해주신 내용과 같이 코딩을 했는데, 마우스 버튼을 눌렀다가 떼었을 때 세로 방향으로 돌지 않습니다. 단계별로 state가 넘어가는지 확인하기 위해 디버그.로그 코드를 넣어 놓았습니다. 제가 무엇을 잘못해서 동작하지 않는 것일까요? 답변 부탁드립니다. using System.Collections; using System.Collections.Generic; using UnityEngine; public class ShooterRotator : MonoBehaviour { private enum RotateState { Idle,Vertical,Horizontal,Ready } private RotateState state = RotateState.Idle; public float verticalRoteteSpeed = 360f; public float horizontalRoteteSpeed = 360f; // Start is called before the first frame update void Start() { } // Update is called once per frame void Update() { if(state == RotateState.Idle) { if(Input.GetButtonDown("Fire1")) { state = RotateState.Horizontal; } } else if(state == RotateState.Horizontal) { if(Input.GetButton("Fire1")) { transform.Rotate(new Vector3(0,horizontalRoteteSpeed * Time.deltaTime,0)); } else if(Input.GetButtonUp("Fire1")) { state = RotateState.Vertical; Debug.Log("1"); } else if(state == RotateState.Vertical) { if(Input.GetButton("Fire1")) { transform.Rotate(new Vector3(-verticalRoteteSpeed * Time.deltaTime,0,0)); Debug.Log("2"); } else if(Input.GetButtonUp("Fire1")) { state = RotateState.Ready; Debug.Log("3"); } } } } }
-
해결됨홍정모의 따라하며 배우는 C++
[09:33] 우리가 만든 클래스IntList의 배열을 선언하기위해 메모리를 동적할당받을 때
<code> IntList *list = new IntList; // list[3] = IntList; //리스트의 array이기 때문에 다른 문제가 된다라는거 (*(list + 0))[3] = 22; cout << (list[0])[3] << endl; 주석 부분은 IntList의 배열이기 때문에 list[3] 이렇게 접근하는 건 의도가 다르다고 말씀하신 것으로 이해했습니다. (*(list + 0))[3] = 22; cout << (list[0])[3] << endl; 저렇게 쓰려고할 때는 list[3] 이 아니라 위와같이 접근하면 되는거죠? <전체코드> #include <iostream> #include <cassert> using namespace std; class IntList { private: // int m_list[10]{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}; int *m_list = new int[10]{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}; public: int & operator [] (const int index) { assert(index >= 0); // assert(index < sizeof(m_list) / sizeof(m_list[0])); assert(index < 10); return m_list[index]; } const int & operator [] (const int index) const { assert(index >= 0); assert(index < 10); return m_list[index]; } // void setItem(int index, int value) // { // m_list[index] = value; // } // int getItem(int index) // { // return m_list[index]; // } // int * getList() // { // return m_list; // } }; int main() { IntList *list = new IntList; // list[3] = IntList; //리스트의 array이기 때문에 다른 문제가 된다라는거 (*(list + 0))[3] = 22; cout << (list[0])[3] << endl; // IntList my_list; // my_list[9] = 12; //lvalue 여야 하니까 참조로 리턴 // my_list[8] = 6; //lvalue 여야 하니까 참조로 리턴 // cout << my_list[9] << endl; // cout << my_list[8] << endl; // IntList my_list; // my_list.setItem(3, 1); // cout << my_list.getItem(3) << endl; // my_list.getList()[3] = 10; // cout << my_list.getList()[3] << endl; return 0; } 감사합니다.
-
미해결웹 게임을 만들며 배우는 자바스크립트
5분 25초 질문입니다.
배열 인덱스안에 -1이 들어가면 안되니까 concat으로 처리해주셨는데 왜 [][칸] 은 영향을 주지 않나요? 0,0을 누르면 칸도 -1이 되는거 아닌가요 강사님?
-
미해결[개정판] 파이썬 머신러닝 완벽 가이드
4.4 Random Forest 에러
4.4 Random Forest에서 아래 코드를 입력하면 File b'./human_activity/features.txt' does not exist: b'./human_activity/features.txt'에러가 나오는데요...왜 이런건지 궁금합니다.import pandas as pd def get_human_dataset( ): # 각 데이터 파일들은 공백으로 분리되어 있으므로 read_csv에서 공백 문자를 sep으로 할당. feature_name_df = pd.read_csv('./human_activity/features.txt',sep='\s+', header=None,names=['column_index','column_name']) # 중복된 feature명을 새롭게 수정하는 get_new_feature_name_df()를 이용하여 새로운 feature명 DataFrame생성. new_feature_name_df = get_new_feature_name_df(feature_name_df) # DataFrame에 피처명을 컬럼으로 부여하기 위해 리스트 객체로 다시 변환 feature_name = new_feature_name_df.iloc[:, 1].values.tolist() # 학습 피처 데이터 셋과 테스트 피처 데이터을 DataFrame으로 로딩. 컬럼명은 feature_name 적용 X_train = pd.read_csv('./human_activity/train/X_train.txt',sep='\s+', names=feature_name ) X_test = pd.read_csv('./human_activity/test/X_test.txt',sep='\s+', names=feature_name) # 학습 레이블과 테스트 레이블 데이터을 DataFrame으로 로딩하고 컬럼명은 action으로 부여 y_train = pd.read_csv('./human_activity/train/y_train.txt',sep='\s+',header=None,names=['action']) y_test = pd.read_csv('./human_activity/test/y_test.txt',sep='\s+',header=None,names=['action']) # 로드된 학습/테스트용 DataFrame을 모두 반환 return X_train, X_test, y_train, y_test X_train, X_test, y_train, y_test = get_human_dataset()
-
미해결프로그래밍 시작하기 : 파이썬 입문 (Inflearn Original)
재선언을 할때 오류가 납니다
왜 그런건가요?
-
미해결[개정판] 파이썬 머신러닝 완벽 가이드
fit & transform 과 fit_transform의 차이가 무엇인가요?
안녕하세요, 정말 좋은 강의 잘 듣고 있습니다!! sklearn 의 클래스를 사용하다보면 fit, transform이 많이 언급되는데요. 어쩔때는 fit 하고나서 transform을 수행하거나 fit_transform으로 한번에 수행하는 경우가 있는데 두 가지의 명확한 차이가 무엇일까요? 아래의 PCA 코드로 테스트해보니까 반환되는 결과값이 소수점에서 아주 미세하게 차이가 나긴하더라구요. from sklearn.preprocessing import StandardScaler iris_scaled = StandardScaler().fit_transform(irisDF.iloc[:, :-1]) from sklearn.decomposition import PCA pca = PCA(n_components=2) #fit( )과 transform( ) 을 호출하여 PCA 변환 데이터 반환 pca.fit(iris_scaled) iris_pca = pca.transform(iris_scaled) print(iris_pca.shape) # fit_transform imp = pca.fit_transform(iris_scaled) imp[0,0] - iris_pca[0,0] >> -3.552713678800501e-15
-
미해결리눅스 시스템 프로그래밍 - 이론과 실습
Makefile
inflearn에 올려져있는 Makefile 파일을가상머신에서 어떻게 다운로드받아서 사용하나요?
-
미해결남박사의 파이썬 기초부터 실전 100% 활용
첫 코딩강의자 첫 코딩을 여기서 배웁니다.
동영상 강의를 들을 때 어떤 방식으로 배우는 게 좋을까요? 지금은 노트에 적으면서 배우고 있습니다. 그래서 필기하면서 영상 보다보니 영상 내용보다 많이 오래 걸리네요. 어느 방식이 배우는데 있어서 좋을지 궁금합니다.
-
미해결웹 게임을 만들며 배우는 자바스크립트
.length 이러한 함수를 뭐라고 하나요?
일단 이것도 뭔가를 계산해주니 함수같기는 한데 보통 예를들어 if (word[length(word)-1])저런 식의 형태였다면 헷갈리지 않을 것 같은데 저런식의 함수를 따로 부르는 명칭이 있나요? 변수종속함수?
-
미해결React로 NodeBird SNS 만들기
const config = require('../config/config')[env];
여기서 [env] 처럼 뒤에 배열이 붙는경우는 어떻게 해석하야하나요?
-
미해결'해킹대회 문제'로 배우는 파일시스템 이해/실습
강의 사전지식
사전지식은 무엇이 필요한가요?
-
미해결머신러닝 이론 및 파이썬 실습
파이썬 3이 아닌 2버전을 쓰는 이유를 알 수 있을까요?
..
-
미해결Flutter 입문 - 안드로이드, iOS 개발을 한 번에 (with Firebase)
게시물을 가져오면서 에러가 발생합니다..!
안녕하세요 선생님! 파이어스토어에서 저장한 게시물을 가져와서 searchpage에 보여주는 것을 하고있는데요..! 이런 에러와 함께 화면 사진 부분에 에러가뜹니다. 찾아봐도 어떻게 고쳐야하는 에러인기 잘 모르겠어서 질문 드립니다ㅠㅠ
-
미해결예제로 배우는 스프링 입문 (개정판)
mvnw package 실행 시 오류
Exception in thread "main" javax.net.ssl.SSLException: Received fatal alert: protocol_version at sun.security.ssl.Alerts.getSSLException(Alerts.java:208) at sun.security.ssl.Alerts.getSSLException(Alerts.java:154) at sun.security.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:1979) at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1086) at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1332) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1359) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1343) at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:559) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1301) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254) at org.apache.maven.wrapper.DefaultDownloader.downloadInternal(DefaultDownloader.java:90) at org.apache.maven.wrapper.DefaultDownloader.download(DefaultDownloader.java:76) at org.apache.maven.wrapper.Installer.createDist(Installer.java:72) at org.apache.maven.wrapper.WrapperExecutor.execute(WrapperExecutor.java:121) at org.apache.maven.wrapper.MavenWrapperMain.main(MavenWrapperMain.java:61) 해당 오류를 잘 모르겠습니다.
-
해결됨따라하며 배우는 노드, 리액트 시리즈 - 유튜브 사이트 만들기
video.save(...)
좋은강의 감사합니다. 다른게아니라 잘따라하다가 save가 안되서 질문 드려요 console 로 다찍어봤는데 video 객체까지 다 가져오는데 save 함수가 안되네요.. 왜이런걸까요? 아무런 오류도 나오지 않습니다.
-
미해결인스타그램 클론 - full stack 웹 개발
삭제가 안되네요 ㅠㅡㅠ
뭐가 문제인지 잘 모르겟습니다 흑흑
-
미해결실전! 스프링 부트와 JPA 활용1 - 웹 애플리케이션 개발
Member테이블 생성이 안되는데 어떤 문제일까요?
문법적 오류는 아닌 거 같습니다 테스트 돌려보면 이렇게 나오는데 원인이 뭘까요 똑같이 따라했는데 ㅠㅠ Testing started at 오후 2:17 ... > Task :cleanTest > Task :compileJava UP-TO-DATE > Task :processResources > Task :classes > Task :compileTestJava UP-TO-DATE > Task :processTestResources NO-SOURCE > Task :testClasses UP-TO-DATE > Task :test 14:17:42.173 [Test worker] DEBUG org.springframework.test.context.junit4.SpringJUnit4ClassRunner - SpringJUnit4ClassRunner constructor called with [class jpabook.jpashop.MemberRepositoryTest] 14:17:42.189 [Test worker] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating CacheAwareContextLoaderDelegate from class [org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate] 14:17:42.206 [Test worker] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating BootstrapContext using constructor [public org.springframework.test.context.support.DefaultBootstrapContext(java.lang.Class,org.springframework.test.context.CacheAwareContextLoaderDelegate)] 14:17:42.252 [Test worker] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating TestContextBootstrapper for test class [jpabook.jpashop.MemberRepositoryTest] from class [org.springframework.boot.test.context.SpringBootTestContextBootstrapper] 14:17:42.287 [Test worker] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Neither @ContextConfiguration nor @ContextHierarchy found for test class [jpabook.jpashop.MemberRepositoryTest], using SpringBootContextLoader 14:17:42.294 [Test worker] DEBUG org.springframework.test.context.support.AbstractContextLoader - Did not detect default resource location for test class [jpabook.jpashop.MemberRepositoryTest]: class path resource [jpabook/jpashop/MemberRepositoryTest-context.xml] does not exist 14:17:42.295 [Test worker] DEBUG org.springframework.test.context.support.AbstractContextLoader - Did not detect default resource location for test class [jpabook.jpashop.MemberRepositoryTest]: class path resource [jpabook/jpashop/MemberRepositoryTestContext.groovy] does not exist 14:17:42.296 [Test worker] INFO org.springframework.test.context.support.AbstractContextLoader - Could not detect default resource locations for test class [jpabook.jpashop.MemberRepositoryTest]: no resource found for suffixes {-context.xml, Context.groovy}. 14:17:42.297 [Test worker] INFO org.springframework.test.context.support.AnnotationConfigContextLoaderUtils - Could not detect default configuration classes for test class [jpabook.jpashop.MemberRepositoryTest]: MemberRepositoryTest does not declare any static, non-private, non-final, nested classes annotated with @Configuration. 14:17:42.412 [Test worker] DEBUG org.springframework.test.context.support.ActiveProfilesUtils - Could not find an 'annotation declaring class' for annotation type [org.springframework.test.context.ActiveProfiles] and class [jpabook.jpashop.MemberRepositoryTest] 14:17:42.591 [Test worker] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: file [C:\Users\Toshiba\Desktop\study\jpashop\jpashop\build\classes\java\main\jpabook\jpashop\JpashopApplication.class] 14:17:42.605 [Test worker] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Found @SpringBootConfiguration jpabook.jpashop.JpashopApplication for test class jpabook.jpashop.MemberRepositoryTest 14:17:42.841 [Test worker] DEBUG org.springframework.boot.test.context.SpringBootTestContextBootstrapper - @TestExecutionListeners is not present for class [jpabook.jpashop.MemberRepositoryTest]: using defaults. 14:17:42.844 [Test worker] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener, org.springframework.test.context.web.ServletTestExecutionListener, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener, org.springframework.test.context.support.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener] 14:17:42.896 [Test worker] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@27c8f2ae, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@293327b4, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@57cf5589, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@7e97c13e, org.springframework.test.context.support.DirtiesContextTestExecutionListener@1eaa11c0, org.springframework.test.context.transaction.TransactionalTestExecutionListener@2e949b26, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@3dae060, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@43844f14, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@dee62b5, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@7299585, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@5324ace0, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@3239a57f] 14:17:42.906 [Test worker] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved @ProfileValueSourceConfiguration [null] for test class [jpabook.jpashop.MemberRepositoryTest] 14:17:42.907 [Test worker] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [jpabook.jpashop.MemberRepositoryTest] 14:17:42.920 [Test worker] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved @ProfileValueSourceConfiguration [null] for test class [jpabook.jpashop.MemberRepositoryTest] 14:17:42.921 [Test worker] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [jpabook.jpashop.MemberRepositoryTest] 14:17:42.924 [Test worker] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved @ProfileValueSourceConfiguration [null] for test class [jpabook.jpashop.MemberRepositoryTest] 14:17:42.925 [Test worker] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [jpabook.jpashop.MemberRepositoryTest] 14:17:42.938 [Test worker] DEBUG org.springframework.test.context.support.AbstractDirtiesContextTestExecutionListener - Before test class: context [DefaultTestContext@255eec38 testClass = MemberRepositoryTest, testInstance = [null], testMethod = [null], testException = [null], mergedContextConfiguration = [WebMergedContextConfiguration@426dab4d testClass = MemberRepositoryTest, locations = '{}', classes = '{class jpabook.jpashop.JpashopApplication}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true}', contextCustomizers = set[org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizerFactory$Customizer@17a6614d, org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@7f4ad5d4, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@6e1f7f82, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@31d979ab], resourceBasePath = 'src/main/webapp', contextLoader = 'org.springframework.boot.test.context.SpringBootContextLoader', parent = [null]], attributes = map['org.springframework.test.context.web.ServletTestExecutionListener.activateListener' -> true]], class annotated with @DirtiesContext [false] with mode [null]. 14:17:42.940 [Test worker] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved @ProfileValueSourceConfiguration [null] for test class [jpabook.jpashop.MemberRepositoryTest] 14:17:42.940 [Test worker] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [jpabook.jpashop.MemberRepositoryTest] 14:17:42.996 [Test worker] DEBUG org.springframework.test.context.support.TestPropertySourceUtils - Adding inlined properties to environment: {spring.jmx.enabled=false, org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true, server.port=-1} . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v2.1.11.RELEASE) 2020-01-03 14:17:44.047 INFO 5780 --- [ Test worker] jpabook.jpashop.MemberRepositoryTest : Starting MemberRepositoryTest on DESKTOP-N953KG9 with PID 5780 (started by Toshiba in C:\Users\Toshiba\Desktop\study\jpashop\jpashop) 2020-01-03 14:17:44.051 INFO 5780 --- [ Test worker] jpabook.jpashop.MemberRepositoryTest : No active profile set, falling back to default profiles: default 2020-01-03 14:17:46.496 INFO 5780 --- [ Test worker] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode. 2020-01-03 14:17:46.565 INFO 5780 --- [ Test worker] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 39ms. Found 0 JPA repository interfaces. 2020-01-03 14:17:47.607 INFO 5780 --- [ Test worker] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$108b6778] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2020-01-03 14:17:48.112 INFO 5780 --- [ Test worker] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting... 2020-01-03 14:17:48.595 INFO 5780 --- [ Test worker] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed. 2020-01-03 14:17:48.836 INFO 5780 --- [ Test worker] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [ name: default ...] 2020-01-03 14:17:49.074 INFO 5780 --- [ Test worker] org.hibernate.Version : HHH000412: Hibernate Core {5.3.14.Final} 2020-01-03 14:17:49.079 INFO 5780 --- [ Test worker] org.hibernate.cfg.Environment : HHH000206: hibernate.properties not found 2020-01-03 14:17:49.511 INFO 5780 --- [ Test worker] o.hibernate.annotations.common.Version : HCANN000001: Hibernate Commons Annotations {5.0.4.Final} 2020-01-03 14:17:49.966 INFO 5780 --- [ Test worker] org.hibernate.dialect.Dialect : HHH000400: Using dialect: org.hibernate.dialect.H2Dialect 2020-01-03 14:17:51.741 INFO 5780 --- [ Test worker] o.h.t.schema.internal.SchemaCreatorImpl : HHH000476: Executing import script 'org.hibernate.tool.schema.internal.exec.ScriptSourceInputNonExistentImpl@28d906ad' 2020-01-03 14:17:51.748 INFO 5780 --- [ Test worker] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default' 2020-01-03 14:17:53.457 INFO 5780 --- [ Test worker] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor' 2020-01-03 14:17:53.621 WARN 5780 --- [ Test worker] aWebConfiguration$JpaWebMvcConfiguration : spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning 2020-01-03 14:17:53.766 INFO 5780 --- [ Test worker] o.s.b.a.w.s.WelcomePageHandlerMapping : Adding welcome page: class path resource [static/index.html] 2020-01-03 14:17:54.824 INFO 5780 --- [ Test worker] jpabook.jpashop.MemberRepositoryTest : Started MemberRepositoryTest in 11.803 seconds (JVM running for 15.878) 2020-01-03 14:17:55.128 INFO 5780 --- [ Test worker] o.s.t.c.transaction.TransactionContext : Began transaction (1) for test context [DefaultTestContext@255eec38 testClass = MemberRepositoryTest, testInstance = jpabook.jpashop.MemberRepositoryTest@5dafbf92, testMethod = testMember@MemberRepositoryTest, testException = [null], mergedContextConfiguration = [WebMergedContextConfiguration@426dab4d testClass = MemberRepositoryTest, locations = '{}', classes = '{class jpabook.jpashop.JpashopApplication}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true}', contextCustomizers = set[org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizerFactory$Customizer@17a6614d, org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@7f4ad5d4, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@6e1f7f82, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@31d979ab], resourceBasePath = 'src/main/webapp', contextLoader = 'org.springframework.boot.test.context.SpringBootContextLoader', parent = [null]], attributes = map['org.springframework.test.context.web.ServletTestExecutionListener.activateListener' -> true, 'org.springframework.test.context.web.ServletTestExecutionListener.populatedRequestContextHolder' -> true, 'org.springframework.test.context.web.ServletTestExecutionListener.resetRequestContextHolder' -> true]]; transaction manager [org.springframework.orm.jpa.JpaTransactionManager@24bf3512]; rollback [true] 2020-01-03 14:17:55.760 INFO 5780 --- [ Test worker] o.s.t.c.transaction.TransactionContext : Rolled back transaction for test: [DefaultTestContext@255eec38 testClass = MemberRepositoryTest, testInstance = jpabook.jpashop.MemberRepositoryTest@5dafbf92, testMethod = testMember@MemberRepositoryTest, testException = [null], mergedContextConfiguration = [WebMergedContextConfiguration@426dab4d testClass = MemberRepositoryTest, locations = '{}', classes = '{class jpabook.jpashop.JpashopApplication}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true}', contextCustomizers = set[org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizerFactory$Customizer@17a6614d, org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@7f4ad5d4, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@6e1f7f82, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@31d979ab], resourceBasePath = 'src/main/webapp', contextLoader = 'org.springframework.boot.test.context.SpringBootContextLoader', parent = [null]], attributes = map['org.springframework.test.context.web.ServletTestExecutionListener.activateListener' -> true, 'org.springframework.test.context.web.ServletTestExecutionListener.populatedRequestContextHolder' -> true, 'org.springframework.test.context.web.ServletTestExecutionListener.resetRequestContextHolder' -> true]] 2020-01-03 14:17:55.791 INFO 5780 --- [ Thread-5] o.s.s.concurrent.ThreadPoolTaskExecutor : Shutting down ExecutorService 'applicationTaskExecutor' 2020-01-03 14:17:55.793 INFO 5780 --- [ Thread-5] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit 'default' 2020-01-03 14:17:55.794 INFO 5780 --- [ Thread-5] .SchemaDropperImpl$DelayedDropActionImpl : HHH000477: Starting delayed evictData of schema as part of SessionFactory shut-down' 2020-01-03 14:17:56.045 WARN 5780 --- [ Thread-5] o.s.b.f.support.DisposableBeanAdapter : Invocation of destroy method failed on bean with name 'inMemoryDatabaseShutdownExecutor': org.h2.jdbc.JdbcSQLNonTransientConnectionException: Database is already closed (to disable automatic closing at VM shutdown, add ";DB_CLOSE_ON_EXIT=FALSE" to the db URL) [90121-200] 2020-01-03 14:17:56.045 INFO 5780 --- [ Thread-5] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown initiated... 2020-01-03 14:17:56.064 INFO 5780 --- [ Thread-5] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown completed. BUILD SUCCESSFUL in 20s 5 actionable tasks: 3 executed, 2 up-to-date 오후 2:17:56: Tasks execution finished ':cleanTest :test --tests "jpabook.jpashop.MemberRepositoryTest.testMember"'.
-
해결됨스프링 웹 MVC
모델에 관해 질문 있습니다.
안녕하세요 기선님 강의를 보다가 제가 기존에 배운것과 혼동되는 부분이 있어서 이렇게 질문 올립니다. 제가 기존에 알던 MVC에서의 Model은 데이터, 로직 및 규칙을 직접 관리하는 컴포넌트로 알고있으며 위키 백과에도 그렇게 정의되어 있습니다. 아마 이것을 코드로 보면 비즈니스 로직을 처리하는 ` @Service`일것입니다. 기선님께서 수업 자료에 올리신 모델의 정의 `도메인 객체 또는 DTO로 화면에 전달할 또는 화면에서 전달 받은 데이터를 담고 있는 객체.`는 제가 알던 모델이 아닌거같습니다.... 기존의 제가 이해한 개념과는 많이 다른거 같은데 어느쪽으로 이해해야할까요? 참조한 문서 * 위키 백과 MVC Pattern: https://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller * 미디엄: https://medium.com/@jang.wangsu/%EB%94%94%EC%9E%90%EC%9D%B8%ED%8C%A8%ED%84%B4-mvc-%ED%8C%A8%ED%84%B4%EC%9D%B4%EB%9E%80-1d74fac6e256