묻고 답해요
169만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결자바스크립트 알고리즘 문제풀이 입문(코딩테스트 대비)
indexOf 시간복잡도
function solution(target, arr) { let answer; arr.sort((a, b) => a - b); console.log(arr); answer = arr.indexOf(target) + 1; return answer; } let arr = [23, 87, 65, 12, 57, 32, 99, 81]; console.log(solution(32, arr)); 저는 이렇게 코딩했는데 indexOf의 시간복잡도는 어떤가요?
-
미해결3시간이면 충분히 입문자를 벗어날 수 있는 프리미어 프로
오류질문
안녕하세요 6번 파일은 사운드가 포함되어 있어 배치하면 기존의 사운드가 잘립니다. 이건 어떻게 해야 할까요? 버전은 2020 입니다
-
미해결몇 줄로 끝내는 인터랙티브 웹 개발 노하우 [초급편]
안녕하세요
강의 따라하면서 재밌게 잘 듣고 있습니다. loop함수만 켜면 강아지 레이어가 스크롤 하자마자 번개같이 위로 올라가서 (...) 아직 혼자 보고 고치기엔 무리라 js 완성본을 받고 싶습니다. cheryleduart@gmail.com 으로 완성파일 보내주시면 감사하겠습니다.
-
미해결실전! 스프링 부트와 JPA 활용1 - 웹 애플리케이션 개발
DTO관련 질문드립니다.
// Controller @PostMapping("items/{itemId}/edit") public String updateItem(@PathVariable("itemId") Long itemId, @ModelAttribute("form") BookForm form) { itemService.updateItem(new UpdateItemDto(form)); return "redirect:/items"; } // Entity @Entity @DiscriminatorValue("B") @Getter @Setter public class Book extends Item { private String author; private String isbn; public void updateBook(UpdateItemDto updateItemDto) { this.author = updateItemDto.getAuthor(); this.isbn = updateItemDto.getIsbn(); this.setId(updateItemDto.getId()); this.setName(updateItemDto.getName()); this.setPrice(updateItemDto.getPrice()); this.setStockQuantity(updateItemDto.getStockQuantity()); } } // Service @Transactional public void updateItem(UpdateItemDto updateItemDto) { Book foundedItem = (Book) itemRepository.findOne(updateItemDto.getId()); foundedItem.updateBook(updateItemDto); } 선생님 양질의 강의 잘보고있습니다. 엔티티에서 북이 아이템을 상속하고있는데 그 상속하는 필드에 값을 변경시 위의 코드와 같이 셋터를 불러서 값을 변경시켜주면될까요? 아니면 아이템에도 별도의 메소드를 생성하여 값을 변경해주는게 좋은가요?
-
미해결화이트해커가 되기 위한 8가지 웹 해킹 기술
localhost/dvwa라고 치니깐 로그인 창이 나와요
localhost/dvwa라고 치니깐 로그인 창이 나와요
-
미해결[리뉴얼] Node.js 교과서 - 기본부터 프로젝트 실습까지
로그인, 회원가입 패스워드 노출 질문입니다.
안녕하세요! 강의 정말 잘 듣고 있습니다~ 항상 감사합니다. 다름이 아니라, 로그인, 회원가입을 구현하던 중에 궁금증이 생겨 질문드립니다. 로그인이나 회원가입시 form을 통해 비밀번호를 서버로 보내면 request body에 비밀번호가 노출되어 전달되는데요, 이렇게 되면 보안상 위험이 있는것 아닌가 해서 숨길 수 있는 방법 혹은 암호화 해서 보낼 수 있는 방법이 있는지 문의 드립니다! 감사합니다.
-
미해결실전! 스프링 부트와 JPA 활용1 - 웹 애플리케이션 개발
실행지연 오류
안녕하세요 강사님 질 좋은 강의 항상 감사드립니다. 다름이 아니라 해당 강의의 7분 이후부터 실행의 오류가 떠서 제 나름대로 이전에 쓰던 Member 클래스를 삭제하지 않고 그대로 써서 있는 오류라 생각하고 import 해당 부분을 삭제 하고 다시 실행을 해보니 화면과 같이 몇 시간째 계속 구동만 하고 있습니다 ㅠㅠ 혹시 어떤 부분에서 이상이 생긴건지 알고 싶습니다. H2 데이터베이스도 다시 껐다 켜보니 테이블의 속성들과 엔티티들이 제대로 생성 되었으나 프로젝트가 제대로 실행이 안되네요.. 오전 4:23:06: Executing task 'JpashopApplication.main()'... Starting Gradle Daemon... Gradle Daemon started in 7 s 113 ms > Task :compileJava > Task :processResources UP-TO-DATE > Task :classes > Task :JpashopApplication.main() . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v2.4.6) 2021-06-13 04:23:31.474 INFO 9616 --- [ restartedMain] jpabook.jpashop.JpashopApplication : Starting JpashopApplication using Java 11.0.7 on DESKTOP-JN8L91B with PID 9616 (C:\Users\jmg98\Desktop\spring-study\jpashop\build\classes\java\main started by jmg98 in C:\Users\jmg98\Desktop\spring-study\jpashop) 2021-06-13 04:23:31.480 INFO 9616 --- [ restartedMain] jpabook.jpashop.JpashopApplication : No active profile set, falling back to default profiles: default 2021-06-13 04:23:31.609 INFO 9616 --- [ restartedMain] .e.DevToolsPropertyDefaultsPostProcessor : Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable 2021-06-13 04:23:31.609 INFO 9616 --- [ restartedMain] .e.DevToolsPropertyDefaultsPostProcessor : For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG' 2021-06-13 04:23:33.528 INFO 9616 --- [ restartedMain] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode. 2021-06-13 04:23:33.568 INFO 9616 --- [ restartedMain] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 19 ms. Found 0 JPA repository interfaces. 2021-06-13 04:23:36.861 INFO 9616 --- [ restartedMain] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8080 (http) 2021-06-13 04:23:36.886 INFO 9616 --- [ restartedMain] o.apache.catalina.core.StandardService : Starting service [Tomcat] 2021-06-13 04:23:36.887 INFO 9616 --- [ restartedMain] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.46] 2021-06-13 04:23:37.109 INFO 9616 --- [ restartedMain] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext 2021-06-13 04:23:37.109 INFO 9616 --- [ restartedMain] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 5490 ms 2021-06-13 04:23:37.415 INFO 9616 --- [ restartedMain] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting... 2021-06-13 04:23:37.530 INFO 9616 --- [ restartedMain] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed. 2021-06-13 04:23:37.543 INFO 9616 --- [ restartedMain] o.s.b.a.h2.H2ConsoleAutoConfiguration : H2 console available at '/h2-console'. Database available at 'jdbc:h2:tcp://localhost/~/jpashop' 2021-06-13 04:23:37.814 INFO 9616 --- [ restartedMain] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [name: default] 2021-06-13 04:23:37.926 INFO 9616 --- [ restartedMain] org.hibernate.Version : HHH000412: Hibernate ORM core version 5.4.31.Final 2021-06-13 04:23:38.265 INFO 9616 --- [ restartedMain] o.hibernate.annotations.common.Version : HCANN000001: Hibernate Commons Annotations {5.1.2.Final} 2021-06-13 04:23:38.329 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration boolean -> org.hibernate.type.BooleanType@707695b9 2021-06-13 04:23:38.329 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration boolean -> org.hibernate.type.BooleanType@707695b9 2021-06-13 04:23:38.329 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration java.lang.Boolean -> org.hibernate.type.BooleanType@707695b9 2021-06-13 04:23:38.331 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration numeric_boolean -> org.hibernate.type.NumericBooleanType@58db1cb 2021-06-13 04:23:38.332 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration true_false -> org.hibernate.type.TrueFalseType@322582ea 2021-06-13 04:23:38.333 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration yes_no -> org.hibernate.type.YesNoType@39657700 2021-06-13 04:23:38.336 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration byte -> org.hibernate.type.ByteType@2acaddb3 2021-06-13 04:23:38.336 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration byte -> org.hibernate.type.ByteType@2acaddb3 2021-06-13 04:23:38.336 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration java.lang.Byte -> org.hibernate.type.ByteType@2acaddb3 2021-06-13 04:23:38.339 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration character -> org.hibernate.type.CharacterType@36a0dc2b 2021-06-13 04:23:38.339 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration char -> org.hibernate.type.CharacterType@36a0dc2b 2021-06-13 04:23:38.339 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration java.lang.Character -> org.hibernate.type.CharacterType@36a0dc2b 2021-06-13 04:23:38.341 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration short -> org.hibernate.type.ShortType@25a931e6 2021-06-13 04:23:38.342 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration short -> org.hibernate.type.ShortType@25a931e6 2021-06-13 04:23:38.342 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration java.lang.Short -> org.hibernate.type.ShortType@25a931e6 2021-06-13 04:23:38.345 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration integer -> org.hibernate.type.IntegerType@4bf5ff2a 2021-06-13 04:23:38.345 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration int -> org.hibernate.type.IntegerType@4bf5ff2a 2021-06-13 04:23:38.345 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration java.lang.Integer -> org.hibernate.type.IntegerType@4bf5ff2a 2021-06-13 04:23:38.347 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration long -> org.hibernate.type.LongType@29d778e5 2021-06-13 04:23:38.347 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration long -> org.hibernate.type.LongType@29d778e5 2021-06-13 04:23:38.348 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration java.lang.Long -> org.hibernate.type.LongType@29d778e5 2021-06-13 04:23:38.350 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration float -> org.hibernate.type.FloatType@1c961bf9 2021-06-13 04:23:38.350 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration float -> org.hibernate.type.FloatType@1c961bf9 2021-06-13 04:23:38.350 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration java.lang.Float -> org.hibernate.type.FloatType@1c961bf9 2021-06-13 04:23:38.352 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration double -> org.hibernate.type.DoubleType@5e5dd60c 2021-06-13 04:23:38.353 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration double -> org.hibernate.type.DoubleType@5e5dd60c 2021-06-13 04:23:38.353 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration java.lang.Double -> org.hibernate.type.DoubleType@5e5dd60c 2021-06-13 04:23:38.355 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration big_decimal -> org.hibernate.type.BigDecimalType@3228f1b8 2021-06-13 04:23:38.356 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration java.math.BigDecimal -> org.hibernate.type.BigDecimalType@3228f1b8 2021-06-13 04:23:38.357 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration big_integer -> org.hibernate.type.BigIntegerType@667b76d3 2021-06-13 04:23:38.358 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration java.math.BigInteger -> org.hibernate.type.BigIntegerType@667b76d3 2021-06-13 04:23:38.359 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration string -> org.hibernate.type.StringType@1e16df67 2021-06-13 04:23:38.359 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration java.lang.String -> org.hibernate.type.StringType@1e16df67 2021-06-13 04:23:38.360 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration nstring -> org.hibernate.type.StringNVarcharType@7cf65dc4 2021-06-13 04:23:38.361 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration ncharacter -> org.hibernate.type.CharacterNCharType@5eb9949f 2021-06-13 04:23:38.364 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration url -> org.hibernate.type.UrlType@4027c2f1 2021-06-13 04:23:38.364 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration java.net.URL -> org.hibernate.type.UrlType@4027c2f1 2021-06-13 04:23:38.366 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration Duration -> org.hibernate.type.DurationType@1286018c 2021-06-13 04:23:38.366 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration java.time.Duration -> org.hibernate.type.DurationType@1286018c 2021-06-13 04:23:38.368 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration Instant -> org.hibernate.type.InstantType@1c38ca04 2021-06-13 04:23:38.370 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration java.time.Instant -> org.hibernate.type.InstantType@1c38ca04 2021-06-13 04:23:38.371 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration LocalDateTime -> org.hibernate.type.LocalDateTimeType@1483ec49 2021-06-13 04:23:38.371 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration java.time.LocalDateTime -> org.hibernate.type.LocalDateTimeType@1483ec49 2021-06-13 04:23:38.373 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration LocalDate -> org.hibernate.type.LocalDateType@70426fd9 2021-06-13 04:23:38.373 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration java.time.LocalDate -> org.hibernate.type.LocalDateType@70426fd9 2021-06-13 04:23:38.375 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration LocalTime -> org.hibernate.type.LocalTimeType@2c8bb7a6 2021-06-13 04:23:38.375 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration java.time.LocalTime -> org.hibernate.type.LocalTimeType@2c8bb7a6 2021-06-13 04:23:38.377 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration OffsetDateTime -> org.hibernate.type.OffsetDateTimeType@2dcec937 2021-06-13 04:23:38.377 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration java.time.OffsetDateTime -> org.hibernate.type.OffsetDateTimeType@2dcec937 2021-06-13 04:23:38.379 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration OffsetTime -> org.hibernate.type.OffsetTimeType@4d5602fa 2021-06-13 04:23:38.379 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration java.time.OffsetTime -> org.hibernate.type.OffsetTimeType@4d5602fa 2021-06-13 04:23:38.381 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration ZonedDateTime -> org.hibernate.type.ZonedDateTimeType@41bf024 2021-06-13 04:23:38.382 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration java.time.ZonedDateTime -> org.hibernate.type.ZonedDateTimeType@41bf024 2021-06-13 04:23:38.384 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration date -> org.hibernate.type.DateType@4aff8dd6 2021-06-13 04:23:38.384 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration java.sql.Date -> org.hibernate.type.DateType@4aff8dd6 2021-06-13 04:23:38.385 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration time -> org.hibernate.type.TimeType@53960c84 2021-06-13 04:23:38.385 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration java.sql.Time -> org.hibernate.type.TimeType@53960c84 2021-06-13 04:23:38.387 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration timestamp -> org.hibernate.type.TimestampType@6744c497 2021-06-13 04:23:38.387 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration java.sql.Timestamp -> org.hibernate.type.TimestampType@6744c497 2021-06-13 04:23:38.388 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration java.util.Date -> org.hibernate.type.TimestampType@6744c497 2021-06-13 04:23:38.389 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration dbtimestamp -> org.hibernate.type.DbTimestampType@1033dd6 2021-06-13 04:23:38.391 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration calendar -> org.hibernate.type.CalendarType@2c3651d7 2021-06-13 04:23:38.391 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration java.util.Calendar -> org.hibernate.type.CalendarType@2c3651d7 2021-06-13 04:23:38.392 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration java.util.GregorianCalendar -> org.hibernate.type.CalendarType@2c3651d7 2021-06-13 04:23:38.393 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration calendar_date -> org.hibernate.type.CalendarDateType@50711b9e 2021-06-13 04:23:38.395 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration calendar_time -> org.hibernate.type.CalendarTimeType@3b60b5e 2021-06-13 04:23:38.396 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration locale -> org.hibernate.type.LocaleType@760841d9 2021-06-13 04:23:38.397 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration java.util.Locale -> org.hibernate.type.LocaleType@760841d9 2021-06-13 04:23:38.399 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration currency -> org.hibernate.type.CurrencyType@2f9fc1a5 2021-06-13 04:23:38.399 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration java.util.Currency -> org.hibernate.type.CurrencyType@2f9fc1a5 2021-06-13 04:23:38.402 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration timezone -> org.hibernate.type.TimeZoneType@661fac2a 2021-06-13 04:23:38.402 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration java.util.TimeZone -> org.hibernate.type.TimeZoneType@661fac2a 2021-06-13 04:23:38.403 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration class -> org.hibernate.type.ClassType@32ab17cb 2021-06-13 04:23:38.403 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration java.lang.Class -> org.hibernate.type.ClassType@32ab17cb 2021-06-13 04:23:38.404 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration uuid-binary -> org.hibernate.type.UUIDBinaryType@59c49e5f 2021-06-13 04:23:38.405 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration java.util.UUID -> org.hibernate.type.UUIDBinaryType@59c49e5f 2021-06-13 04:23:38.406 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration uuid-char -> org.hibernate.type.UUIDCharType@fcf8928 2021-06-13 04:23:38.408 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration binary -> org.hibernate.type.BinaryType@215e3147 2021-06-13 04:23:38.408 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration byte[] -> org.hibernate.type.BinaryType@215e3147 2021-06-13 04:23:38.408 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration [B -> org.hibernate.type.BinaryType@215e3147 2021-06-13 04:23:38.410 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration wrapper-binary -> org.hibernate.type.WrapperBinaryType@5a099d86 2021-06-13 04:23:38.411 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration Byte[] -> org.hibernate.type.WrapperBinaryType@5a099d86 2021-06-13 04:23:38.411 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration [Ljava.lang.Byte; -> org.hibernate.type.WrapperBinaryType@5a099d86 2021-06-13 04:23:38.412 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration row_version -> org.hibernate.type.RowVersionType@419c267a 2021-06-13 04:23:38.413 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration image -> org.hibernate.type.ImageType@4f54fecd 2021-06-13 04:23:38.414 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration characters -> org.hibernate.type.CharArrayType@7691154b 2021-06-13 04:23:38.415 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration char[] -> org.hibernate.type.CharArrayType@7691154b 2021-06-13 04:23:38.415 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration [C -> org.hibernate.type.CharArrayType@7691154b 2021-06-13 04:23:38.416 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration wrapper-characters -> org.hibernate.type.CharacterArrayType@e52e9e3 2021-06-13 04:23:38.416 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration [Ljava.lang.Character; -> org.hibernate.type.CharacterArrayType@e52e9e3 2021-06-13 04:23:38.416 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration Character[] -> org.hibernate.type.CharacterArrayType@e52e9e3 2021-06-13 04:23:38.417 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration text -> org.hibernate.type.TextType@4b9501f8 2021-06-13 04:23:38.418 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration ntext -> org.hibernate.type.NTextType@7b4c6401 2021-06-13 04:23:38.420 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration blob -> org.hibernate.type.BlobType@665eae40 2021-06-13 04:23:38.421 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration java.sql.Blob -> org.hibernate.type.BlobType@665eae40 2021-06-13 04:23:38.422 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration materialized_blob -> org.hibernate.type.MaterializedBlobType@4693ed57 2021-06-13 04:23:38.424 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration clob -> org.hibernate.type.ClobType@27ef38ad 2021-06-13 04:23:38.424 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration java.sql.Clob -> org.hibernate.type.ClobType@27ef38ad 2021-06-13 04:23:38.426 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration nclob -> org.hibernate.type.NClobType@313e4b3c 2021-06-13 04:23:38.426 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration java.sql.NClob -> org.hibernate.type.NClobType@313e4b3c 2021-06-13 04:23:38.427 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration materialized_clob -> org.hibernate.type.MaterializedClobType@5e16595 2021-06-13 04:23:38.427 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration materialized_nclob -> org.hibernate.type.MaterializedNClobType@7b689e45 2021-06-13 04:23:38.429 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration serializable -> org.hibernate.type.SerializableType@200ed1b1 2021-06-13 04:23:38.434 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration object -> org.hibernate.type.ObjectType@32a495dc 2021-06-13 04:23:38.434 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration java.lang.Object -> org.hibernate.type.ObjectType@32a495dc 2021-06-13 04:23:38.435 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration imm_date -> org.hibernate.type.AdaptedImmutableType@11b9dc8f 2021-06-13 04:23:38.436 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration imm_time -> org.hibernate.type.AdaptedImmutableType@f054b24 2021-06-13 04:23:38.436 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration imm_timestamp -> org.hibernate.type.AdaptedImmutableType@6ef05a37 2021-06-13 04:23:38.436 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration imm_dbtimestamp -> org.hibernate.type.AdaptedImmutableType@4461df08 2021-06-13 04:23:38.436 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration imm_calendar -> org.hibernate.type.AdaptedImmutableType@1be32eaf 2021-06-13 04:23:38.436 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration imm_calendar_date -> org.hibernate.type.AdaptedImmutableType@3e9a0a9c 2021-06-13 04:23:38.437 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration imm_binary -> org.hibernate.type.AdaptedImmutableType@5257de9a 2021-06-13 04:23:38.437 DEBUG 9616 --- [ restartedMain] org.hibernate.type.BasicTypeRegistry : Adding type registration imm_serializable -> org.hibernate.type.AdaptedImmutableType@1884d247 2021-06-13 04:23:38.598 INFO 9616 --- [ restartedMain] org.hibernate.dialect.Dialect : HHH000400: Using dialect: org.hibernate.dialect.H2Dialect 2021-06-13 04:23:38.775 DEBUG 9616 --- [ restartedMain] o.h.type.spi.TypeConfiguration$Scope : Scoping TypeConfiguration [org.hibernate.type.spi.TypeConfiguration@c69eb7b] to MetadataBuildingContext [org.hibernate.boot.internal.MetadataBuildingContextRootImpl@4d4bd166] 2021-06-13 04:23:39.616 DEBUG 9616 --- [ restartedMain] org.hibernate.type.EnumType : Using NAMED-based conversion for Enum jpabook.jpashop.domain.DeliveryStatus 2021-06-13 04:23:39.619 DEBUG 9616 --- [ restartedMain] org.hibernate.type.EnumType : Using NAMED-based conversion for Enum jpabook.jpashop.domain.OrderStatus 2021-06-13 04:23:39.619 DEBUG 9616 --- [ restartedMain] o.h.type.spi.TypeConfiguration$Scope : Scoping TypeConfiguration [org.hibernate.type.spi.TypeConfiguration@c69eb7b] to SessionFactoryImpl [org.hibernate.internal.SessionFactoryImpl@7a720798] 2021-06-13 04:23:40.454 DEBUG 9616 --- [ restartedMain] org.hibernate.SQL : drop table if exists category CASCADE 2021-06-13 04:23:40.459 INFO 9616 --- [ restartedMain] p6spy : #1623525820459 | took 1ms | statement | connection 2| url jdbc:h2:tcp://localhost/~/jpashop drop table if exists category CASCADE drop table if exists category CASCADE ; 2021-06-13 04:23:40.459 DEBUG 9616 --- [ restartedMain] org.hibernate.SQL : drop table if exists category_item CASCADE 2021-06-13 04:23:40.460 INFO 9616 --- [ restartedMain] p6spy : #1623525820460 | took 0ms | statement | connection 2| url jdbc:h2:tcp://localhost/~/jpashop drop table if exists category_item CASCADE drop table if exists category_item CASCADE ; 2021-06-13 04:23:40.460 DEBUG 9616 --- [ restartedMain] org.hibernate.SQL : drop table if exists delivery CASCADE 2021-06-13 04:23:40.461 INFO 9616 --- [ restartedMain] p6spy : #1623525820461 | took 0ms | statement | connection 2| url jdbc:h2:tcp://localhost/~/jpashop drop table if exists delivery CASCADE drop table if exists delivery CASCADE ; 2021-06-13 04:23:40.461 DEBUG 9616 --- [ restartedMain] org.hibernate.SQL : drop table if exists item CASCADE 2021-06-13 04:23:40.462 INFO 9616 --- [ restartedMain] p6spy : #1623525820462 | took 0ms | statement | connection 2| url jdbc:h2:tcp://localhost/~/jpashop drop table if exists item CASCADE drop table if exists item CASCADE ; 2021-06-13 04:23:40.462 DEBUG 9616 --- [ restartedMain] org.hibernate.SQL : drop table if exists member CASCADE 2021-06-13 04:23:40.463 INFO 9616 --- [ restartedMain] p6spy : #1623525820463 | took 0ms | statement | connection 2| url jdbc:h2:tcp://localhost/~/jpashop drop table if exists member CASCADE drop table if exists member CASCADE ; 2021-06-13 04:23:40.463 DEBUG 9616 --- [ restartedMain] org.hibernate.SQL : drop table if exists order_item CASCADE 2021-06-13 04:23:40.464 INFO 9616 --- [ restartedMain] p6spy : #1623525820464 | took 0ms | statement | connection 2| url jdbc:h2:tcp://localhost/~/jpashop drop table if exists order_item CASCADE drop table if exists order_item CASCADE ; 2021-06-13 04:23:40.464 DEBUG 9616 --- [ restartedMain] org.hibernate.SQL : drop table if exists orders CASCADE 2021-06-13 04:23:40.465 INFO 9616 --- [ restartedMain] p6spy : #1623525820465 | took 0ms | statement | connection 2| url jdbc:h2:tcp://localhost/~/jpashop drop table if exists orders CASCADE drop table if exists orders CASCADE ; 2021-06-13 04:23:40.465 DEBUG 9616 --- [ restartedMain] org.hibernate.SQL : drop sequence if exists hibernate_sequence 2021-06-13 04:23:40.466 INFO 9616 --- [ restartedMain] p6spy : #1623525820466 | took 0ms | statement | connection 2| url jdbc:h2:tcp://localhost/~/jpashop drop sequence if exists hibernate_sequence drop sequence if exists hibernate_sequence; 2021-06-13 04:23:40.469 DEBUG 9616 --- [ restartedMain] org.hibernate.SQL : create sequence hibernate_sequence start with 1 increment by 1 2021-06-13 04:23:40.470 INFO 9616 --- [ restartedMain] p6spy : #1623525820470 | took 0ms | statement | connection 3| url jdbc:h2:tcp://localhost/~/jpashop create sequence hibernate_sequence start with 1 increment by 1 create sequence hibernate_sequence start with 1 increment by 1; 2021-06-13 04:23:40.471 DEBUG 9616 --- [ restartedMain] org.hibernate.SQL : create table category ( category_id bigint not null, name varchar(255), parent_id bigint, primary key (category_id) ) 2021-06-13 04:23:40.472 INFO 9616 --- [ restartedMain] p6spy : #1623525820472 | took 1ms | statement | connection 3| url jdbc:h2:tcp://localhost/~/jpashop create table category ( category_id bigint not null, name varchar(255), parent_id bigint, primary key (category_id) ) create table category ( category_id bigint not null, name varchar(255), parent_id bigint, primary key (category_id) ); 2021-06-13 04:23:40.473 DEBUG 9616 --- [ restartedMain] org.hibernate.SQL : create table category_item ( category_id bigint not null, item_id bigint not null ) 2021-06-13 04:23:40.474 INFO 9616 --- [ restartedMain] p6spy : #1623525820474 | took 0ms | statement | connection 3| url jdbc:h2:tcp://localhost/~/jpashop create table category_item ( category_id bigint not null, item_id bigint not null ) create table category_item ( category_id bigint not null, item_id bigint not null ); 2021-06-13 04:23:40.474 DEBUG 9616 --- [ restartedMain] org.hibernate.SQL : create table delivery ( delevery_id bigint not null, city varchar(255), street varchar(255), zipcode varchar(255), status varchar(255), primary key (delevery_id) ) 2021-06-13 04:23:40.475 INFO 9616 --- [ restartedMain] p6spy : #1623525820475 | took 0ms | statement | connection 3| url jdbc:h2:tcp://localhost/~/jpashop create table delivery ( delevery_id bigint not null, city varchar(255), street varchar(255), zipcode varchar(255), status varchar(255), primary key (delevery_id) ) create table delivery ( delevery_id bigint not null, city varchar(255), street varchar(255), zipcode varchar(255), status varchar(255), primary key (delevery_id) ); 2021-06-13 04:23:40.475 DEBUG 9616 --- [ restartedMain] org.hibernate.SQL : create table item ( dtype varchar(31) not null, item_id bigint not null, name varchar(255), price integer not null, stock_quantity integer not null, artist varchar(255), etc varchar(255), author varchar(255), isbn varchar(255), actor varchar(255), director varchar(255), primary key (item_id) ) 2021-06-13 04:23:40.476 INFO 9616 --- [ restartedMain] p6spy : #1623525820476 | took 0ms | statement | connection 3| url jdbc:h2:tcp://localhost/~/jpashop create table item ( dtype varchar(31) not null, item_id bigint not null, name varchar(255), price integer not null, stock_quantity integer not null, artist varchar(255), etc varchar(255), author varchar(255), isbn varchar(255), actor varchar(255), director varchar(255), primary key (item_id) ) create table item ( dtype varchar(31) not null, item_id bigint not null, name varchar(255), price integer not null, stock_quantity integer not null, artist varchar(255), etc varchar(255), author varchar(255), isbn varchar(255), actor varchar(255), director varchar(255), primary key (item_id) ); 2021-06-13 04:23:40.476 DEBUG 9616 --- [ restartedMain] org.hibernate.SQL : create table member ( member_id bigint not null, city varchar(255), street varchar(255), zipcode varchar(255), name varchar(255), primary key (member_id) ) 2021-06-13 04:23:40.477 INFO 9616 --- [ restartedMain] p6spy : #1623525820477 | took 0ms | statement | connection 3| url jdbc:h2:tcp://localhost/~/jpashop create table member ( member_id bigint not null, city varchar(255), street varchar(255), zipcode varchar(255), name varchar(255), primary key (member_id) ) create table member ( member_id bigint not null, city varchar(255), street varchar(255), zipcode varchar(255), name varchar(255), primary key (member_id) ); 2021-06-13 04:23:40.478 DEBUG 9616 --- [ restartedMain] org.hibernate.SQL : create table order_item ( order_item_id bigint not null, count integer not null, order_price integer not null, item_id bigint, order_id bigint, primary key (order_item_id) ) 2021-06-13 04:23:40.479 INFO 9616 --- [ restartedMain] p6spy : #1623525820479 | took 0ms | statement | connection 3| url jdbc:h2:tcp://localhost/~/jpashop create table order_item ( order_item_id bigint not null, count integer not null, order_price integer not null, item_id bigint, order_id bigint, primary key (order_item_id) ) create table order_item ( order_item_id bigint not null, count integer not null, order_price integer not null, item_id bigint, order_id bigint, primary key (order_item_id) ); 2021-06-13 04:23:40.479 DEBUG 9616 --- [ restartedMain] org.hibernate.SQL : create table orders ( order_id bigint not null, order_date timestamp, status varchar(255), delivery_id bigint, member_id bigint, primary key (order_id) ) 2021-06-13 04:23:40.481 INFO 9616 --- [ restartedMain] p6spy : #1623525820481 | took 1ms | statement | connection 3| url jdbc:h2:tcp://localhost/~/jpashop create table orders ( order_id bigint not null, order_date timestamp, status varchar(255), delivery_id bigint, member_id bigint, primary key (order_id) ) create table orders ( order_id bigint not null, order_date timestamp, status varchar(255), delivery_id bigint, member_id bigint, primary key (order_id) ); 2021-06-13 04:23:40.481 DEBUG 9616 --- [ restartedMain] org.hibernate.SQL : alter table category add constraint FK2y94svpmqttx80mshyny85wqr foreign key (parent_id) references category 2021-06-13 04:23:40.483 INFO 9616 --- [ restartedMain] p6spy : #1623525820483 | took 2ms | statement | connection 3| url jdbc:h2:tcp://localhost/~/jpashop alter table category add constraint FK2y94svpmqttx80mshyny85wqr foreign key (parent_id) references category alter table category add constraint FK2y94svpmqttx80mshyny85wqr foreign key (parent_id) references category; 2021-06-13 04:23:40.484 DEBUG 9616 --- [ restartedMain] org.hibernate.SQL : alter table category_item add constraint FKu8b4lwqutcdq3363gf6mlujq foreign key (item_id) references item 2021-06-13 04:23:40.486 INFO 9616 --- [ restartedMain] p6spy : #1623525820486 | took 1ms | statement | connection 3| url jdbc:h2:tcp://localhost/~/jpashop alter table category_item add constraint FKu8b4lwqutcdq3363gf6mlujq foreign key (item_id) references item alter table category_item add constraint FKu8b4lwqutcdq3363gf6mlujq foreign key (item_id) references item; 2021-06-13 04:23:40.486 DEBUG 9616 --- [ restartedMain] org.hibernate.SQL : alter table category_item add constraint FKcq2n0opf5shyh84ex1fhukcbh foreign key (category_id) references category 2021-06-13 04:23:40.488 INFO 9616 --- [ restartedMain] p6spy : #1623525820488 | took 2ms | statement | connection 3| url jdbc:h2:tcp://localhost/~/jpashop alter table category_item add constraint FKcq2n0opf5shyh84ex1fhukcbh foreign key (category_id) references category alter table category_item add constraint FKcq2n0opf5shyh84ex1fhukcbh foreign key (category_id) references category; 2021-06-13 04:23:40.489 DEBUG 9616 --- [ restartedMain] org.hibernate.SQL : alter table order_item add constraint FKija6hjjiit8dprnmvtvgdp6ru foreign key (item_id) references item 2021-06-13 04:23:40.491 INFO 9616 --- [ restartedMain] p6spy : #1623525820491 | took 1ms | statement | connection 3| url jdbc:h2:tcp://localhost/~/jpashop alter table order_item add constraint FKija6hjjiit8dprnmvtvgdp6ru foreign key (item_id) references item alter table order_item add constraint FKija6hjjiit8dprnmvtvgdp6ru foreign key (item_id) references item; 2021-06-13 04:23:40.491 DEBUG 9616 --- [ restartedMain] org.hibernate.SQL : alter table order_item add constraint FKt4dc2r9nbvbujrljv3e23iibt foreign key (order_id) references orders 2021-06-13 04:23:40.493 INFO 9616 --- [ restartedMain] p6spy : #1623525820493 | took 1ms | statement | connection 3| url jdbc:h2:tcp://localhost/~/jpashop alter table order_item add constraint FKt4dc2r9nbvbujrljv3e23iibt foreign key (order_id) references orders alter table order_item add constraint FKt4dc2r9nbvbujrljv3e23iibt foreign key (order_id) references orders; 2021-06-13 04:23:40.494 DEBUG 9616 --- [ restartedMain] org.hibernate.SQL : alter table orders add constraint FKtkrur7wg4d8ax0pwgo0vmy20c foreign key (delivery_id) references delivery 2021-06-13 04:23:40.497 INFO 9616 --- [ restartedMain] p6spy : #1623525820497 | took 3ms | statement | connection 3| url jdbc:h2:tcp://localhost/~/jpashop alter table orders add constraint FKtkrur7wg4d8ax0pwgo0vmy20c foreign key (delivery_id) references delivery alter table orders add constraint FKtkrur7wg4d8ax0pwgo0vmy20c foreign key (delivery_id) references delivery; 2021-06-13 04:23:40.498 DEBUG 9616 --- [ restartedMain] org.hibernate.SQL : alter table orders add constraint FKpktxwhj3x9m4gth5ff6bkqgeb foreign key (member_id) references member 2021-06-13 04:23:40.500 INFO 9616 --- [ restartedMain] p6spy : #1623525820500 | took 2ms | statement | connection 3| url jdbc:h2:tcp://localhost/~/jpashop alter table orders add constraint FKpktxwhj3x9m4gth5ff6bkqgeb foreign key (member_id) references member alter table orders add constraint FKpktxwhj3x9m4gth5ff6bkqgeb foreign key (member_id) references member; 2021-06-13 04:23:40.504 INFO 9616 --- [ restartedMain] o.h.e.t.j.p.i.JtaPlatformInitiator : HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform] 2021-06-13 04:23:40.520 TRACE 9616 --- [ restartedMain] o.h.type.spi.TypeConfiguration$Scope : Handling #sessionFactoryCreated from [org.hibernate.internal.SessionFactoryImpl@7a720798] for TypeConfiguration 2021-06-13 04:23:40.524 INFO 9616 --- [ restartedMain] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default' 2021-06-13 04:23:40.550 INFO 9616 --- [ restartedMain] o.s.b.d.a.OptionalLiveReloadServer : LiveReload server is running on port 35729 2021-06-13 04:23:40.709 WARN 9616 --- [ restartedMain] JpaBaseConfiguration$JpaWebConfiguration : 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 2021-06-13 04:23:41.120 INFO 9616 --- [ restartedMain] o.s.b.a.w.s.WelcomePageHandlerMapping : Adding welcome page: class path resource [static/index.html] 2021-06-13 04:23:41.443 INFO 9616 --- [ restartedMain] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 8080 (http) with context path '' 2021-06-13 04:23:41.459 INFO 9616 --- [ restartedMain] jpabook.jpashop.JpashopApplication : Started JpashopApplication in 11.642 seconds (JVM running for 13.145)
-
미해결[리뉴얼] React로 NodeBird SNS 만들기
take 관련
2. 사라집니다. 질문의 의도를 추측해보자면 take은 한 번 실행하고 더이상 실행이 안되는데 delay랑 Put은 왜 다음번에 되는지를 물어보시는 것 같은데요. watch 함수는 한 번만 실행되고 login* 함수같은 것은 매번 실행돼서 그렇습니다. 하나의 함수 안에서 더이상 호출이 안 되는거지 새로운 함수가 또 실행되면 새 함수 안에서는 실행됩니다. ============================================= 밑에 다른 분께서 올리신 질문중에 take와 다른 이펙트들에 대해서 질문한 글을 봤습니다. 저도 궁금한 점이 있어서요. watch 함수는 한 번만 실행하고 login* 함수는 매번 실행한다는 게 어떤 의미 일까요? 만약 로그인을 한다고 하였을때 watchLogin() --> Login() --> loginAPI() .. 1) 이런식으로 불리는데 어차피 take든 delay든 put이든 다 한 번만 불려서 한 번만 쓰고 버려지는 그런게 아닐까요? 2) 사실 한 번만 실행이 가능하다는건 이해를 했는데 그 의도가 이해가 안가네요. 그냥 take라는 이펙트 자체의 의도가 한 번만 실행하도록 한거고 여러번 눌릴것을 대비하여 takeLatest를 쓰면된다라고만 이해하면 될까요? 3) 그리고 take가 단 한번만 실행이 가능하다는 의미가 한 번 실행후에는 함수를 불러도 더 이상 실행이 안된다. 그러나 delay나 put같은경우에는 같은 함수를 실행하면 다시 실행된다. 이렇게 이해를 해야할까요. 감사합니다.
-
미해결[개정판] 파이썬 머신러닝 완벽 가이드
score(X_train, Y_train) 이부분 이해가 ㅠㅠ
logreg = LogisticRegression() logreg.fit(X_train, Y_train) Y_pred = logreg.predict(X_test) logreg.score(X_train, Y_train) which gives: 0.80471380471380471 I use to use this method instead to determine my model accuracy: from sklearn.metrics import classification_report logreg = LogisticRegression() logreg.fit(X_train, Y_train) y_pred = logreg.predict(X_test) print(classification_report(y_test, y_pred)) 선생님 score(X_train, Y_train)이부분이 이해가 가질 않습니다ㅠㅠ 어떻게 y_test없이 train세트만으로 정확도 측정이 가능한거죠?? 혼자 알려고해도 알수가 없네요ㅠ 자세한 답변 부탁드리겠습니다!!
-
미해결
score(X_train, y_train) 이부분 이해가 ㅠㅠ
logreg = LogisticRegression() logreg.fit(X_train, Y_train) Y_pred = logreg.predict(X_test) logreg.score(X_train, Y_train) which gives: 0.80471380471380471 I use to use this method instead to determine my model accuracy: from sklearn.metrics import classification_report선생님 score(X_train, Y_train) 이부분이 이해가 가질 않습니다.. ㅠ 어떻게 y_test가 없이 train세트 만으로 정확도를 측정할수가 있는거죠?? 도저히 모르겠네요ㅠㅠ logreg = LogisticRegression() logreg.fit(X_train, Y_train) y_pred = logreg.predict(X_test) print(classification_report(y_test, y_pred))
-
미해결[2026년 출제기준] 웹디자인개발기능사 실기시험 완벽 가이드
모달창 만들 때
선생님, 안녕하세요 모달창을 만들때 부모요소인 .modal에 포지션 속성을 왜 absolute를 넣는지 이해가 가지않아 여쭤봅니다. 부모요소니까 relative를 넣어야한다고 생각했었습니다.
-
미해결자바스크립트 알고리즘 문제풀이 입문(코딩테스트 대비)
idx를 선언해줘야 하는 이유..
안녕하세요? idx를 선언해줘야 하는 이유가 모르겠어요.. idx를 생략하고 이렇게 코드를 짜면 안되나요?
-
미해결면접과 취업을 부르는 '퍼블리셔 개인 포트폴리오 홈페이지' 제작
스크롤 시 헤더 fixed에 관해 질문드립니다
헤더를 상단 fixed할경우 이게 공중에 붕뜨는 것처럼 아래있던 intro섹션이 위로 끌려오게 되는데 intro 섹션에 padding-top을 줘서 header와 간격을 벌려주는게 맞는지 궁금합니다 /* header */ #header { position: fixed; top: 0; left: 0; width: 100%; z-index: 99; } .header-inner { margin: auto; height: 100%; border: 1px solid #000; } nav { max-width: 1440px; text-align: right; height: 70px; line-height: 70px; } nav a { margin-right: 10px; } * { margin: 0; padding: 0; } a { text-decoration: none; color: #fff; } #header { } #intro { height: 400px; padding-top: 70px; background-color: #CCB9AF; } </style> </head> <body> <header id="header"> <div class="header-inner"> <nav> <a href="#intro">HOME</a> <a href="#about">ABOUT</a> <a href="#skills">SKILLS</a> <a href="#pratical">Pratical</a> <a href="#mobile">Mobile Web&App</a> <a href="#none">WebSite Publising</a> </nav> </div> </header> <section id="intro"></section>
-
미해결
PyQt5로 계산기 만드는 프로그램 작성 중 구문 오류가 떴는데 무엇이 잘못된 건지 모르겠습니다.
PyQt5를 활용하여 계산기 만드는 프로그램을 작성 중에 SyntaxError: unexpected EOF while parsing 라는 에러 메시지가 떴습니다. 인터넷에 찾아보니 괄호나 철자가 틀렸을 경우 종종 뜨는 오류라고 하는데 어디가 잘못되었는지 전혀 모르겠습니다. QtDesigner에서 시그널/슬롯 편집은 따로 하지 않았고 객체들은 파이썬 파일에서 connect를 활용하여 모두 연동하였습니다. 파이썬에서 작성한 코드와 QtDesigner를 이용하여 작성한 내용은 다음과 같습니다. 혹시 제 코드 중 어디가 잘못되었는지 알려주실 수 있나요? import sys from PyQt5.QtWidgets import QMainWindow, QApplication, QInputDialog, QMessageBox from PyQt5 import uic from abc import ABCMeta, abstractmethod from math import pi class Shape(metaclass=ABCMeta): @abstractmethod def cal_area(self): pass class Rectangle(Shape): def cal_area(self, str_data): width, height = tuple(map(float, str_data.split())) cal_result = width*height return cal_result class Circle(Shape): def cal_area(self, str_data): radius = float(str_data) cal_result = pi*radius*radius return cal_result class Triangle(Shape): def cal_area(self, str_data): width, height = tuple(map(float, str_data.split())) cal_result = 0.5*width*height return cal_result class MyWin(QMainWindow): def __init__(self): super().__init__() self.ui = uic.loadUi('cal.ui', self) btn_list = [self.ui.btn0, self.ui.btn00, self.ui.btn1, self.ui.btn2, self.ui.btn3,\ self.ui.btn4, self.ui.btn5, self.ui.btn6, self.ui.btn7, self.ui.btn8, self.ui.btn9,\ self.ui.btnDiv, self.ui.btnLbrac, self.ui.btnMul, self.ui.btnPer, self.ui.btnPlus,\ self.ui.btnRbrac, self.ui.btnSqrt, self.ui.btnSub] for i in btn_list: i.clicked.connect(lambda button = i:self.write_edit(button)) self.ui.btnBack.clicked.connect(self.backDelete) self.ui.btnC.clicked.connect(self.all_clear) self.ui.btnEqual.clicked.connect(self.calculate(self.ui.edit.text())) self.ui.actioninfo.triggered.connect(self.show_info) self.ui.actionexit.triggered.connect(self.close) self.ui.actionintro.triggered.connect(self.show_intro) shape_list = [self.ui.actionRectangle, self.ui.actionCircle, self.ui.actionTriangle] for i in shape_list: i.triggered.connect(lambda action = i:self.cal_area_message(action)) def show_info(self): QMessageBox.about(self, '작성자', 'a') def show_intro(self): QMessageBox.about(self, '자기소개', 'a입니다.') def write_edit(self, button): if button.text() == 'X': exp = '*' else: exp = button.text() self.ui.edit.setText(self.ui.edit.text() + exp) def backDelete(self): b = list(self.ui.edit.text()) b.pop() c = ('').join(b) self.ui.edit.setText(c) def all_clear(self): self.ui.edit.setText('') def calculate(self, str_data): result = str(eval(str_data)) self.ui.edit.setText(result) def cal_area_message(self, action): values, ok = QInputDialog.getText(self, 'Shape parameter', 'Input Parameter') if ok and values: if action == self.ui.actionRectangle: area = Rectangle().cal_area(values) elif action == self.ui.actionCircle: area = Circle().cal_area(values) elif action == self.ui.actionTriangle: area = Triangle().cal_area(values) self.ui.edit.setText(str(area)) if __name__ == "__main__": app = QApplication(sys.argv) win = MyWin() win.show() sys.exit(app.exec_())
-
미해결처음 배우는 리액트 네이티브
안드로이드 홈 환경변수 설정질문입니다.
영상 보면서 따라 설치 하고 있는데 안드로이드 홈 환경변수 설정할때 터미널에 vi ~/.zshrc를 입력하니까 선생님과 같은 화면이 안나오고 E325: ATTENTION 화면이 나옵니다. 어떻게 해야 하나요?
-
미해결자바스크립트 알고리즘 문제풀이 입문(코딩테스트 대비)
배열 정렬 스타일
안녕하세요 ! 기존에 배열을 정렬할 때, 화살표 함수를 사용하다가 곧장 arr1.sort()를 하니 어색해서요 ! arr1 = [1,3,9,5,2]라는 배열이 있을 때, arr1.sort((a,b) => a-b);하는것과 arr1.sort().reverse(); 하는 것은 코딩 스타일의 차이인가요?
-
미해결자바스크립트 알고리즘 문제풀이 입문(코딩테스트 대비)
시간 복잡도 개념
안녕하세요 ! 커뮤니티에 게시글을 보다가 '' 이 문제의 해법은 sort를 피하겠다는 것이 아니라 2중 for문 즉 시간복잡도 O(n^2)를 피하겠다는 뜻입니다. 참고로 sort의 시간복잡도는 O(nlogn)입니다. '' 이런 답변을 봤어요~ 구글에 시간복잡도에 대해서 검색해봐도 다 이런 수학 기호들이 난무하는데요..! 어떻게 쉽게 이해하면 좋을까요..? 저는 function solution(arr1, arr2) { let answer = []; for(let x of arr1) { for(let i = 0; i < arr2.length; i++) { if(x === arr2[i]) answer.push(x); } } answer.sort((a, b) => a - b); return answer; 이렇게 풀었는데 투 포인터로 푸는 방식보다 많이 느린가요?? 더 빠르다, 느리다의 기준을 모르겠습니다 ㅠㅠ
-
미해결따라하며 배우는 노드, 리액트 시리즈 - 기본 강의
VPN 프로그램도 프록시 서버를 사용하는 건가요?
강의 재미있게 듣고 있습니다 :) 국가를 바꾸거나 회사에서 보안으로 사용하는 VPN 프로그램도 프록시 서버를 사용하는 것인가요??
-
미해결[C++과 언리얼로 만드는 MMORPG 게임 개발 시리즈] Part2: 게임 수학과 DirectX12
z축 회전행렬에서 요소 m12,m21과 -sin θ 와 sinθ의 위치 질문드립니다
안녕하세요 루키스님 회전행렬의 값에 대해 질문드립니다. z축회전변환 행렬을 구할때 X= xcosθ -ysinθ이며 Y= xsinθ + ycosθ 라고 하셨습니다. 그렇다면 m12 = sinθ이며 m21= -sinθ여야하는게 아닌가요? 찾아봤을때도 어디서는 그렇게 나오고 다른곳은 루키스님이 말씀하신것처럼 나와 헷갈려 어떤 차이가 있는지 질문드립니다. 고맙습니다.
-
미해결[2026년 출제기준] 웹디자인개발기능사 실기시험 완벽 가이드
공지사항, 갤러리 구성 중 궁금한것이 생겼습니다!
안녕하세요 선생님! 강의 잘 듣고있습니다 😄 갤러리, 공지사항 구성 중 .btn과 .tab의 사이를 겹치게 하기위해서 .btn span에 margin-bottom: -1px 을 주는데 margin-bottom에 마이너스값을 주면 위로 올라가면서 .tab부분이 딸려 올라가면서 겹쳐보이게되는 원리인가요? margin-bottom: -1px 의 정확한 원리가 알고싶습니다