rest controller practice : send mail - mail template(board_add)

This commit is contained in:
haerong22
2021-03-21 22:12:48 +09:00
parent 3213d8e24f
commit 4e9f8127c9
11 changed files with 1071 additions and 3 deletions

View File

@@ -4,7 +4,6 @@ build/
!gradle/wrapper/gradle-wrapper.jar !gradle/wrapper/gradle-wrapper.jar
!**/src/main/**/build/ !**/src/main/**/build/
!**/src/test/**/build/ !**/src/test/**/build/
src/main/resources/application.yml
### STS ### ### STS ###
.apt_generated .apt_generated

View File

@@ -10264,3 +10264,947 @@ Using generated security password: 2a355f9b-01e1-4ffb-92ac-fd6f1d0d970d
2021-03-21 20:12:39.987 INFO 21860 --- [http-nio-8080-exec-1] c.e.r.common.aop.BoardLogger : ############################################################ 2021-03-21 20:12:39.987 INFO 21860 --- [http-nio-8080-exec-1] c.e.r.common.aop.BoardLogger : ############################################################
2021-03-21 20:12:39.988 INFO 21860 --- [http-nio-8080-exec-1] c.e.r.common.aop.BoardLogger : 컨트롤러 호출 후! 2021-03-21 20:12:39.988 INFO 21860 --- [http-nio-8080-exec-1] c.e.r.common.aop.BoardLogger : 컨트롤러 호출 후!
2021-03-21 20:12:39.988 INFO 21860 --- [http-nio-8080-exec-1] c.e.r.common.aop.BoardLogger : ############################################################ 2021-03-21 20:12:39.988 INFO 21860 --- [http-nio-8080-exec-1] c.e.r.common.aop.BoardLogger : ############################################################
2021-03-21 22:02:41.649 INFO 7912 --- [main] c.e.r.RestControllerApplication : Starting RestControllerApplication using Java 11.0.8 on DESKTOP-8F3AB8V with PID 7912 (C:\Users\Woojin\Desktop\study\Study\rest-controller-practice\build\classes\java\main started by 김우진 in C:\Users\Woojin\Desktop\study\Study\rest-controller-practice)
2021-03-21 22:02:41.654 INFO 7912 --- [main] c.e.r.RestControllerApplication : No active profile set, falling back to default profiles: default
2021-03-21 22:02:43.696 INFO 7912 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode.
2021-03-21 22:02:44.103 INFO 7912 --- [main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 388 ms. Found 16 JPA repository interfaces.
2021-03-21 22:02:45.382 INFO 7912 --- [main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8080 (http)
2021-03-21 22:02:45.403 INFO 7912 --- [main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2021-03-21 22:02:45.405 INFO 7912 --- [main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.41]
2021-03-21 22:02:45.656 INFO 7912 --- [main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2021-03-21 22:02:45.656 INFO 7912 --- [main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 3853 ms
2021-03-21 22:02:45.734 INFO 7912 --- [main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting...
2021-03-21 22:02:45.960 INFO 7912 --- [main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed.
2021-03-21 22:02:45.970 INFO 7912 --- [main] o.s.b.a.h2.H2ConsoleAutoConfiguration : H2 console available at '/h2-console'. Database available at 'jdbc:h2:mem:testDb'
2021-03-21 22:02:46.271 INFO 7912 --- [main] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [name: default]
2021-03-21 22:02:46.366 INFO 7912 --- [main] org.hibernate.Version : HHH000412: Hibernate ORM core version 5.4.27.Final
2021-03-21 22:02:46.672 INFO 7912 --- [main] o.hibernate.annotations.common.Version : HCANN000001: Hibernate Commons Annotations {5.1.2.Final}
2021-03-21 22:02:46.746 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration boolean -> org.hibernate.type.BooleanType@4ae280da
2021-03-21 22:02:46.746 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration boolean -> org.hibernate.type.BooleanType@4ae280da
2021-03-21 22:02:46.747 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration java.lang.Boolean -> org.hibernate.type.BooleanType@4ae280da
2021-03-21 22:02:46.748 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration numeric_boolean -> org.hibernate.type.NumericBooleanType@446b64b3
2021-03-21 22:02:46.749 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration true_false -> org.hibernate.type.TrueFalseType@5dcf0772
2021-03-21 22:02:46.750 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration yes_no -> org.hibernate.type.YesNoType@4df7d9ee
2021-03-21 22:02:46.753 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration byte -> org.hibernate.type.ByteType@5d66ae3a
2021-03-21 22:02:46.753 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration byte -> org.hibernate.type.ByteType@5d66ae3a
2021-03-21 22:02:46.753 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration java.lang.Byte -> org.hibernate.type.ByteType@5d66ae3a
2021-03-21 22:02:46.756 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration character -> org.hibernate.type.CharacterType@6682e6a5
2021-03-21 22:02:46.756 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration char -> org.hibernate.type.CharacterType@6682e6a5
2021-03-21 22:02:46.756 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration java.lang.Character -> org.hibernate.type.CharacterType@6682e6a5
2021-03-21 22:02:46.758 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration short -> org.hibernate.type.ShortType@37c1cfa
2021-03-21 22:02:46.758 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration short -> org.hibernate.type.ShortType@37c1cfa
2021-03-21 22:02:46.758 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration java.lang.Short -> org.hibernate.type.ShortType@37c1cfa
2021-03-21 22:02:46.760 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration integer -> org.hibernate.type.IntegerType@28b458e6
2021-03-21 22:02:46.761 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration int -> org.hibernate.type.IntegerType@28b458e6
2021-03-21 22:02:46.761 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration java.lang.Integer -> org.hibernate.type.IntegerType@28b458e6
2021-03-21 22:02:46.765 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration long -> org.hibernate.type.LongType@401788d5
2021-03-21 22:02:46.765 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration long -> org.hibernate.type.LongType@401788d5
2021-03-21 22:02:46.766 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration java.lang.Long -> org.hibernate.type.LongType@401788d5
2021-03-21 22:02:46.768 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration float -> org.hibernate.type.FloatType@2b01c689
2021-03-21 22:02:46.768 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration float -> org.hibernate.type.FloatType@2b01c689
2021-03-21 22:02:46.768 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration java.lang.Float -> org.hibernate.type.FloatType@2b01c689
2021-03-21 22:02:46.770 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration double -> org.hibernate.type.DoubleType@439f2d87
2021-03-21 22:02:46.770 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration double -> org.hibernate.type.DoubleType@439f2d87
2021-03-21 22:02:46.770 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration java.lang.Double -> org.hibernate.type.DoubleType@439f2d87
2021-03-21 22:02:46.772 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration big_decimal -> org.hibernate.type.BigDecimalType@60b616c8
2021-03-21 22:02:46.772 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration java.math.BigDecimal -> org.hibernate.type.BigDecimalType@60b616c8
2021-03-21 22:02:46.773 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration big_integer -> org.hibernate.type.BigIntegerType@4f64d9cb
2021-03-21 22:02:46.773 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration java.math.BigInteger -> org.hibernate.type.BigIntegerType@4f64d9cb
2021-03-21 22:02:46.774 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration string -> org.hibernate.type.StringType@ee96866
2021-03-21 22:02:46.775 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration java.lang.String -> org.hibernate.type.StringType@ee96866
2021-03-21 22:02:46.775 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration nstring -> org.hibernate.type.StringNVarcharType@5a7b6b75
2021-03-21 22:02:46.776 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration ncharacter -> org.hibernate.type.CharacterNCharType@39f42d0e
2021-03-21 22:02:46.778 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration url -> org.hibernate.type.UrlType@da09250
2021-03-21 22:02:46.778 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration java.net.URL -> org.hibernate.type.UrlType@da09250
2021-03-21 22:02:46.779 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration Duration -> org.hibernate.type.DurationType@112c2930
2021-03-21 22:02:46.779 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration java.time.Duration -> org.hibernate.type.DurationType@112c2930
2021-03-21 22:02:46.800 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration Instant -> org.hibernate.type.InstantType@beabd6b
2021-03-21 22:02:46.800 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration java.time.Instant -> org.hibernate.type.InstantType@beabd6b
2021-03-21 22:02:46.803 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration LocalDateTime -> org.hibernate.type.LocalDateTimeType@5980fa73
2021-03-21 22:02:46.803 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration java.time.LocalDateTime -> org.hibernate.type.LocalDateTimeType@5980fa73
2021-03-21 22:02:46.807 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration LocalDate -> org.hibernate.type.LocalDateType@4357524b
2021-03-21 22:02:46.808 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration java.time.LocalDate -> org.hibernate.type.LocalDateType@4357524b
2021-03-21 22:02:46.810 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration LocalTime -> org.hibernate.type.LocalTimeType@2fbd390
2021-03-21 22:02:46.810 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration java.time.LocalTime -> org.hibernate.type.LocalTimeType@2fbd390
2021-03-21 22:02:46.812 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration OffsetDateTime -> org.hibernate.type.OffsetDateTimeType@45eab322
2021-03-21 22:02:46.812 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration java.time.OffsetDateTime -> org.hibernate.type.OffsetDateTimeType@45eab322
2021-03-21 22:02:46.819 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration OffsetTime -> org.hibernate.type.OffsetTimeType@19ae36f4
2021-03-21 22:02:46.819 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration java.time.OffsetTime -> org.hibernate.type.OffsetTimeType@19ae36f4
2021-03-21 22:02:46.821 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration ZonedDateTime -> org.hibernate.type.ZonedDateTimeType@216f01
2021-03-21 22:02:46.822 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration java.time.ZonedDateTime -> org.hibernate.type.ZonedDateTimeType@216f01
2021-03-21 22:02:46.825 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration date -> org.hibernate.type.DateType@4a9b3956
2021-03-21 22:02:46.825 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration java.sql.Date -> org.hibernate.type.DateType@4a9b3956
2021-03-21 22:02:46.828 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration time -> org.hibernate.type.TimeType@bb8ead8
2021-03-21 22:02:46.828 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration java.sql.Time -> org.hibernate.type.TimeType@bb8ead8
2021-03-21 22:02:46.831 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration timestamp -> org.hibernate.type.TimestampType@53cb0bcb
2021-03-21 22:02:46.831 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration java.sql.Timestamp -> org.hibernate.type.TimestampType@53cb0bcb
2021-03-21 22:02:46.832 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration java.util.Date -> org.hibernate.type.TimestampType@53cb0bcb
2021-03-21 22:02:46.835 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration dbtimestamp -> org.hibernate.type.DbTimestampType@63dda940
2021-03-21 22:02:46.838 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration calendar -> org.hibernate.type.CalendarType@7a55fb81
2021-03-21 22:02:46.838 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration java.util.Calendar -> org.hibernate.type.CalendarType@7a55fb81
2021-03-21 22:02:46.839 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration java.util.GregorianCalendar -> org.hibernate.type.CalendarType@7a55fb81
2021-03-21 22:02:46.840 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration calendar_date -> org.hibernate.type.CalendarDateType@7272ee51
2021-03-21 22:02:46.841 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration calendar_time -> org.hibernate.type.CalendarTimeType@762a10b6
2021-03-21 22:02:46.843 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration locale -> org.hibernate.type.LocaleType@240a2619
2021-03-21 22:02:46.843 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration java.util.Locale -> org.hibernate.type.LocaleType@240a2619
2021-03-21 22:02:46.845 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration currency -> org.hibernate.type.CurrencyType@3070f3e6
2021-03-21 22:02:46.846 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration java.util.Currency -> org.hibernate.type.CurrencyType@3070f3e6
2021-03-21 22:02:46.849 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration timezone -> org.hibernate.type.TimeZoneType@4fc6e776
2021-03-21 22:02:46.850 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration java.util.TimeZone -> org.hibernate.type.TimeZoneType@4fc6e776
2021-03-21 22:02:46.851 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration class -> org.hibernate.type.ClassType@32da97fd
2021-03-21 22:02:46.852 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration java.lang.Class -> org.hibernate.type.ClassType@32da97fd
2021-03-21 22:02:46.854 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration uuid-binary -> org.hibernate.type.UUIDBinaryType@365cef67
2021-03-21 22:02:46.854 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration java.util.UUID -> org.hibernate.type.UUIDBinaryType@365cef67
2021-03-21 22:02:46.855 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration uuid-char -> org.hibernate.type.UUIDCharType@52d7ab79
2021-03-21 22:02:46.857 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration binary -> org.hibernate.type.BinaryType@5d601832
2021-03-21 22:02:46.858 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration byte[] -> org.hibernate.type.BinaryType@5d601832
2021-03-21 22:02:46.858 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration [B -> org.hibernate.type.BinaryType@5d601832
2021-03-21 22:02:46.859 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration wrapper-binary -> org.hibernate.type.WrapperBinaryType@6a96d639
2021-03-21 22:02:46.859 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration Byte[] -> org.hibernate.type.WrapperBinaryType@6a96d639
2021-03-21 22:02:46.860 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration [Ljava.lang.Byte; -> org.hibernate.type.WrapperBinaryType@6a96d639
2021-03-21 22:02:46.861 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration row_version -> org.hibernate.type.RowVersionType@1e120628
2021-03-21 22:02:46.863 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration image -> org.hibernate.type.ImageType@2d4fb0d8
2021-03-21 22:02:46.867 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration characters -> org.hibernate.type.CharArrayType@2755617b
2021-03-21 22:02:46.868 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration char[] -> org.hibernate.type.CharArrayType@2755617b
2021-03-21 22:02:46.868 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration [C -> org.hibernate.type.CharArrayType@2755617b
2021-03-21 22:02:46.869 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration wrapper-characters -> org.hibernate.type.CharacterArrayType@1b0e031b
2021-03-21 22:02:46.870 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration [Ljava.lang.Character; -> org.hibernate.type.CharacterArrayType@1b0e031b
2021-03-21 22:02:46.870 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration Character[] -> org.hibernate.type.CharacterArrayType@1b0e031b
2021-03-21 22:02:46.871 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration text -> org.hibernate.type.TextType@4e5c8ef3
2021-03-21 22:02:46.871 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration ntext -> org.hibernate.type.NTextType@22865072
2021-03-21 22:02:46.873 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration blob -> org.hibernate.type.BlobType@54c11750
2021-03-21 22:02:46.874 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration java.sql.Blob -> org.hibernate.type.BlobType@54c11750
2021-03-21 22:02:46.876 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration materialized_blob -> org.hibernate.type.MaterializedBlobType@6e8f2094
2021-03-21 22:02:46.878 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration clob -> org.hibernate.type.ClobType@582dcd35
2021-03-21 22:02:46.879 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration java.sql.Clob -> org.hibernate.type.ClobType@582dcd35
2021-03-21 22:02:46.880 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration nclob -> org.hibernate.type.NClobType@7aae1170
2021-03-21 22:02:46.882 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration java.sql.NClob -> org.hibernate.type.NClobType@7aae1170
2021-03-21 22:02:46.884 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration materialized_clob -> org.hibernate.type.MaterializedClobType@64c25a62
2021-03-21 22:02:46.885 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration materialized_nclob -> org.hibernate.type.MaterializedNClobType@11399548
2021-03-21 22:02:46.889 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration serializable -> org.hibernate.type.SerializableType@1c6e3ff9
2021-03-21 22:02:46.893 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration object -> org.hibernate.type.ObjectType@91a2543
2021-03-21 22:02:46.893 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration java.lang.Object -> org.hibernate.type.ObjectType@91a2543
2021-03-21 22:02:46.894 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration imm_date -> org.hibernate.type.AdaptedImmutableType@3af36922
2021-03-21 22:02:46.895 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration imm_time -> org.hibernate.type.AdaptedImmutableType@609b041c
2021-03-21 22:02:46.895 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration imm_timestamp -> org.hibernate.type.AdaptedImmutableType@474e34e4
2021-03-21 22:02:46.895 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration imm_dbtimestamp -> org.hibernate.type.AdaptedImmutableType@7e2c6702
2021-03-21 22:02:46.895 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration imm_calendar -> org.hibernate.type.AdaptedImmutableType@5fb7ab9c
2021-03-21 22:02:46.896 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration imm_calendar_date -> org.hibernate.type.AdaptedImmutableType@6734ff92
2021-03-21 22:02:46.896 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration imm_binary -> org.hibernate.type.AdaptedImmutableType@51eb0e84
2021-03-21 22:02:46.896 DEBUG 7912 --- [main] org.hibernate.type.BasicTypeRegistry : Adding type registration imm_serializable -> org.hibernate.type.AdaptedImmutableType@4ce267cc
2021-03-21 22:02:47.040 INFO 7912 --- [main] org.hibernate.dialect.Dialect : HHH000400: Using dialect: org.hibernate.dialect.H2Dialect
2021-03-21 22:02:47.202 DEBUG 7912 --- [main] o.h.type.spi.TypeConfiguration$Scope : Scoping TypeConfiguration [org.hibernate.type.spi.TypeConfiguration@7db791df] to MetadataBuildingContext [org.hibernate.boot.internal.MetadataBuildingContextRootImpl@1bfa5a13]
2021-03-21 22:02:47.598 DEBUG 7912 --- [main] org.hibernate.type.EnumType : Using NAMED-based conversion for Enum com.example.restcontroller.user.model.UserPointType
2021-03-21 22:02:47.603 DEBUG 7912 --- [main] org.hibernate.type.EnumType : Using NAMED-based conversion for Enum com.example.restcontroller.user.entity.UserStatus
2021-03-21 22:02:47.876 DEBUG 7912 --- [main] o.h.type.spi.TypeConfiguration$Scope : Scoping TypeConfiguration [org.hibernate.type.spi.TypeConfiguration@7db791df] to SessionFactoryImpl [org.hibernate.internal.SessionFactoryImpl@60194904]
2021-03-21 22:02:48.769 DEBUG 7912 --- [main] org.hibernate.SQL :
drop table if exists board CASCADE
2021-03-21 22:02:48.773 DEBUG 7912 --- [main] org.hibernate.SQL :
drop table if exists board_bookmark CASCADE
2021-03-21 22:02:48.773 DEBUG 7912 --- [main] org.hibernate.SQL :
drop table if exists board_comment CASCADE
2021-03-21 22:02:48.774 DEBUG 7912 --- [main] org.hibernate.SQL :
drop table if exists board_hits CASCADE
2021-03-21 22:02:48.774 DEBUG 7912 --- [main] org.hibernate.SQL :
drop table if exists board_like CASCADE
2021-03-21 22:02:48.774 DEBUG 7912 --- [main] org.hibernate.SQL :
drop table if exists board_report CASCADE
2021-03-21 22:02:48.774 DEBUG 7912 --- [main] org.hibernate.SQL :
drop table if exists board_scrap CASCADE
2021-03-21 22:02:48.774 DEBUG 7912 --- [main] org.hibernate.SQL :
drop table if exists board_type CASCADE
2021-03-21 22:02:48.774 DEBUG 7912 --- [main] org.hibernate.SQL :
drop table if exists logs CASCADE
2021-03-21 22:02:48.774 DEBUG 7912 --- [main] org.hibernate.SQL :
drop table if exists mail_template CASCADE
2021-03-21 22:02:48.775 DEBUG 7912 --- [main] org.hibernate.SQL :
drop table if exists notice CASCADE
2021-03-21 22:02:48.776 DEBUG 7912 --- [main] org.hibernate.SQL :
drop table if exists notice_like CASCADE
2021-03-21 22:02:48.776 DEBUG 7912 --- [main] org.hibernate.SQL :
drop table if exists user CASCADE
2021-03-21 22:02:48.776 DEBUG 7912 --- [main] org.hibernate.SQL :
drop table if exists user_interest CASCADE
2021-03-21 22:02:48.776 DEBUG 7912 --- [main] org.hibernate.SQL :
drop table if exists user_login_history CASCADE
2021-03-21 22:02:48.776 DEBUG 7912 --- [main] org.hibernate.SQL :
drop table if exists user_point CASCADE
2021-03-21 22:02:48.779 DEBUG 7912 --- [main] org.hibernate.SQL :
create table board (
id bigint generated by default as identity,
content varchar(255),
publish_end_date date,
publish_start_date date,
reg_date timestamp,
title varchar(255),
top_yn boolean not null,
board_type_id bigint,
user_id bigint,
primary key (id)
)
2021-03-21 22:02:48.796 DEBUG 7912 --- [main] org.hibernate.SQL :
create table board_bookmark (
id bigint generated by default as identity,
board_id bigint,
board_title varchar(255),
board_type_id bigint,
board_url varchar(255),
reg_date timestamp,
user_id bigint,
primary key (id)
)
2021-03-21 22:02:48.802 DEBUG 7912 --- [main] org.hibernate.SQL :
create table board_comment (
id bigint generated by default as identity,
comments varchar(255),
reg_date timestamp,
board_id bigint,
user_id bigint,
primary key (id)
)
2021-03-21 22:02:48.803 DEBUG 7912 --- [main] org.hibernate.SQL :
create table board_hits (
id bigint generated by default as identity,
reg_date timestamp,
board_id bigint,
user_id bigint,
primary key (id)
)
2021-03-21 22:02:48.805 DEBUG 7912 --- [main] org.hibernate.SQL :
create table board_like (
id bigint generated by default as identity,
reg_date timestamp,
board_id bigint,
user_id bigint,
primary key (id)
)
2021-03-21 22:02:48.806 DEBUG 7912 --- [main] org.hibernate.SQL :
create table board_report (
id bigint generated by default as identity,
board_contents varchar(255),
board_id bigint,
board_reg_date timestamp,
board_title varchar(255),
board_user_id bigint,
comments varchar(255),
reg_date timestamp,
user_email varchar(255),
user_id bigint,
user_name varchar(255),
primary key (id)
)
2021-03-21 22:02:48.808 DEBUG 7912 --- [main] org.hibernate.SQL :
create table board_scrap (
id bigint generated by default as identity,
board_contents varchar(255),
board_id bigint,
board_reg_date timestamp,
board_title varchar(255),
board_type_id bigint,
board_user_id bigint,
reg_date timestamp,
user_id bigint,
primary key (id)
)
2021-03-21 22:02:48.809 DEBUG 7912 --- [main] org.hibernate.SQL :
create table board_type (
id bigint generated by default as identity,
board_name varchar(255),
reg_date timestamp,
update_date timestamp,
using_yn boolean not null,
primary key (id)
)
2021-03-21 22:02:48.810 DEBUG 7912 --- [main] org.hibernate.SQL :
create table logs (
id bigint generated by default as identity,
reg_date timestamp,
text clob,
primary key (id)
)
2021-03-21 22:02:48.811 DEBUG 7912 --- [main] org.hibernate.SQL :
create table mail_template (
id bigint generated by default as identity,
contents varchar(255),
reg_date timestamp,
send_email varchar(255),
send_user_name varchar(255),
template_id varchar(255),
title varchar(255),
primary key (id)
)
2021-03-21 22:02:48.813 DEBUG 7912 --- [main] org.hibernate.SQL :
create table notice (
id bigint generated by default as identity,
contents varchar(255),
delete_date timestamp,
deleted boolean default false not null,
hits integer default 0,
likes integer default 0,
reg_date timestamp,
title varchar(255),
update_date timestamp,
user_id bigint,
primary key (id)
)
2021-03-21 22:02:48.816 DEBUG 7912 --- [main] org.hibernate.SQL :
create table notice_like (
id bigint generated by default as identity,
notice_id bigint,
user_id bigint,
primary key (id)
)
2021-03-21 22:02:48.821 DEBUG 7912 --- [main] org.hibernate.SQL :
create table user (
id bigint generated by default as identity,
email varchar(255) not null,
lock_yn boolean,
password varchar(255) not null,
phone varchar(255) not null,
reg_date timestamp,
status varchar(255),
update_date timestamp,
user_name varchar(255) not null,
primary key (id)
)
2021-03-21 22:02:48.823 DEBUG 7912 --- [main] org.hibernate.SQL :
create table user_interest (
id bigint generated by default as identity,
reg_date timestamp,
interest_user_id bigint,
user_id bigint,
primary key (id)
)
2021-03-21 22:02:48.824 DEBUG 7912 --- [main] org.hibernate.SQL :
create table user_login_history (
id bigint generated by default as identity,
email varchar(255),
ip_addr varchar(255),
login_date timestamp,
user_id bigint,
user_name varchar(255),
primary key (id)
)
2021-03-21 22:02:48.826 DEBUG 7912 --- [main] org.hibernate.SQL :
create table user_point (
id bigint generated by default as identity,
point integer not null,
reg_date timestamp,
user_point_type varchar(255),
user_id bigint,
primary key (id)
)
2021-03-21 22:02:48.827 DEBUG 7912 --- [main] org.hibernate.SQL :
alter table user
add constraint UK_ob8kqyqqgmefl0aco34akdtpe unique (email)
2021-03-21 22:02:48.836 DEBUG 7912 --- [main] org.hibernate.SQL :
alter table board
add constraint FK59iw5qt320s9l10vbxey9as5p
foreign key (board_type_id)
references board_type
2021-03-21 22:02:48.862 DEBUG 7912 --- [main] org.hibernate.SQL :
alter table board
add constraint FKfyf1fchnby6hndhlfaidier1r
foreign key (user_id)
references user
2021-03-21 22:02:48.868 DEBUG 7912 --- [main] org.hibernate.SQL :
alter table board_bookmark
add constraint FK_BOARD_BOOKMARK_USER_ID
foreign key (user_id)
references user
2021-03-21 22:02:48.871 DEBUG 7912 --- [main] org.hibernate.SQL :
alter table board_comment
add constraint FK_BOARD_COMMENT_BOARD_ID
foreign key (board_id)
references board
2021-03-21 22:02:48.873 DEBUG 7912 --- [main] org.hibernate.SQL :
alter table board_comment
add constraint FK_BOARD_COMMENT_USER_ID
foreign key (user_id)
references user
2021-03-21 22:02:48.875 DEBUG 7912 --- [main] org.hibernate.SQL :
alter table board_hits
add constraint FK8ptvjkodqmonm762uo9v8ocha
foreign key (board_id)
references board
2021-03-21 22:02:48.877 DEBUG 7912 --- [main] org.hibernate.SQL :
alter table board_hits
add constraint FKjkkt5o4uyvoo26g31v71pww4w
foreign key (user_id)
references user
2021-03-21 22:02:48.879 DEBUG 7912 --- [main] org.hibernate.SQL :
alter table board_like
add constraint FKk7rxm8vl1ptqqhwdj2sjmlpvq
foreign key (board_id)
references board
2021-03-21 22:02:48.885 DEBUG 7912 --- [main] org.hibernate.SQL :
alter table board_like
add constraint FKpf406vodal6lejcg4fkwcjr2o
foreign key (user_id)
references user
2021-03-21 22:02:48.887 DEBUG 7912 --- [main] org.hibernate.SQL :
alter table board_scrap
add constraint FK_BOARD_SCRAP_USER_ID
foreign key (user_id)
references user
2021-03-21 22:02:48.889 DEBUG 7912 --- [main] org.hibernate.SQL :
alter table notice
add constraint FKcvf4mh5se36inrxn7xlh2brfv
foreign key (user_id)
references user
2021-03-21 22:02:48.891 DEBUG 7912 --- [main] org.hibernate.SQL :
alter table notice_like
add constraint FKm2krt4h5dcpydbb4tlvxyr27
foreign key (notice_id)
references notice
2021-03-21 22:02:48.893 DEBUG 7912 --- [main] org.hibernate.SQL :
alter table notice_like
add constraint FKnplmervi6gx6dqj4vpnq7jn6g
foreign key (user_id)
references user
2021-03-21 22:02:48.895 DEBUG 7912 --- [main] org.hibernate.SQL :
alter table user_interest
add constraint FK_USER_INTEREST_INTEREST_USER_ID
foreign key (interest_user_id)
references user
2021-03-21 22:02:48.900 DEBUG 7912 --- [main] org.hibernate.SQL :
alter table user_interest
add constraint FK_USER_INTEREST_USER_ID
foreign key (user_id)
references user
2021-03-21 22:02:48.902 DEBUG 7912 --- [main] org.hibernate.SQL :
alter table user_point
add constraint FK_USER_POINT_USER_ID
foreign key (user_id)
references user
2021-03-21 22:02:48.910 INFO 7912 --- [main] o.h.e.t.j.p.i.JtaPlatformInitiator : HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]
2021-03-21 22:02:48.924 TRACE 7912 --- [main] o.h.type.spi.TypeConfiguration$Scope : Handling #sessionFactoryCreated from [org.hibernate.internal.SessionFactoryImpl@60194904] for TypeConfiguration
2021-03-21 22:02:48.931 INFO 7912 --- [main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'
2021-03-21 22:02:50.743 WARN 7912 --- [main] 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-03-21 22:02:51.253 INFO 7912 --- [main] .s.s.UserDetailsServiceAutoConfiguration :
Using generated security password: f7e987df-df37-4c85-9b76-3c590ea498d0
2021-03-21 22:02:51.416 INFO 7912 --- [main] o.s.s.web.DefaultSecurityFilterChain : Will secure any request with [org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter@6b7e4db6, org.springframework.security.web.context.SecurityContextPersistenceFilter@6b247ef6, org.springframework.security.web.header.HeaderWriterFilter@2be208db, org.springframework.security.web.authentication.logout.LogoutFilter@1e733bb5, org.springframework.security.web.savedrequest.RequestCacheAwareFilter@f10927f, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter@5b5f61cc, org.springframework.security.web.authentication.AnonymousAuthenticationFilter@5c59dfc7, org.springframework.security.web.session.SessionManagementFilter@638e8194, org.springframework.security.web.access.ExceptionTranslationFilter@723f8990, org.springframework.security.web.access.intercept.FilterSecurityInterceptor@54e3cba2]
2021-03-21 22:02:51.761 INFO 7912 --- [main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor'
2021-03-21 22:02:52.263 INFO 7912 --- [main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 8080 (http) with context path ''
2021-03-21 22:02:52.280 INFO 7912 --- [main] c.e.r.RestControllerApplication : Started RestControllerApplication in 11.719 seconds (JVM running for 15.941)
2021-03-21 22:06:16.698 INFO 7912 --- [http-nio-8080-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring DispatcherServlet 'dispatcherServlet'
2021-03-21 22:06:16.700 INFO 7912 --- [http-nio-8080-exec-1] o.s.web.servlet.DispatcherServlet : Initializing Servlet 'dispatcherServlet'
2021-03-21 22:06:16.702 INFO 7912 --- [http-nio-8080-exec-1] o.s.web.servlet.DispatcherServlet : Completed initialization in 2 ms
2021-03-21 22:06:16.746 INFO 7912 --- [http-nio-8080-exec-1] c.e.r.c.interceptor.CommonInterceptor : #########################################
2021-03-21 22:06:16.746 INFO 7912 --- [http-nio-8080-exec-1] c.e.r.c.interceptor.CommonInterceptor : [interceptor] - preHandler start
2021-03-21 22:06:16.746 INFO 7912 --- [http-nio-8080-exec-1] c.e.r.c.interceptor.CommonInterceptor : #########################################
2021-03-21 22:06:16.747 INFO 7912 --- [http-nio-8080-exec-1] c.e.r.c.interceptor.CommonInterceptor : POST /api/login
2021-03-21 22:06:16.974 INFO 7912 --- [http-nio-8080-exec-1] c.e.r.common.aop.BoardLogger : ############################################################
2021-03-21 22:06:16.974 INFO 7912 --- [http-nio-8080-exec-1] c.e.r.common.aop.BoardLogger : 컨트롤러 호출 전!
2021-03-21 22:06:16.974 INFO 7912 --- [http-nio-8080-exec-1] c.e.r.common.aop.BoardLogger : ############################################################
2021-03-21 22:06:16.993 INFO 7912 --- [http-nio-8080-exec-1] c.e.r.common.aop.LoginLogger : ############################################################
2021-03-21 22:06:16.994 INFO 7912 --- [http-nio-8080-exec-1] c.e.r.common.aop.LoginLogger : 서비스 호출 전!
2021-03-21 22:06:16.994 INFO 7912 --- [http-nio-8080-exec-1] c.e.r.common.aop.LoginLogger : ############################################################
2021-03-21 22:06:17.030 DEBUG 7912 --- [http-nio-8080-exec-1] org.hibernate.SQL :
select
user0_.id as id1_12_,
user0_.email as email2_12_,
user0_.lock_yn as lock_yn3_12_,
user0_.password as password4_12_,
user0_.phone as phone5_12_,
user0_.reg_date as reg_date6_12_,
user0_.status as status7_12_,
user0_.update_date as update_d8_12_,
user0_.user_name as user_nam9_12_
from
user user0_
where
user0_.email=?
2021-03-21 22:06:17.036 TRACE 7912 --- [http-nio-8080-exec-1] o.h.type.descriptor.sql.BasicBinder : binding parameter [1] as [VARCHAR] - [test11@naver.com]
2021-03-21 22:06:17.039 TRACE 7912 --- [http-nio-8080-exec-1] o.h.type.descriptor.sql.BasicExtractor : extracted value ([id1_12_] : [BIGINT]) - [1]
2021-03-21 22:06:17.048 TRACE 7912 --- [http-nio-8080-exec-1] o.h.type.descriptor.sql.BasicExtractor : extracted value ([email2_12_] : [VARCHAR]) - [test11@naver.com]
2021-03-21 22:06:17.049 TRACE 7912 --- [http-nio-8080-exec-1] o.h.type.descriptor.sql.BasicExtractor : extracted value ([lock_yn3_12_] : [BOOLEAN]) - [false]
2021-03-21 22:06:17.049 TRACE 7912 --- [http-nio-8080-exec-1] o.h.type.descriptor.sql.BasicExtractor : extracted value ([password4_12_] : [VARCHAR]) - [$2a$10$2ElPbt2mwiAc9IYH3rgJz.YZInXlUd363utdyU0TWfne6Y3vKh8h6]
2021-03-21 22:06:17.050 TRACE 7912 --- [http-nio-8080-exec-1] o.h.type.descriptor.sql.BasicExtractor : extracted value ([phone5_12_] : [VARCHAR]) - [010-1234-1234]
2021-03-21 22:06:17.051 TRACE 7912 --- [http-nio-8080-exec-1] o.h.type.descriptor.sql.BasicExtractor : extracted value ([reg_date6_12_] : [TIMESTAMP]) - [2021-02-20T00:50:11]
2021-03-21 22:06:17.051 TRACE 7912 --- [http-nio-8080-exec-1] o.h.type.descriptor.sql.BasicExtractor : extracted value ([status7_12_] : [VARCHAR]) - [USING]
2021-03-21 22:06:17.051 TRACE 7912 --- [http-nio-8080-exec-1] o.h.type.descriptor.sql.BasicExtractor : extracted value ([update_d8_12_] : [TIMESTAMP]) - [null]
2021-03-21 22:06:17.051 TRACE 7912 --- [http-nio-8080-exec-1] o.h.type.descriptor.sql.BasicExtractor : extracted value ([user_nam9_12_] : [VARCHAR]) - [kim]
2021-03-21 22:06:17.065 TRACE 7912 --- [http-nio-8080-exec-1] org.hibernate.type.CollectionType : Created collection wrapper: [com.example.restcontroller.user.entity.User.boardBookmarkList#1]
2021-03-21 22:06:17.065 TRACE 7912 --- [http-nio-8080-exec-1] org.hibernate.type.CollectionType : Created collection wrapper: [com.example.restcontroller.user.entity.User.boardCommentList#1]
2021-03-21 22:06:17.065 TRACE 7912 --- [http-nio-8080-exec-1] org.hibernate.type.CollectionType : Created collection wrapper: [com.example.restcontroller.user.entity.User.boardHitsList#1]
2021-03-21 22:06:17.065 TRACE 7912 --- [http-nio-8080-exec-1] org.hibernate.type.CollectionType : Created collection wrapper: [com.example.restcontroller.user.entity.User.boardLikeList#1]
2021-03-21 22:06:17.065 TRACE 7912 --- [http-nio-8080-exec-1] org.hibernate.type.CollectionType : Created collection wrapper: [com.example.restcontroller.user.entity.User.boardList#1]
2021-03-21 22:06:17.065 TRACE 7912 --- [http-nio-8080-exec-1] org.hibernate.type.CollectionType : Created collection wrapper: [com.example.restcontroller.user.entity.User.boardScrapList#1]
2021-03-21 22:06:17.065 TRACE 7912 --- [http-nio-8080-exec-1] org.hibernate.type.CollectionType : Created collection wrapper: [com.example.restcontroller.user.entity.User.noticeLikeList#1]
2021-03-21 22:06:17.066 TRACE 7912 --- [http-nio-8080-exec-1] org.hibernate.type.CollectionType : Created collection wrapper: [com.example.restcontroller.user.entity.User.noticeList#1]
2021-03-21 22:06:17.066 TRACE 7912 --- [http-nio-8080-exec-1] org.hibernate.type.CollectionType : Created collection wrapper: [com.example.restcontroller.user.entity.User.userInterestList#1]
2021-03-21 22:06:17.066 TRACE 7912 --- [http-nio-8080-exec-1] org.hibernate.type.CollectionType : Created collection wrapper: [com.example.restcontroller.user.entity.User.userList#1]
2021-03-21 22:06:17.066 TRACE 7912 --- [http-nio-8080-exec-1] org.hibernate.type.CollectionType : Created collection wrapper: [com.example.restcontroller.user.entity.User.userPointList#1]
2021-03-21 22:06:17.220 INFO 7912 --- [http-nio-8080-exec-1] c.e.r.common.aop.LoginLogger : ############################################################
2021-03-21 22:06:17.220 INFO 7912 --- [http-nio-8080-exec-1] c.e.r.common.aop.LoginLogger : 서비스 호출 전!
2021-03-21 22:06:17.220 INFO 7912 --- [http-nio-8080-exec-1] c.e.r.common.aop.LoginLogger : ############################################################
2021-03-21 22:06:17.270 DEBUG 7912 --- [http-nio-8080-exec-1] org.hibernate.SQL :
insert
into
logs
(id, reg_date, text)
values
(null, ?, ?)
2021-03-21 22:06:17.271 TRACE 7912 --- [http-nio-8080-exec-1] o.h.type.descriptor.sql.BasicBinder : binding parameter [1] as [TIMESTAMP] - [2021-03-21T22:06:17.225310600]
2021-03-21 22:06:17.272 TRACE 7912 --- [http-nio-8080-exec-1] o.h.type.descriptor.sql.BasicBinder : binding parameter [2] as [CLOB] - [
함수명 : class com.example.restcontroller.user.service.UserServiceImpl.login
매개변수 : UserLogin(email=test11@naver.com, password=1234)
리턴값 : User{id=1, email='test11@naver.com', userName='kim', password='$2a$10$2ElPbt2mwiAc9IYH3rgJz.YZInXlUd363utdyU0TWfne6Y3vKh8h6', phone='010-1234-1234', status=USING, lockYn=false, regDate=2021-02-20T00:50:11, updateDate=null}]
2021-03-21 22:06:17.286 INFO 7912 --- [http-nio-8080-exec-1] c.e.r.common.aop.LoginLogger : ############################################################
2021-03-21 22:06:17.286 INFO 7912 --- [http-nio-8080-exec-1] c.e.r.common.aop.LoginLogger : 서비스 호출 후!
2021-03-21 22:06:17.286 INFO 7912 --- [http-nio-8080-exec-1] c.e.r.common.aop.LoginLogger : ############################################################
2021-03-21 22:06:17.287 INFO 7912 --- [http-nio-8080-exec-1] c.e.r.common.aop.LoginLogger :
함수명 : class com.example.restcontroller.user.service.UserServiceImpl.login
매개변수 : UserLogin(email=test11@naver.com, password=1234)
리턴값 : User{id=1, email='test11@naver.com', userName='kim', password='$2a$10$2ElPbt2mwiAc9IYH3rgJz.YZInXlUd363utdyU0TWfne6Y3vKh8h6', phone='010-1234-1234', status=USING, lockYn=false, regDate=2021-02-20T00:50:11, updateDate=null}
2021-03-21 22:06:17.287 INFO 7912 --- [http-nio-8080-exec-1] c.e.r.common.aop.LoginLogger : ############################################################
2021-03-21 22:06:17.287 INFO 7912 --- [http-nio-8080-exec-1] c.e.r.common.aop.LoginLogger : 서비스 호출 후!
2021-03-21 22:06:17.287 INFO 7912 --- [http-nio-8080-exec-1] c.e.r.common.aop.LoginLogger : ############################################################
2021-03-21 22:06:17.389 INFO 7912 --- [http-nio-8080-exec-1] c.e.r.common.aop.BoardLogger : ############################################################
2021-03-21 22:06:17.389 INFO 7912 --- [http-nio-8080-exec-1] c.e.r.common.aop.BoardLogger : 컨트롤러 호출 후!
2021-03-21 22:06:17.389 INFO 7912 --- [http-nio-8080-exec-1] c.e.r.common.aop.BoardLogger : ############################################################
2021-03-21 22:06:31.969 INFO 7912 --- [http-nio-8080-exec-3] c.e.r.common.aop.BoardLogger : ############################################################
2021-03-21 22:06:31.969 INFO 7912 --- [http-nio-8080-exec-3] c.e.r.common.aop.BoardLogger : 컨트롤러 호출 전!
2021-03-21 22:06:31.969 INFO 7912 --- [http-nio-8080-exec-3] c.e.r.common.aop.BoardLogger : ############################################################
2021-03-21 22:06:31.995 INFO 7912 --- [http-nio-8080-exec-3] c.e.r.common.aop.LoginLogger : ############################################################
2021-03-21 22:06:31.995 INFO 7912 --- [http-nio-8080-exec-3] c.e.r.common.aop.LoginLogger : 서비스 호출 전!
2021-03-21 22:06:31.996 INFO 7912 --- [http-nio-8080-exec-3] c.e.r.common.aop.LoginLogger : ############################################################
2021-03-21 22:06:32.001 DEBUG 7912 --- [http-nio-8080-exec-3] org.hibernate.SQL :
select
user0_.id as id1_12_,
user0_.email as email2_12_,
user0_.lock_yn as lock_yn3_12_,
user0_.password as password4_12_,
user0_.phone as phone5_12_,
user0_.reg_date as reg_date6_12_,
user0_.status as status7_12_,
user0_.update_date as update_d8_12_,
user0_.user_name as user_nam9_12_
from
user user0_
where
user0_.email=?
2021-03-21 22:06:32.002 TRACE 7912 --- [http-nio-8080-exec-3] o.h.type.descriptor.sql.BasicBinder : binding parameter [1] as [VARCHAR] - [test11@naver.com]
2021-03-21 22:06:32.002 TRACE 7912 --- [http-nio-8080-exec-3] o.h.type.descriptor.sql.BasicExtractor : extracted value ([id1_12_] : [BIGINT]) - [1]
2021-03-21 22:06:32.002 TRACE 7912 --- [http-nio-8080-exec-3] o.h.type.descriptor.sql.BasicExtractor : extracted value ([email2_12_] : [VARCHAR]) - [test11@naver.com]
2021-03-21 22:06:32.002 TRACE 7912 --- [http-nio-8080-exec-3] o.h.type.descriptor.sql.BasicExtractor : extracted value ([lock_yn3_12_] : [BOOLEAN]) - [false]
2021-03-21 22:06:32.002 TRACE 7912 --- [http-nio-8080-exec-3] o.h.type.descriptor.sql.BasicExtractor : extracted value ([password4_12_] : [VARCHAR]) - [$2a$10$2ElPbt2mwiAc9IYH3rgJz.YZInXlUd363utdyU0TWfne6Y3vKh8h6]
2021-03-21 22:06:32.002 TRACE 7912 --- [http-nio-8080-exec-3] o.h.type.descriptor.sql.BasicExtractor : extracted value ([phone5_12_] : [VARCHAR]) - [010-1234-1234]
2021-03-21 22:06:32.003 TRACE 7912 --- [http-nio-8080-exec-3] o.h.type.descriptor.sql.BasicExtractor : extracted value ([reg_date6_12_] : [TIMESTAMP]) - [2021-02-20T00:50:11]
2021-03-21 22:06:32.003 TRACE 7912 --- [http-nio-8080-exec-3] o.h.type.descriptor.sql.BasicExtractor : extracted value ([status7_12_] : [VARCHAR]) - [USING]
2021-03-21 22:06:32.003 TRACE 7912 --- [http-nio-8080-exec-3] o.h.type.descriptor.sql.BasicExtractor : extracted value ([update_d8_12_] : [TIMESTAMP]) - [null]
2021-03-21 22:06:32.003 TRACE 7912 --- [http-nio-8080-exec-3] o.h.type.descriptor.sql.BasicExtractor : extracted value ([user_nam9_12_] : [VARCHAR]) - [kim]
2021-03-21 22:06:32.003 TRACE 7912 --- [http-nio-8080-exec-3] org.hibernate.type.CollectionType : Created collection wrapper: [com.example.restcontroller.user.entity.User.boardBookmarkList#1]
2021-03-21 22:06:32.003 TRACE 7912 --- [http-nio-8080-exec-3] org.hibernate.type.CollectionType : Created collection wrapper: [com.example.restcontroller.user.entity.User.boardCommentList#1]
2021-03-21 22:06:32.003 TRACE 7912 --- [http-nio-8080-exec-3] org.hibernate.type.CollectionType : Created collection wrapper: [com.example.restcontroller.user.entity.User.boardHitsList#1]
2021-03-21 22:06:32.004 TRACE 7912 --- [http-nio-8080-exec-3] org.hibernate.type.CollectionType : Created collection wrapper: [com.example.restcontroller.user.entity.User.boardLikeList#1]
2021-03-21 22:06:32.004 TRACE 7912 --- [http-nio-8080-exec-3] org.hibernate.type.CollectionType : Created collection wrapper: [com.example.restcontroller.user.entity.User.boardList#1]
2021-03-21 22:06:32.004 TRACE 7912 --- [http-nio-8080-exec-3] org.hibernate.type.CollectionType : Created collection wrapper: [com.example.restcontroller.user.entity.User.boardScrapList#1]
2021-03-21 22:06:32.004 TRACE 7912 --- [http-nio-8080-exec-3] org.hibernate.type.CollectionType : Created collection wrapper: [com.example.restcontroller.user.entity.User.noticeLikeList#1]
2021-03-21 22:06:32.004 TRACE 7912 --- [http-nio-8080-exec-3] org.hibernate.type.CollectionType : Created collection wrapper: [com.example.restcontroller.user.entity.User.noticeList#1]
2021-03-21 22:06:32.004 TRACE 7912 --- [http-nio-8080-exec-3] org.hibernate.type.CollectionType : Created collection wrapper: [com.example.restcontroller.user.entity.User.userInterestList#1]
2021-03-21 22:06:32.004 TRACE 7912 --- [http-nio-8080-exec-3] org.hibernate.type.CollectionType : Created collection wrapper: [com.example.restcontroller.user.entity.User.userList#1]
2021-03-21 22:06:32.004 TRACE 7912 --- [http-nio-8080-exec-3] org.hibernate.type.CollectionType : Created collection wrapper: [com.example.restcontroller.user.entity.User.userPointList#1]
2021-03-21 22:06:32.013 DEBUG 7912 --- [http-nio-8080-exec-3] org.hibernate.SQL :
select
boardtype0_.id as id1_7_0_,
boardtype0_.board_name as board_na2_7_0_,
boardtype0_.reg_date as reg_date3_7_0_,
boardtype0_.update_date as update_d4_7_0_,
boardtype0_.using_yn as using_yn5_7_0_
from
board_type boardtype0_
where
boardtype0_.id=?
2021-03-21 22:06:32.014 TRACE 7912 --- [http-nio-8080-exec-3] o.h.type.descriptor.sql.BasicBinder : binding parameter [1] as [BIGINT] - [1]
2021-03-21 22:06:32.019 TRACE 7912 --- [http-nio-8080-exec-3] o.h.type.descriptor.sql.BasicExtractor : extracted value ([board_na2_7_0_] : [VARCHAR]) - [게시판1]
2021-03-21 22:06:32.019 TRACE 7912 --- [http-nio-8080-exec-3] o.h.type.descriptor.sql.BasicExtractor : extracted value ([reg_date3_7_0_] : [TIMESTAMP]) - [2021-03-21T22:02:49.092308]
2021-03-21 22:06:32.019 TRACE 7912 --- [http-nio-8080-exec-3] o.h.type.descriptor.sql.BasicExtractor : extracted value ([update_d4_7_0_] : [TIMESTAMP]) - [null]
2021-03-21 22:06:32.019 TRACE 7912 --- [http-nio-8080-exec-3] o.h.type.descriptor.sql.BasicExtractor : extracted value ([using_yn5_7_0_] : [BOOLEAN]) - [true]
2021-03-21 22:06:32.021 TRACE 7912 --- [http-nio-8080-exec-3] org.hibernate.type.CollectionType : Created collection wrapper: [com.example.restcontroller.board.entity.BoardType.boardList#1]
2021-03-21 22:06:32.031 DEBUG 7912 --- [http-nio-8080-exec-3] org.hibernate.SQL :
insert
into
board
(id, board_type_id, content, publish_end_date, publish_start_date, reg_date, title, top_yn, user_id)
values
(null, ?, ?, ?, ?, ?, ?, ?, ?)
2021-03-21 22:06:32.031 TRACE 7912 --- [http-nio-8080-exec-3] o.h.type.descriptor.sql.BasicBinder : binding parameter [1] as [BIGINT] - [1]
2021-03-21 22:06:32.031 TRACE 7912 --- [http-nio-8080-exec-3] o.h.type.descriptor.sql.BasicBinder : binding parameter [2] as [VARCHAR] - [내용 추가하기]
2021-03-21 22:06:32.032 TRACE 7912 --- [http-nio-8080-exec-3] o.h.type.descriptor.sql.BasicBinder : binding parameter [3] as [DATE] - [null]
2021-03-21 22:06:32.032 TRACE 7912 --- [http-nio-8080-exec-3] o.h.type.descriptor.sql.BasicBinder : binding parameter [4] as [DATE] - [null]
2021-03-21 22:06:32.032 TRACE 7912 --- [http-nio-8080-exec-3] o.h.type.descriptor.sql.BasicBinder : binding parameter [5] as [TIMESTAMP] - [2021-03-21T22:06:32.021801300]
2021-03-21 22:06:32.032 TRACE 7912 --- [http-nio-8080-exec-3] o.h.type.descriptor.sql.BasicBinder : binding parameter [6] as [VARCHAR] - [제목 추가하기]
2021-03-21 22:06:32.033 TRACE 7912 --- [http-nio-8080-exec-3] o.h.type.descriptor.sql.BasicBinder : binding parameter [7] as [BOOLEAN] - [false]
2021-03-21 22:06:32.033 TRACE 7912 --- [http-nio-8080-exec-3] o.h.type.descriptor.sql.BasicBinder : binding parameter [8] as [BIGINT] - [1]
2021-03-21 22:06:32.049 DEBUG 7912 --- [http-nio-8080-exec-3] org.hibernate.SQL :
select
mailtempla0_.id as id1_9_,
mailtempla0_.contents as contents2_9_,
mailtempla0_.reg_date as reg_date3_9_,
mailtempla0_.send_email as send_ema4_9_,
mailtempla0_.send_user_name as send_use5_9_,
mailtempla0_.template_id as template6_9_,
mailtempla0_.title as title7_9_
from
mail_template mailtempla0_
where
mailtempla0_.template_id=?
2021-03-21 22:06:32.049 TRACE 7912 --- [http-nio-8080-exec-3] o.h.type.descriptor.sql.BasicBinder : binding parameter [1] as [VARCHAR] - [BOARD_ADD]
2021-03-21 22:06:32.051 TRACE 7912 --- [http-nio-8080-exec-3] o.h.type.descriptor.sql.BasicExtractor : extracted value ([id1_9_] : [BIGINT]) - [2]
2021-03-21 22:06:32.051 TRACE 7912 --- [http-nio-8080-exec-3] o.h.type.descriptor.sql.BasicExtractor : extracted value ([contents2_9_] : [VARCHAR]) - [<div><p>제목: {BOARD_TITLE}</p><p>내용</p><div>{BOARD_CONTENTS}</div></div>]
2021-03-21 22:06:32.051 TRACE 7912 --- [http-nio-8080-exec-3] o.h.type.descriptor.sql.BasicExtractor : extracted value ([reg_date3_9_] : [TIMESTAMP]) - [2021-03-21T22:02:49.095758]
2021-03-21 22:06:32.051 TRACE 7912 --- [http-nio-8080-exec-3] o.h.type.descriptor.sql.BasicExtractor : extracted value ([send_ema4_9_] : [VARCHAR]) - [test.email.12588@gmail.com]
2021-03-21 22:06:32.051 TRACE 7912 --- [http-nio-8080-exec-3] o.h.type.descriptor.sql.BasicExtractor : extracted value ([send_use5_9_] : [VARCHAR]) - [관리자]
2021-03-21 22:06:32.051 TRACE 7912 --- [http-nio-8080-exec-3] o.h.type.descriptor.sql.BasicExtractor : extracted value ([template6_9_] : [VARCHAR]) - [BOARD_ADD]
2021-03-21 22:06:32.051 TRACE 7912 --- [http-nio-8080-exec-3] o.h.type.descriptor.sql.BasicExtractor : extracted value ([title7_9_] : [VARCHAR]) - [{USER_NAME}님이 글을 게시하였습니다.]
2021-03-21 22:06:37.109 INFO 7912 --- [http-nio-8080-exec-3] c.e.r.common.aop.LoginLogger : ############################################################
2021-03-21 22:06:37.110 INFO 7912 --- [http-nio-8080-exec-3] c.e.r.common.aop.LoginLogger : 서비스 호출 후!
2021-03-21 22:06:37.110 INFO 7912 --- [http-nio-8080-exec-3] c.e.r.common.aop.LoginLogger : ############################################################
2021-03-21 22:06:37.112 INFO 7912 --- [http-nio-8080-exec-3] c.e.r.common.aop.BoardLogger : ############################################################
2021-03-21 22:06:37.112 INFO 7912 --- [http-nio-8080-exec-3] c.e.r.common.aop.BoardLogger : 컨트롤러 호출 후!
2021-03-21 22:06:37.112 INFO 7912 --- [http-nio-8080-exec-3] c.e.r.common.aop.BoardLogger : ############################################################
2021-03-21 22:08:04.441 INFO 7912 --- [http-nio-8080-exec-6] c.e.r.common.aop.BoardLogger : ############################################################
2021-03-21 22:08:04.442 INFO 7912 --- [http-nio-8080-exec-6] c.e.r.common.aop.BoardLogger : 컨트롤러 호출 전!
2021-03-21 22:08:04.442 INFO 7912 --- [http-nio-8080-exec-6] c.e.r.common.aop.BoardLogger : ############################################################
2021-03-21 22:08:04.448 INFO 7912 --- [http-nio-8080-exec-6] c.e.r.common.aop.LoginLogger : ############################################################
2021-03-21 22:08:04.449 INFO 7912 --- [http-nio-8080-exec-6] c.e.r.common.aop.LoginLogger : 서비스 호출 전!
2021-03-21 22:08:04.449 INFO 7912 --- [http-nio-8080-exec-6] c.e.r.common.aop.LoginLogger : ############################################################
2021-03-21 22:08:04.450 DEBUG 7912 --- [http-nio-8080-exec-6] org.hibernate.SQL :
select
user0_.id as id1_12_,
user0_.email as email2_12_,
user0_.lock_yn as lock_yn3_12_,
user0_.password as password4_12_,
user0_.phone as phone5_12_,
user0_.reg_date as reg_date6_12_,
user0_.status as status7_12_,
user0_.update_date as update_d8_12_,
user0_.user_name as user_nam9_12_
from
user user0_
where
user0_.email=?
2021-03-21 22:08:04.451 TRACE 7912 --- [http-nio-8080-exec-6] o.h.type.descriptor.sql.BasicBinder : binding parameter [1] as [VARCHAR] - [haerong22@gmail.com]
2021-03-21 22:08:04.584 DEBUG 7912 --- [http-nio-8080-exec-6] org.hibernate.SQL :
insert
into
user
(id, email, lock_yn, password, phone, reg_date, status, update_date, user_name)
values
(null, ?, ?, ?, ?, ?, ?, ?, ?)
2021-03-21 22:08:04.584 TRACE 7912 --- [http-nio-8080-exec-6] o.h.type.descriptor.sql.BasicBinder : binding parameter [1] as [VARCHAR] - [haerong22@gmail.com]
2021-03-21 22:08:04.585 TRACE 7912 --- [http-nio-8080-exec-6] o.h.type.descriptor.sql.BasicBinder : binding parameter [2] as [BOOLEAN] - [false]
2021-03-21 22:08:04.585 TRACE 7912 --- [http-nio-8080-exec-6] o.h.type.descriptor.sql.BasicBinder : binding parameter [3] as [VARCHAR] - [$2a$10$eR4wORxmVJVTWrdRYJQl4O26Hrst2i6E8hoA33C8vvL2xZwtCE1oW]
2021-03-21 22:08:04.585 TRACE 7912 --- [http-nio-8080-exec-6] o.h.type.descriptor.sql.BasicBinder : binding parameter [4] as [VARCHAR] - [010-3333-2225]
2021-03-21 22:08:04.585 TRACE 7912 --- [http-nio-8080-exec-6] o.h.type.descriptor.sql.BasicBinder : binding parameter [5] as [TIMESTAMP] - [2021-03-21T22:08:04.577595200]
2021-03-21 22:08:04.586 TRACE 7912 --- [http-nio-8080-exec-6] o.h.type.descriptor.sql.BasicBinder : binding parameter [6] as [VARCHAR] - [USING]
2021-03-21 22:08:04.586 TRACE 7912 --- [http-nio-8080-exec-6] o.h.type.descriptor.sql.BasicBinder : binding parameter [7] as [TIMESTAMP] - [null]
2021-03-21 22:08:04.586 TRACE 7912 --- [http-nio-8080-exec-6] o.h.type.descriptor.sql.BasicBinder : binding parameter [8] as [VARCHAR] - [kim]
2021-03-21 22:08:07.593 INFO 7912 --- [http-nio-8080-exec-6] c.e.r.common.aop.LoginLogger : ############################################################
2021-03-21 22:08:07.594 INFO 7912 --- [http-nio-8080-exec-6] c.e.r.common.aop.LoginLogger : 서비스 호출 후!
2021-03-21 22:08:07.595 INFO 7912 --- [http-nio-8080-exec-6] c.e.r.common.aop.LoginLogger : ############################################################
2021-03-21 22:08:07.595 INFO 7912 --- [http-nio-8080-exec-6] c.e.r.common.aop.BoardLogger : ############################################################
2021-03-21 22:08:07.595 INFO 7912 --- [http-nio-8080-exec-6] c.e.r.common.aop.BoardLogger : 컨트롤러 호출 후!
2021-03-21 22:08:07.595 INFO 7912 --- [http-nio-8080-exec-6] c.e.r.common.aop.BoardLogger : ############################################################
2021-03-21 22:08:12.129 INFO 7912 --- [http-nio-8080-exec-8] c.e.r.c.interceptor.CommonInterceptor : #########################################
2021-03-21 22:08:12.129 INFO 7912 --- [http-nio-8080-exec-8] c.e.r.c.interceptor.CommonInterceptor : [interceptor] - preHandler start
2021-03-21 22:08:12.129 INFO 7912 --- [http-nio-8080-exec-8] c.e.r.c.interceptor.CommonInterceptor : #########################################
2021-03-21 22:08:12.129 INFO 7912 --- [http-nio-8080-exec-8] c.e.r.c.interceptor.CommonInterceptor : POST /api/login
2021-03-21 22:08:12.131 INFO 7912 --- [http-nio-8080-exec-8] c.e.r.common.aop.BoardLogger : ############################################################
2021-03-21 22:08:12.131 INFO 7912 --- [http-nio-8080-exec-8] c.e.r.common.aop.BoardLogger : 컨트롤러 호출 전!
2021-03-21 22:08:12.131 INFO 7912 --- [http-nio-8080-exec-8] c.e.r.common.aop.BoardLogger : ############################################################
2021-03-21 22:08:12.131 INFO 7912 --- [http-nio-8080-exec-8] c.e.r.common.aop.LoginLogger : ############################################################
2021-03-21 22:08:12.131 INFO 7912 --- [http-nio-8080-exec-8] c.e.r.common.aop.LoginLogger : 서비스 호출 전!
2021-03-21 22:08:12.131 INFO 7912 --- [http-nio-8080-exec-8] c.e.r.common.aop.LoginLogger : ############################################################
2021-03-21 22:08:12.132 DEBUG 7912 --- [http-nio-8080-exec-8] org.hibernate.SQL :
select
user0_.id as id1_12_,
user0_.email as email2_12_,
user0_.lock_yn as lock_yn3_12_,
user0_.password as password4_12_,
user0_.phone as phone5_12_,
user0_.reg_date as reg_date6_12_,
user0_.status as status7_12_,
user0_.update_date as update_d8_12_,
user0_.user_name as user_nam9_12_
from
user user0_
where
user0_.email=?
2021-03-21 22:08:12.132 TRACE 7912 --- [http-nio-8080-exec-8] o.h.type.descriptor.sql.BasicBinder : binding parameter [1] as [VARCHAR] - [haerong22@gmail.com]
2021-03-21 22:08:12.133 TRACE 7912 --- [http-nio-8080-exec-8] o.h.type.descriptor.sql.BasicExtractor : extracted value ([id1_12_] : [BIGINT]) - [5]
2021-03-21 22:08:12.133 TRACE 7912 --- [http-nio-8080-exec-8] o.h.type.descriptor.sql.BasicExtractor : extracted value ([email2_12_] : [VARCHAR]) - [haerong22@gmail.com]
2021-03-21 22:08:12.133 TRACE 7912 --- [http-nio-8080-exec-8] o.h.type.descriptor.sql.BasicExtractor : extracted value ([lock_yn3_12_] : [BOOLEAN]) - [false]
2021-03-21 22:08:12.133 TRACE 7912 --- [http-nio-8080-exec-8] o.h.type.descriptor.sql.BasicExtractor : extracted value ([password4_12_] : [VARCHAR]) - [$2a$10$eR4wORxmVJVTWrdRYJQl4O26Hrst2i6E8hoA33C8vvL2xZwtCE1oW]
2021-03-21 22:08:12.133 TRACE 7912 --- [http-nio-8080-exec-8] o.h.type.descriptor.sql.BasicExtractor : extracted value ([phone5_12_] : [VARCHAR]) - [010-3333-2225]
2021-03-21 22:08:12.133 TRACE 7912 --- [http-nio-8080-exec-8] o.h.type.descriptor.sql.BasicExtractor : extracted value ([reg_date6_12_] : [TIMESTAMP]) - [2021-03-21T22:08:04.577595]
2021-03-21 22:08:12.134 TRACE 7912 --- [http-nio-8080-exec-8] o.h.type.descriptor.sql.BasicExtractor : extracted value ([status7_12_] : [VARCHAR]) - [USING]
2021-03-21 22:08:12.134 TRACE 7912 --- [http-nio-8080-exec-8] o.h.type.descriptor.sql.BasicExtractor : extracted value ([update_d8_12_] : [TIMESTAMP]) - [null]
2021-03-21 22:08:12.134 TRACE 7912 --- [http-nio-8080-exec-8] o.h.type.descriptor.sql.BasicExtractor : extracted value ([user_nam9_12_] : [VARCHAR]) - [kim]
2021-03-21 22:08:12.134 TRACE 7912 --- [http-nio-8080-exec-8] org.hibernate.type.CollectionType : Created collection wrapper: [com.example.restcontroller.user.entity.User.boardBookmarkList#5]
2021-03-21 22:08:12.134 TRACE 7912 --- [http-nio-8080-exec-8] org.hibernate.type.CollectionType : Created collection wrapper: [com.example.restcontroller.user.entity.User.boardCommentList#5]
2021-03-21 22:08:12.134 TRACE 7912 --- [http-nio-8080-exec-8] org.hibernate.type.CollectionType : Created collection wrapper: [com.example.restcontroller.user.entity.User.boardHitsList#5]
2021-03-21 22:08:12.134 TRACE 7912 --- [http-nio-8080-exec-8] org.hibernate.type.CollectionType : Created collection wrapper: [com.example.restcontroller.user.entity.User.boardLikeList#5]
2021-03-21 22:08:12.134 TRACE 7912 --- [http-nio-8080-exec-8] org.hibernate.type.CollectionType : Created collection wrapper: [com.example.restcontroller.user.entity.User.boardList#5]
2021-03-21 22:08:12.134 TRACE 7912 --- [http-nio-8080-exec-8] org.hibernate.type.CollectionType : Created collection wrapper: [com.example.restcontroller.user.entity.User.boardScrapList#5]
2021-03-21 22:08:12.134 TRACE 7912 --- [http-nio-8080-exec-8] org.hibernate.type.CollectionType : Created collection wrapper: [com.example.restcontroller.user.entity.User.noticeLikeList#5]
2021-03-21 22:08:12.135 TRACE 7912 --- [http-nio-8080-exec-8] org.hibernate.type.CollectionType : Created collection wrapper: [com.example.restcontroller.user.entity.User.noticeList#5]
2021-03-21 22:08:12.135 TRACE 7912 --- [http-nio-8080-exec-8] org.hibernate.type.CollectionType : Created collection wrapper: [com.example.restcontroller.user.entity.User.userInterestList#5]
2021-03-21 22:08:12.135 TRACE 7912 --- [http-nio-8080-exec-8] org.hibernate.type.CollectionType : Created collection wrapper: [com.example.restcontroller.user.entity.User.userList#5]
2021-03-21 22:08:12.135 TRACE 7912 --- [http-nio-8080-exec-8] org.hibernate.type.CollectionType : Created collection wrapper: [com.example.restcontroller.user.entity.User.userPointList#5]
2021-03-21 22:08:12.260 INFO 7912 --- [http-nio-8080-exec-8] c.e.r.common.aop.LoginLogger : ############################################################
2021-03-21 22:08:12.260 INFO 7912 --- [http-nio-8080-exec-8] c.e.r.common.aop.LoginLogger : 서비스 호출 전!
2021-03-21 22:08:12.260 INFO 7912 --- [http-nio-8080-exec-8] c.e.r.common.aop.LoginLogger : ############################################################
2021-03-21 22:08:12.261 DEBUG 7912 --- [http-nio-8080-exec-8] org.hibernate.SQL :
insert
into
logs
(id, reg_date, text)
values
(null, ?, ?)
2021-03-21 22:08:12.261 TRACE 7912 --- [http-nio-8080-exec-8] o.h.type.descriptor.sql.BasicBinder : binding parameter [1] as [TIMESTAMP] - [2021-03-21T22:08:12.260944100]
2021-03-21 22:08:12.261 TRACE 7912 --- [http-nio-8080-exec-8] o.h.type.descriptor.sql.BasicBinder : binding parameter [2] as [CLOB] - [
함수명 : class com.example.restcontroller.user.service.UserServiceImpl.login
매개변수 : UserLogin(email=haerong22@gmail.com, password=1234)
리턴값 : User{id=5, email='haerong22@gmail.com', userName='kim', password='$2a$10$eR4wORxmVJVTWrdRYJQl4O26Hrst2i6E8hoA33C8vvL2xZwtCE1oW', phone='010-3333-2225', status=USING, lockYn=false, regDate=2021-03-21T22:08:04.577595, updateDate=null}]
2021-03-21 22:08:12.264 INFO 7912 --- [http-nio-8080-exec-8] c.e.r.common.aop.LoginLogger : ############################################################
2021-03-21 22:08:12.264 INFO 7912 --- [http-nio-8080-exec-8] c.e.r.common.aop.LoginLogger : 서비스 호출 후!
2021-03-21 22:08:12.264 INFO 7912 --- [http-nio-8080-exec-8] c.e.r.common.aop.LoginLogger : ############################################################
2021-03-21 22:08:12.265 INFO 7912 --- [http-nio-8080-exec-8] c.e.r.common.aop.LoginLogger :
함수명 : class com.example.restcontroller.user.service.UserServiceImpl.login
매개변수 : UserLogin(email=haerong22@gmail.com, password=1234)
리턴값 : User{id=5, email='haerong22@gmail.com', userName='kim', password='$2a$10$eR4wORxmVJVTWrdRYJQl4O26Hrst2i6E8hoA33C8vvL2xZwtCE1oW', phone='010-3333-2225', status=USING, lockYn=false, regDate=2021-03-21T22:08:04.577595, updateDate=null}
2021-03-21 22:08:12.265 INFO 7912 --- [http-nio-8080-exec-8] c.e.r.common.aop.LoginLogger : ############################################################
2021-03-21 22:08:12.265 INFO 7912 --- [http-nio-8080-exec-8] c.e.r.common.aop.LoginLogger : 서비스 호출 후!
2021-03-21 22:08:12.265 INFO 7912 --- [http-nio-8080-exec-8] c.e.r.common.aop.LoginLogger : ############################################################
2021-03-21 22:08:12.266 INFO 7912 --- [http-nio-8080-exec-8] c.e.r.common.aop.BoardLogger : ############################################################
2021-03-21 22:08:12.266 INFO 7912 --- [http-nio-8080-exec-8] c.e.r.common.aop.BoardLogger : 컨트롤러 호출 후!
2021-03-21 22:08:12.266 INFO 7912 --- [http-nio-8080-exec-8] c.e.r.common.aop.BoardLogger : ############################################################
2021-03-21 22:08:19.884 INFO 7912 --- [http-nio-8080-exec-9] c.e.r.c.interceptor.CommonInterceptor : #########################################
2021-03-21 22:08:19.884 INFO 7912 --- [http-nio-8080-exec-9] c.e.r.c.interceptor.CommonInterceptor : [interceptor] - preHandler start
2021-03-21 22:08:19.884 INFO 7912 --- [http-nio-8080-exec-9] c.e.r.c.interceptor.CommonInterceptor : #########################################
2021-03-21 22:08:19.884 INFO 7912 --- [http-nio-8080-exec-9] c.e.r.c.interceptor.CommonInterceptor : POST /api/login
2021-03-21 22:08:19.886 INFO 7912 --- [http-nio-8080-exec-9] c.e.r.common.aop.BoardLogger : ############################################################
2021-03-21 22:08:19.886 INFO 7912 --- [http-nio-8080-exec-9] c.e.r.common.aop.BoardLogger : 컨트롤러 호출 전!
2021-03-21 22:08:19.886 INFO 7912 --- [http-nio-8080-exec-9] c.e.r.common.aop.BoardLogger : ############################################################
2021-03-21 22:08:19.886 INFO 7912 --- [http-nio-8080-exec-9] c.e.r.common.aop.LoginLogger : ############################################################
2021-03-21 22:08:19.886 INFO 7912 --- [http-nio-8080-exec-9] c.e.r.common.aop.LoginLogger : 서비스 호출 전!
2021-03-21 22:08:19.886 INFO 7912 --- [http-nio-8080-exec-9] c.e.r.common.aop.LoginLogger : ############################################################
2021-03-21 22:08:19.887 DEBUG 7912 --- [http-nio-8080-exec-9] org.hibernate.SQL :
select
user0_.id as id1_12_,
user0_.email as email2_12_,
user0_.lock_yn as lock_yn3_12_,
user0_.password as password4_12_,
user0_.phone as phone5_12_,
user0_.reg_date as reg_date6_12_,
user0_.status as status7_12_,
user0_.update_date as update_d8_12_,
user0_.user_name as user_nam9_12_
from
user user0_
where
user0_.email=?
2021-03-21 22:08:19.887 TRACE 7912 --- [http-nio-8080-exec-9] o.h.type.descriptor.sql.BasicBinder : binding parameter [1] as [VARCHAR] - [haerong22@gmail.com]
2021-03-21 22:08:19.888 TRACE 7912 --- [http-nio-8080-exec-9] o.h.type.descriptor.sql.BasicExtractor : extracted value ([id1_12_] : [BIGINT]) - [5]
2021-03-21 22:08:19.888 TRACE 7912 --- [http-nio-8080-exec-9] o.h.type.descriptor.sql.BasicExtractor : extracted value ([email2_12_] : [VARCHAR]) - [haerong22@gmail.com]
2021-03-21 22:08:19.888 TRACE 7912 --- [http-nio-8080-exec-9] o.h.type.descriptor.sql.BasicExtractor : extracted value ([lock_yn3_12_] : [BOOLEAN]) - [false]
2021-03-21 22:08:19.888 TRACE 7912 --- [http-nio-8080-exec-9] o.h.type.descriptor.sql.BasicExtractor : extracted value ([password4_12_] : [VARCHAR]) - [$2a$10$eR4wORxmVJVTWrdRYJQl4O26Hrst2i6E8hoA33C8vvL2xZwtCE1oW]
2021-03-21 22:08:19.888 TRACE 7912 --- [http-nio-8080-exec-9] o.h.type.descriptor.sql.BasicExtractor : extracted value ([phone5_12_] : [VARCHAR]) - [010-3333-2225]
2021-03-21 22:08:19.888 TRACE 7912 --- [http-nio-8080-exec-9] o.h.type.descriptor.sql.BasicExtractor : extracted value ([reg_date6_12_] : [TIMESTAMP]) - [2021-03-21T22:08:04.577595]
2021-03-21 22:08:19.888 TRACE 7912 --- [http-nio-8080-exec-9] o.h.type.descriptor.sql.BasicExtractor : extracted value ([status7_12_] : [VARCHAR]) - [USING]
2021-03-21 22:08:19.888 TRACE 7912 --- [http-nio-8080-exec-9] o.h.type.descriptor.sql.BasicExtractor : extracted value ([update_d8_12_] : [TIMESTAMP]) - [null]
2021-03-21 22:08:19.889 TRACE 7912 --- [http-nio-8080-exec-9] o.h.type.descriptor.sql.BasicExtractor : extracted value ([user_nam9_12_] : [VARCHAR]) - [kim]
2021-03-21 22:08:19.889 TRACE 7912 --- [http-nio-8080-exec-9] org.hibernate.type.CollectionType : Created collection wrapper: [com.example.restcontroller.user.entity.User.boardBookmarkList#5]
2021-03-21 22:08:19.889 TRACE 7912 --- [http-nio-8080-exec-9] org.hibernate.type.CollectionType : Created collection wrapper: [com.example.restcontroller.user.entity.User.boardCommentList#5]
2021-03-21 22:08:19.889 TRACE 7912 --- [http-nio-8080-exec-9] org.hibernate.type.CollectionType : Created collection wrapper: [com.example.restcontroller.user.entity.User.boardHitsList#5]
2021-03-21 22:08:19.889 TRACE 7912 --- [http-nio-8080-exec-9] org.hibernate.type.CollectionType : Created collection wrapper: [com.example.restcontroller.user.entity.User.boardLikeList#5]
2021-03-21 22:08:19.889 TRACE 7912 --- [http-nio-8080-exec-9] org.hibernate.type.CollectionType : Created collection wrapper: [com.example.restcontroller.user.entity.User.boardList#5]
2021-03-21 22:08:19.889 TRACE 7912 --- [http-nio-8080-exec-9] org.hibernate.type.CollectionType : Created collection wrapper: [com.example.restcontroller.user.entity.User.boardScrapList#5]
2021-03-21 22:08:19.889 TRACE 7912 --- [http-nio-8080-exec-9] org.hibernate.type.CollectionType : Created collection wrapper: [com.example.restcontroller.user.entity.User.noticeLikeList#5]
2021-03-21 22:08:19.889 TRACE 7912 --- [http-nio-8080-exec-9] org.hibernate.type.CollectionType : Created collection wrapper: [com.example.restcontroller.user.entity.User.noticeList#5]
2021-03-21 22:08:19.889 TRACE 7912 --- [http-nio-8080-exec-9] org.hibernate.type.CollectionType : Created collection wrapper: [com.example.restcontroller.user.entity.User.userInterestList#5]
2021-03-21 22:08:19.889 TRACE 7912 --- [http-nio-8080-exec-9] org.hibernate.type.CollectionType : Created collection wrapper: [com.example.restcontroller.user.entity.User.userList#5]
2021-03-21 22:08:19.889 TRACE 7912 --- [http-nio-8080-exec-9] org.hibernate.type.CollectionType : Created collection wrapper: [com.example.restcontroller.user.entity.User.userPointList#5]
2021-03-21 22:08:20.035 INFO 7912 --- [http-nio-8080-exec-9] c.e.r.common.aop.LoginLogger : ############################################################
2021-03-21 22:08:20.036 INFO 7912 --- [http-nio-8080-exec-9] c.e.r.common.aop.LoginLogger : 서비스 호출 전!
2021-03-21 22:08:20.036 INFO 7912 --- [http-nio-8080-exec-9] c.e.r.common.aop.LoginLogger : ############################################################
2021-03-21 22:08:20.036 DEBUG 7912 --- [http-nio-8080-exec-9] org.hibernate.SQL :
insert
into
logs
(id, reg_date, text)
values
(null, ?, ?)
2021-03-21 22:08:20.037 TRACE 7912 --- [http-nio-8080-exec-9] o.h.type.descriptor.sql.BasicBinder : binding parameter [1] as [TIMESTAMP] - [2021-03-21T22:08:20.036696700]
2021-03-21 22:08:20.037 TRACE 7912 --- [http-nio-8080-exec-9] o.h.type.descriptor.sql.BasicBinder : binding parameter [2] as [CLOB] - [
함수명 : class com.example.restcontroller.user.service.UserServiceImpl.login
매개변수 : UserLogin(email=haerong22@gmail.com, password=1234)
리턴값 : User{id=5, email='haerong22@gmail.com', userName='kim', password='$2a$10$eR4wORxmVJVTWrdRYJQl4O26Hrst2i6E8hoA33C8vvL2xZwtCE1oW', phone='010-3333-2225', status=USING, lockYn=false, regDate=2021-03-21T22:08:04.577595, updateDate=null}]
2021-03-21 22:08:20.038 INFO 7912 --- [http-nio-8080-exec-9] c.e.r.common.aop.LoginLogger : ############################################################
2021-03-21 22:08:20.038 INFO 7912 --- [http-nio-8080-exec-9] c.e.r.common.aop.LoginLogger : 서비스 호출 후!
2021-03-21 22:08:20.038 INFO 7912 --- [http-nio-8080-exec-9] c.e.r.common.aop.LoginLogger : ############################################################
2021-03-21 22:08:20.038 INFO 7912 --- [http-nio-8080-exec-9] c.e.r.common.aop.LoginLogger :
함수명 : class com.example.restcontroller.user.service.UserServiceImpl.login
매개변수 : UserLogin(email=haerong22@gmail.com, password=1234)
리턴값 : User{id=5, email='haerong22@gmail.com', userName='kim', password='$2a$10$eR4wORxmVJVTWrdRYJQl4O26Hrst2i6E8hoA33C8vvL2xZwtCE1oW', phone='010-3333-2225', status=USING, lockYn=false, regDate=2021-03-21T22:08:04.577595, updateDate=null}
2021-03-21 22:08:20.038 INFO 7912 --- [http-nio-8080-exec-9] c.e.r.common.aop.LoginLogger : ############################################################
2021-03-21 22:08:20.038 INFO 7912 --- [http-nio-8080-exec-9] c.e.r.common.aop.LoginLogger : 서비스 호출 후!
2021-03-21 22:08:20.039 INFO 7912 --- [http-nio-8080-exec-9] c.e.r.common.aop.LoginLogger : ############################################################
2021-03-21 22:08:20.040 INFO 7912 --- [http-nio-8080-exec-9] c.e.r.common.aop.BoardLogger : ############################################################
2021-03-21 22:08:20.040 INFO 7912 --- [http-nio-8080-exec-9] c.e.r.common.aop.BoardLogger : 컨트롤러 호출 후!
2021-03-21 22:08:20.040 INFO 7912 --- [http-nio-8080-exec-9] c.e.r.common.aop.BoardLogger : ############################################################
2021-03-21 22:08:32.278 INFO 7912 --- [http-nio-8080-exec-1] c.e.r.common.aop.BoardLogger : ############################################################
2021-03-21 22:08:32.278 INFO 7912 --- [http-nio-8080-exec-1] c.e.r.common.aop.BoardLogger : 컨트롤러 호출 전!
2021-03-21 22:08:32.279 INFO 7912 --- [http-nio-8080-exec-1] c.e.r.common.aop.BoardLogger : ############################################################
2021-03-21 22:08:32.280 INFO 7912 --- [http-nio-8080-exec-1] c.e.r.common.aop.LoginLogger : ############################################################
2021-03-21 22:08:32.280 INFO 7912 --- [http-nio-8080-exec-1] c.e.r.common.aop.LoginLogger : 서비스 호출 전!
2021-03-21 22:08:32.280 INFO 7912 --- [http-nio-8080-exec-1] c.e.r.common.aop.LoginLogger : ############################################################
2021-03-21 22:08:32.281 DEBUG 7912 --- [http-nio-8080-exec-1] org.hibernate.SQL :
select
user0_.id as id1_12_,
user0_.email as email2_12_,
user0_.lock_yn as lock_yn3_12_,
user0_.password as password4_12_,
user0_.phone as phone5_12_,
user0_.reg_date as reg_date6_12_,
user0_.status as status7_12_,
user0_.update_date as update_d8_12_,
user0_.user_name as user_nam9_12_
from
user user0_
where
user0_.email=?
2021-03-21 22:08:32.281 TRACE 7912 --- [http-nio-8080-exec-1] o.h.type.descriptor.sql.BasicBinder : binding parameter [1] as [VARCHAR] - [haerong22@gmail.com]
2021-03-21 22:08:32.282 TRACE 7912 --- [http-nio-8080-exec-1] o.h.type.descriptor.sql.BasicExtractor : extracted value ([id1_12_] : [BIGINT]) - [5]
2021-03-21 22:08:32.282 TRACE 7912 --- [http-nio-8080-exec-1] o.h.type.descriptor.sql.BasicExtractor : extracted value ([email2_12_] : [VARCHAR]) - [haerong22@gmail.com]
2021-03-21 22:08:32.282 TRACE 7912 --- [http-nio-8080-exec-1] o.h.type.descriptor.sql.BasicExtractor : extracted value ([lock_yn3_12_] : [BOOLEAN]) - [false]
2021-03-21 22:08:32.282 TRACE 7912 --- [http-nio-8080-exec-1] o.h.type.descriptor.sql.BasicExtractor : extracted value ([password4_12_] : [VARCHAR]) - [$2a$10$eR4wORxmVJVTWrdRYJQl4O26Hrst2i6E8hoA33C8vvL2xZwtCE1oW]
2021-03-21 22:08:32.282 TRACE 7912 --- [http-nio-8080-exec-1] o.h.type.descriptor.sql.BasicExtractor : extracted value ([phone5_12_] : [VARCHAR]) - [010-3333-2225]
2021-03-21 22:08:32.282 TRACE 7912 --- [http-nio-8080-exec-1] o.h.type.descriptor.sql.BasicExtractor : extracted value ([reg_date6_12_] : [TIMESTAMP]) - [2021-03-21T22:08:04.577595]
2021-03-21 22:08:32.282 TRACE 7912 --- [http-nio-8080-exec-1] o.h.type.descriptor.sql.BasicExtractor : extracted value ([status7_12_] : [VARCHAR]) - [USING]
2021-03-21 22:08:32.282 TRACE 7912 --- [http-nio-8080-exec-1] o.h.type.descriptor.sql.BasicExtractor : extracted value ([update_d8_12_] : [TIMESTAMP]) - [null]
2021-03-21 22:08:32.282 TRACE 7912 --- [http-nio-8080-exec-1] o.h.type.descriptor.sql.BasicExtractor : extracted value ([user_nam9_12_] : [VARCHAR]) - [kim]
2021-03-21 22:08:32.283 TRACE 7912 --- [http-nio-8080-exec-1] org.hibernate.type.CollectionType : Created collection wrapper: [com.example.restcontroller.user.entity.User.boardBookmarkList#5]
2021-03-21 22:08:32.283 TRACE 7912 --- [http-nio-8080-exec-1] org.hibernate.type.CollectionType : Created collection wrapper: [com.example.restcontroller.user.entity.User.boardCommentList#5]
2021-03-21 22:08:32.283 TRACE 7912 --- [http-nio-8080-exec-1] org.hibernate.type.CollectionType : Created collection wrapper: [com.example.restcontroller.user.entity.User.boardHitsList#5]
2021-03-21 22:08:32.283 TRACE 7912 --- [http-nio-8080-exec-1] org.hibernate.type.CollectionType : Created collection wrapper: [com.example.restcontroller.user.entity.User.boardLikeList#5]
2021-03-21 22:08:32.283 TRACE 7912 --- [http-nio-8080-exec-1] org.hibernate.type.CollectionType : Created collection wrapper: [com.example.restcontroller.user.entity.User.boardList#5]
2021-03-21 22:08:32.283 TRACE 7912 --- [http-nio-8080-exec-1] org.hibernate.type.CollectionType : Created collection wrapper: [com.example.restcontroller.user.entity.User.boardScrapList#5]
2021-03-21 22:08:32.283 TRACE 7912 --- [http-nio-8080-exec-1] org.hibernate.type.CollectionType : Created collection wrapper: [com.example.restcontroller.user.entity.User.noticeLikeList#5]
2021-03-21 22:08:32.283 TRACE 7912 --- [http-nio-8080-exec-1] org.hibernate.type.CollectionType : Created collection wrapper: [com.example.restcontroller.user.entity.User.noticeList#5]
2021-03-21 22:08:32.283 TRACE 7912 --- [http-nio-8080-exec-1] org.hibernate.type.CollectionType : Created collection wrapper: [com.example.restcontroller.user.entity.User.userInterestList#5]
2021-03-21 22:08:32.283 TRACE 7912 --- [http-nio-8080-exec-1] org.hibernate.type.CollectionType : Created collection wrapper: [com.example.restcontroller.user.entity.User.userList#5]
2021-03-21 22:08:32.283 TRACE 7912 --- [http-nio-8080-exec-1] org.hibernate.type.CollectionType : Created collection wrapper: [com.example.restcontroller.user.entity.User.userPointList#5]
2021-03-21 22:08:32.284 DEBUG 7912 --- [http-nio-8080-exec-1] org.hibernate.SQL :
select
boardtype0_.id as id1_7_0_,
boardtype0_.board_name as board_na2_7_0_,
boardtype0_.reg_date as reg_date3_7_0_,
boardtype0_.update_date as update_d4_7_0_,
boardtype0_.using_yn as using_yn5_7_0_
from
board_type boardtype0_
where
boardtype0_.id=?
2021-03-21 22:08:32.284 TRACE 7912 --- [http-nio-8080-exec-1] o.h.type.descriptor.sql.BasicBinder : binding parameter [1] as [BIGINT] - [1]
2021-03-21 22:08:32.284 TRACE 7912 --- [http-nio-8080-exec-1] o.h.type.descriptor.sql.BasicExtractor : extracted value ([board_na2_7_0_] : [VARCHAR]) - [게시판1]
2021-03-21 22:08:32.285 TRACE 7912 --- [http-nio-8080-exec-1] o.h.type.descriptor.sql.BasicExtractor : extracted value ([reg_date3_7_0_] : [TIMESTAMP]) - [2021-03-21T22:02:49.092308]
2021-03-21 22:08:32.285 TRACE 7912 --- [http-nio-8080-exec-1] o.h.type.descriptor.sql.BasicExtractor : extracted value ([update_d4_7_0_] : [TIMESTAMP]) - [null]
2021-03-21 22:08:32.285 TRACE 7912 --- [http-nio-8080-exec-1] o.h.type.descriptor.sql.BasicExtractor : extracted value ([using_yn5_7_0_] : [BOOLEAN]) - [true]
2021-03-21 22:08:32.285 TRACE 7912 --- [http-nio-8080-exec-1] org.hibernate.type.CollectionType : Created collection wrapper: [com.example.restcontroller.board.entity.BoardType.boardList#1]
2021-03-21 22:08:32.285 DEBUG 7912 --- [http-nio-8080-exec-1] org.hibernate.SQL :
insert
into
board
(id, board_type_id, content, publish_end_date, publish_start_date, reg_date, title, top_yn, user_id)
values
(null, ?, ?, ?, ?, ?, ?, ?, ?)
2021-03-21 22:08:32.286 TRACE 7912 --- [http-nio-8080-exec-1] o.h.type.descriptor.sql.BasicBinder : binding parameter [1] as [BIGINT] - [1]
2021-03-21 22:08:32.286 TRACE 7912 --- [http-nio-8080-exec-1] o.h.type.descriptor.sql.BasicBinder : binding parameter [2] as [VARCHAR] - [내용 추가하기]
2021-03-21 22:08:32.286 TRACE 7912 --- [http-nio-8080-exec-1] o.h.type.descriptor.sql.BasicBinder : binding parameter [3] as [DATE] - [null]
2021-03-21 22:08:32.286 TRACE 7912 --- [http-nio-8080-exec-1] o.h.type.descriptor.sql.BasicBinder : binding parameter [4] as [DATE] - [null]
2021-03-21 22:08:32.286 TRACE 7912 --- [http-nio-8080-exec-1] o.h.type.descriptor.sql.BasicBinder : binding parameter [5] as [TIMESTAMP] - [2021-03-21T22:08:32.285397400]
2021-03-21 22:08:32.286 TRACE 7912 --- [http-nio-8080-exec-1] o.h.type.descriptor.sql.BasicBinder : binding parameter [6] as [VARCHAR] - [제목 추가하기]
2021-03-21 22:08:32.286 TRACE 7912 --- [http-nio-8080-exec-1] o.h.type.descriptor.sql.BasicBinder : binding parameter [7] as [BOOLEAN] - [false]
2021-03-21 22:08:32.286 TRACE 7912 --- [http-nio-8080-exec-1] o.h.type.descriptor.sql.BasicBinder : binding parameter [8] as [BIGINT] - [5]
2021-03-21 22:08:32.288 DEBUG 7912 --- [http-nio-8080-exec-1] org.hibernate.SQL :
select
mailtempla0_.id as id1_9_,
mailtempla0_.contents as contents2_9_,
mailtempla0_.reg_date as reg_date3_9_,
mailtempla0_.send_email as send_ema4_9_,
mailtempla0_.send_user_name as send_use5_9_,
mailtempla0_.template_id as template6_9_,
mailtempla0_.title as title7_9_
from
mail_template mailtempla0_
where
mailtempla0_.template_id=?
2021-03-21 22:08:32.288 TRACE 7912 --- [http-nio-8080-exec-1] o.h.type.descriptor.sql.BasicBinder : binding parameter [1] as [VARCHAR] - [BOARD_ADD]
2021-03-21 22:08:32.289 TRACE 7912 --- [http-nio-8080-exec-1] o.h.type.descriptor.sql.BasicExtractor : extracted value ([id1_9_] : [BIGINT]) - [2]
2021-03-21 22:08:32.289 TRACE 7912 --- [http-nio-8080-exec-1] o.h.type.descriptor.sql.BasicExtractor : extracted value ([contents2_9_] : [VARCHAR]) - [<div><p>제목: {BOARD_TITLE}</p><p>내용</p><div>{BOARD_CONTENTS}</div></div>]
2021-03-21 22:08:32.289 TRACE 7912 --- [http-nio-8080-exec-1] o.h.type.descriptor.sql.BasicExtractor : extracted value ([reg_date3_9_] : [TIMESTAMP]) - [2021-03-21T22:02:49.095758]
2021-03-21 22:08:32.289 TRACE 7912 --- [http-nio-8080-exec-1] o.h.type.descriptor.sql.BasicExtractor : extracted value ([send_ema4_9_] : [VARCHAR]) - [test.email.12588@gmail.com]
2021-03-21 22:08:32.289 TRACE 7912 --- [http-nio-8080-exec-1] o.h.type.descriptor.sql.BasicExtractor : extracted value ([send_use5_9_] : [VARCHAR]) - [관리자]
2021-03-21 22:08:32.289 TRACE 7912 --- [http-nio-8080-exec-1] o.h.type.descriptor.sql.BasicExtractor : extracted value ([template6_9_] : [VARCHAR]) - [BOARD_ADD]
2021-03-21 22:08:32.289 TRACE 7912 --- [http-nio-8080-exec-1] o.h.type.descriptor.sql.BasicExtractor : extracted value ([title7_9_] : [VARCHAR]) - [{USER_NAME}님이 글을 게시하였습니다.]
2021-03-21 22:08:35.857 INFO 7912 --- [http-nio-8080-exec-1] c.e.r.common.aop.LoginLogger : ############################################################
2021-03-21 22:08:35.857 INFO 7912 --- [http-nio-8080-exec-1] c.e.r.common.aop.LoginLogger : 서비스 호출 후!
2021-03-21 22:08:35.858 INFO 7912 --- [http-nio-8080-exec-1] c.e.r.common.aop.LoginLogger : ############################################################
2021-03-21 22:08:35.858 INFO 7912 --- [http-nio-8080-exec-1] c.e.r.common.aop.BoardLogger : ############################################################
2021-03-21 22:08:35.858 INFO 7912 --- [http-nio-8080-exec-1] c.e.r.common.aop.BoardLogger : 컨트롤러 호출 후!
2021-03-21 22:08:35.858 INFO 7912 --- [http-nio-8080-exec-1] c.e.r.common.aop.BoardLogger : ############################################################

View File

@@ -210,4 +210,14 @@ public class ApiBoardController {
ServiceResult result = boardService.add(email, boardInput); ServiceResult result = boardService.add(email, boardInput);
return ResponseResult.result(result); return ResponseResult.result(result);
} }
@PostMapping("/api/board/email")
public ResponseEntity<?> chapter5_4(@RequestBody BoardInput boardInput,
@RequestHeader("TOKEN") String token) {
String email = JWTUtils.getIssuer(token);
ServiceResult result = boardService.add(email, boardInput);
return ResponseResult.result(result);
}
} }

View File

@@ -4,7 +4,10 @@ import com.example.restcontroller.board.entity.*;
import com.example.restcontroller.board.exception.BoardTypeNotFoundException; import com.example.restcontroller.board.exception.BoardTypeNotFoundException;
import com.example.restcontroller.board.model.*; import com.example.restcontroller.board.model.*;
import com.example.restcontroller.board.repository.*; import com.example.restcontroller.board.repository.*;
import com.example.restcontroller.common.MailComponent;
import com.example.restcontroller.common.exception.BizException; import com.example.restcontroller.common.exception.BizException;
import com.example.restcontroller.mail.entity.MailTemplate;
import com.example.restcontroller.mail.repository.MailTemplateRepository;
import com.example.restcontroller.user.entity.User; import com.example.restcontroller.user.entity.User;
import com.example.restcontroller.user.repository.UserRepository; import com.example.restcontroller.user.repository.UserRepository;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
@@ -29,8 +32,12 @@ public class BoardServiceImpl implements BoardService {
private final BoardScrapRepository boardScrapRepository; private final BoardScrapRepository boardScrapRepository;
private final BoardBookmarkRepository boardBookmarkRepository; private final BoardBookmarkRepository boardBookmarkRepository;
private final BoardCommentRepository boardCommentRepository; private final BoardCommentRepository boardCommentRepository;
private final UserRepository userRepository; private final UserRepository userRepository;
private final MailTemplateRepository mailTemplateRepository;
private final MailComponent mailComponent;
@Transactional @Transactional
@Override @Override
public ServiceResult addBoard(BoardTypeInput boardTypeInput) { public ServiceResult addBoard(BoardTypeInput boardTypeInput) {
@@ -403,6 +410,18 @@ public class BoardServiceImpl implements BoardService {
boardRepository.save(board); boardRepository.save(board);
// 이메일 전송
Optional<MailTemplate> optionalMailTemplate = mailTemplateRepository.findByTemplateId("BOARD_ADD");
optionalMailTemplate.ifPresent((e) -> {
String fromEmail = e.getSendEmail();
String fromUserName = e.getSendUserName();
String title = e.getTitle().replaceAll("\\{USER_NAME\\}", userEntity.getUserName());
String contents = e.getContents().replaceAll("\\{BOARD_TITLE\\}", board.getTitle())
.replaceAll("\\{BOARD_CONTENTS\\}", board.getContent());
mailComponent.send(fromEmail, fromUserName, userEntity.getEmail(), userEntity.getUserName(), title, contents);
});
return ServiceResult.success(); return ServiceResult.success();
} }
} }

View File

@@ -1,6 +1,7 @@
package com.example.restcontroller.common.interceptor; package com.example.restcontroller.common.interceptor;
import com.auth0.jwt.exceptions.JWTVerificationException; import com.auth0.jwt.exceptions.JWTVerificationException;
import com.auth0.jwt.exceptions.SignatureVerificationException;
import com.example.restcontroller.common.exception.AuthFailException; import com.example.restcontroller.common.exception.AuthFailException;
import com.example.restcontroller.common.model.ResponseResult; import com.example.restcontroller.common.model.ResponseResult;
import com.example.restcontroller.util.JWTUtils; import com.example.restcontroller.util.JWTUtils;

View File

@@ -0,0 +1,36 @@
package com.example.restcontroller.mail.entity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.time.LocalDateTime;
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Data
@Entity
public class MailTemplate {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private long id;
private String templateId;
private String title;
private String contents;
private String sendEmail;
private String sendUserName;
private LocalDateTime regDate;
}

View File

@@ -0,0 +1,15 @@
package com.example.restcontroller.mail.repository;
import com.example.restcontroller.mail.entity.MailTemplate;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import java.util.Optional;
@Repository
public interface MailTemplateRepository extends JpaRepository<MailTemplate, Long> {
Optional<MailTemplate> findByTemplateId(String templateId);
}

View File

@@ -6,7 +6,6 @@ spring:
datasource: datasource:
url: jdbc:h2:mem:testDb url: jdbc:h2:mem:testDb
#url: jdbc:h2:file:/Users/parkkyutae/Documents/sources/github/fastcampus-demo-01/record-example/sample1/backofficeDb
driver-class-name: org.h2.Driver driver-class-name: org.h2.Driver
username: sa username: sa
password: password:

View File

@@ -55,4 +55,15 @@ values
('게시글 1의 댓글1', now(), 1, 1), ('게시글 1의 댓글1', now(), 1, 1),
('게시글 1의 댓글2', now(), 1, 2), ('게시글 1의 댓글2', now(), 1, 2),
('게시글 2의 댓글1', now(), 2, 1), ('게시글 2의 댓글1', now(), 2, 1),
('게시글 2의 댓글2', now(), 2, 3); ('게시글 2의 댓글2', now(), 2, 3);
INSERT INTO MAIL_TEMPLATE(TEMPLATE_ID, TITLE, CONTENTS, SEND_EMAIL, SEND_USER_NAME, REG_DATE)
VALUES
('USER_RESET_PASSWORD',
'{USER_NAME}님의 비밀번호 초기화 요청입니다.',
'<div><p>{USER_NAME}님 안녕하세요.</p><p>아래 링크를 클릭하여, 비밀번호를 초기화해 주세요.</p><p><a href="{SERVER_URL}/reset?key={RESET_PASSWORD_KEY}">초기화</a></p></div>',
'test.email.12588@gmail.com', '관리자', now()),
('BOARD_ADD',
'{USER_NAME}님이 글을 게시하였습니다.',
'<div><p>제목: {BOARD_TITLE}</p><p>내용</p><div>{BOARD_CONTENTS}</div></div>',
'test.email.12588@gmail.com', '관리자', now());

View File

@@ -0,0 +1,16 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>{USER_NAME}님이 글을 게시하였습니다.</title>
</head>
<body>
<div>
<p>제목: {BOARD_TITLE}</p>
<p>내용</p>
<div>
{BOARD_CONTENTS}
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>
{USER_NAME}님의 비밀번호 초기화 요청입니다.
</title>
</head>
<body>
<div>
<p>{USER_NAME}님 안녕하세요.</p>
<p>아래 링크를 클릭하여, 비밀번호를 초기화해 주세요.</p>
<p>
<a href="{SERVER_URL}/reset?key={RESET_PASSWORD_KEY}">초기화</a>
</p>
</div>
</body>
</html>