Skip to content
Snippets Groups Projects
Commit 0a33701d authored by Jerry Xu's avatar Jerry Xu
Browse files

cart backend

parent 28486392
No related branches found
No related tags found
No related merge requests found
Showing
with 309 additions and 509 deletions
2022-02-06 17:41:11.463 INFO 19039 --- [main] c.e.freshonline.FreshOnlineApplication : Starting FreshOnlineApplication using Java 11.0.12 on fanzekundeMacBook-Pro.local with PID 19039 (/Users/fanzekun/IdeaProjects/FreshOnline/target/classes started by fanzekun in /Users/fanzekun/IdeaProjects/FreshOnline)
2022-02-06 17:41:11.466 INFO 19039 --- [main] c.e.freshonline.FreshOnlineApplication : No active profile set, falling back to default profiles: default
2022-02-06 17:41:11.834 INFO 19039 --- [main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2022-02-06 17:41:11.835 INFO 19039 --- [main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.56]
2022-02-06 17:41:11.860 INFO 19039 --- [main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2022-02-06 17:41:12.259 INFO 19039 --- [main] c.e.freshonline.FreshOnlineApplication : Started FreshOnlineApplication in 0.946 seconds (JVM running for 1.414)
2022-02-06 18:18:59.405 INFO 19039 --- [SpringApplicationShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-0} closing ...
2022-02-06 18:19:01.810 INFO 20134 --- [main] c.e.freshonline.FreshOnlineApplication : Starting FreshOnlineApplication using Java 11.0.12 on fanzekundeMacBook-Pro.local with PID 20134 (/Users/fanzekun/IdeaProjects/FreshOnline/target/classes started by fanzekun in /Users/fanzekun/IdeaProjects/FreshOnline)
2022-02-06 18:19:01.811 INFO 20134 --- [main] c.e.freshonline.FreshOnlineApplication : No active profile set, falling back to default profiles: default
2022-02-06 18:19:02.303 INFO 20134 --- [main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2022-02-06 18:19:02.303 INFO 20134 --- [main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.56]
2022-02-06 18:19:02.334 INFO 20134 --- [main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2022-02-06 18:19:02.781 INFO 20134 --- [main] c.e.freshonline.FreshOnlineApplication : Started FreshOnlineApplication in 1.121 seconds (JVM running for 1.975)
2022-02-06 18:19:06.004 INFO 20134 --- [SpringApplicationShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-0} closing ...
2022-02-06 18:19:46.897 INFO 20147 --- [main] c.e.freshonline.FreshOnlineApplication : Starting FreshOnlineApplication using Java 11.0.12 on fanzekundeMacBook-Pro.local with PID 20147 (/Users/fanzekun/IdeaProjects/FreshOnline/target/classes started by fanzekun in /Users/fanzekun/IdeaProjects/FreshOnline)
2022-02-06 18:19:46.898 INFO 20147 --- [main] c.e.freshonline.FreshOnlineApplication : No active profile set, falling back to default profiles: default
2022-02-06 18:19:47.312 INFO 20147 --- [main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2022-02-06 18:19:47.313 INFO 20147 --- [main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.56]
2022-02-06 18:19:47.348 INFO 20147 --- [main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2022-02-06 18:19:47.755 INFO 20147 --- [main] c.e.freshonline.FreshOnlineApplication : Started FreshOnlineApplication in 1.022 seconds (JVM running for 1.417)
2022-02-06 18:23:20.250 INFO 20147 --- [http-nio-8080-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring DispatcherServlet 'dispatcherServlet'
2022-02-06 18:24:45.392 INFO 20147 --- [http-nio-8080-exec-2] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} inited
2022-02-06 18:24:45.494 ERROR 20147 --- [http-nio-8080-exec-2] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.dao.DataIntegrityViolationException:
### Error updating database. Cause: java.sql.SQLException: Field 'token' doesn't have a default value
### The error may exist in file [/Users/fanzekun/IdeaProjects/FreshOnline/target/classes/mapper/UserMapper.xml]
### The error may involve com.example.freshonline.dao.UserMapper.insertSelective-Inline
### The error occurred while setting parameters
### SQL: insert into user ( name, password, email, type ) values ( ?, ?, ?, ? )
### Cause: java.sql.SQLException: Field 'token' doesn't have a default value
; Field 'token' doesn't have a default value; nested exception is java.sql.SQLException: Field 'token' doesn't have a default value] with root cause
java.sql.SQLException: Field 'token' doesn't have a default value
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:129) ~[mysql-connector-java-8.0.27.jar:8.0.27]
at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:122) ~[mysql-connector-java-8.0.27.jar:8.0.27]
at com.mysql.cj.jdbc.ClientPreparedStatement.executeInternal(ClientPreparedStatement.java:953) ~[mysql-connector-java-8.0.27.jar:8.0.27]
at com.mysql.cj.jdbc.ClientPreparedStatement.execute(ClientPreparedStatement.java:371) ~[mysql-connector-java-8.0.27.jar:8.0.27]
at com.alibaba.druid.pool.DruidPooledPreparedStatement.execute(DruidPooledPreparedStatement.java:497) ~[druid-1.2.6.jar:1.2.6]
at org.apache.ibatis.executor.statement.PreparedStatementHandler.update(PreparedStatementHandler.java:47) ~[mybatis-3.5.9.jar:3.5.9]
at org.apache.ibatis.executor.statement.RoutingStatementHandler.update(RoutingStatementHandler.java:74) ~[mybatis-3.5.9.jar:3.5.9]
at org.apache.ibatis.executor.SimpleExecutor.doUpdate(SimpleExecutor.java:50) ~[mybatis-3.5.9.jar:3.5.9]
at org.apache.ibatis.executor.BaseExecutor.update(BaseExecutor.java:117) ~[mybatis-3.5.9.jar:3.5.9]
at org.apache.ibatis.executor.CachingExecutor.update(CachingExecutor.java:76) ~[mybatis-3.5.9.jar:3.5.9]
at org.apache.ibatis.session.defaults.DefaultSqlSession.update(DefaultSqlSession.java:194) ~[mybatis-3.5.9.jar:3.5.9]
at org.apache.ibatis.session.defaults.DefaultSqlSession.insert(DefaultSqlSession.java:181) ~[mybatis-3.5.9.jar:3.5.9]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:na]
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na]
at java.base/java.lang.reflect.Method.invoke(Method.java:566) ~[na:na]
at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:427) ~[mybatis-spring-2.0.6.jar:2.0.6]
at com.sun.proxy.$Proxy58.insert(Unknown Source) ~[na:na]
at org.mybatis.spring.SqlSessionTemplate.insert(SqlSessionTemplate.java:272) ~[mybatis-spring-2.0.6.jar:2.0.6]
at org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:62) ~[mybatis-3.5.9.jar:3.5.9]
at org.apache.ibatis.binding.MapperProxy$PlainMethodInvoker.invoke(MapperProxy.java:145) ~[mybatis-3.5.9.jar:3.5.9]
at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:86) ~[mybatis-3.5.9.jar:3.5.9]
at com.sun.proxy.$Proxy64.insertSelective(Unknown Source) ~[na:na]
at com.example.freshonline.service.UserService.register(UserService.java:40) ~[classes/:na]
at com.example.freshonline.controller.UserController.register(UserController.java:32) ~[classes/:na]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:na]
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na]
at java.base/java.lang.reflect.Method.invoke(Method.java:566) ~[na:na]
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205) ~[spring-web-5.3.14.jar:5.3.14]
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:150) ~[spring-web-5.3.14.jar:5.3.14]
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:117) ~[spring-webmvc-5.3.14.jar:5.3.14]
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895) ~[spring-webmvc-5.3.14.jar:5.3.14]
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808) ~[spring-webmvc-5.3.14.jar:5.3.14]
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) ~[spring-webmvc-5.3.14.jar:5.3.14]
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1067) ~[spring-webmvc-5.3.14.jar:5.3.14]
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:963) ~[spring-webmvc-5.3.14.jar:5.3.14]
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006) ~[spring-webmvc-5.3.14.jar:5.3.14]
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909) ~[spring-webmvc-5.3.14.jar:5.3.14]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:681) ~[tomcat-embed-core-9.0.56.jar:4.0.FR]
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883) ~[spring-webmvc-5.3.14.jar:5.3.14]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:764) ~[tomcat-embed-core-9.0.56.jar:4.0.FR]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) ~[tomcat-embed-websocket-9.0.56.jar:9.0.56]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100) ~[spring-web-5.3.14.jar:5.3.14]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117) ~[spring-web-5.3.14.jar:5.3.14]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93) ~[spring-web-5.3.14.jar:5.3.14]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117) ~[spring-web-5.3.14.jar:5.3.14]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201) ~[spring-web-5.3.14.jar:5.3.14]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117) ~[spring-web-5.3.14.jar:5.3.14]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:540) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:357) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:382) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:895) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1732) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at java.base/java.lang.Thread.run(Thread.java:829) ~[na:na]
2022-02-06 18:29:26.562 INFO 20147 --- [SpringApplicationShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closing ...
2022-02-06 18:29:26.567 INFO 20147 --- [SpringApplicationShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closed
2022-02-06 18:30:04.377 INFO 20303 --- [main] c.e.freshonline.FreshOnlineApplication : Starting FreshOnlineApplication using Java 11.0.12 on fanzekundeMacBook-Pro.local with PID 20303 (/Users/fanzekun/IdeaProjects/FreshOnline/target/classes started by fanzekun in /Users/fanzekun/IdeaProjects/FreshOnline)
2022-02-06 18:30:04.377 INFO 20303 --- [main] c.e.freshonline.FreshOnlineApplication : No active profile set, falling back to default profiles: default
2022-02-06 18:30:04.778 INFO 20303 --- [main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2022-02-06 18:30:04.778 INFO 20303 --- [main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.56]
2022-02-06 18:30:04.806 INFO 20303 --- [main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2022-02-06 18:30:05.232 INFO 20303 --- [main] c.e.freshonline.FreshOnlineApplication : Started FreshOnlineApplication in 0.994 seconds (JVM running for 1.385)
2022-02-06 18:30:07.349 INFO 20303 --- [SpringApplicationShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-0} closing ...
2022-02-06 18:30:15.870 INFO 20315 --- [main] c.e.freshonline.FreshOnlineApplication : Starting FreshOnlineApplication using Java 11.0.12 on fanzekundeMacBook-Pro.local with PID 20315 (/Users/fanzekun/IdeaProjects/FreshOnline/target/classes started by fanzekun in /Users/fanzekun/IdeaProjects/FreshOnline)
2022-02-06 18:30:15.871 INFO 20315 --- [main] c.e.freshonline.FreshOnlineApplication : No active profile set, falling back to default profiles: default
2022-02-06 18:30:16.267 INFO 20315 --- [main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2022-02-06 18:30:16.268 INFO 20315 --- [main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.56]
2022-02-06 18:30:16.290 INFO 20315 --- [main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2022-02-06 18:30:16.659 INFO 20315 --- [main] c.e.freshonline.FreshOnlineApplication : Started FreshOnlineApplication in 0.976 seconds (JVM running for 1.47)
2022-02-06 18:32:44.646 INFO 20315 --- [SpringApplicationShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-0} closing ...
2022-02-06 18:32:57.572 INFO 21230 --- [main] c.e.freshonline.FreshOnlineApplication : Starting FreshOnlineApplication using Java 11.0.12 on fanzekundeMacBook-Pro.local with PID 21230 (/Users/fanzekun/IdeaProjects/FreshOnline/target/classes started by fanzekun in /Users/fanzekun/IdeaProjects/FreshOnline)
2022-02-06 18:32:57.573 INFO 21230 --- [main] c.e.freshonline.FreshOnlineApplication : No active profile set, falling back to default profiles: default
2022-02-06 18:32:57.972 INFO 21230 --- [main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2022-02-06 18:32:57.973 INFO 21230 --- [main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.56]
2022-02-06 18:32:58.002 INFO 21230 --- [main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2022-02-06 18:32:58.402 INFO 21230 --- [main] c.e.freshonline.FreshOnlineApplication : Started FreshOnlineApplication in 0.995 seconds (JVM running for 1.344)
2022-02-06 18:33:37.281 INFO 21230 --- [http-nio-8080-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring DispatcherServlet 'dispatcherServlet'
2022-02-06 18:34:18.608 INFO 21230 --- [http-nio-8080-exec-1] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} inited
2022-02-06 18:34:37.103 ERROR 21230 --- [http-nio-8080-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.dao.DataIntegrityViolationException:
### Error updating database. Cause: java.sql.SQLException: Field 'token' doesn't have a default value
### The error may exist in file [/Users/fanzekun/IdeaProjects/FreshOnline/target/classes/mapper/UserMapper.xml]
### The error may involve com.example.freshonline.dao.UserMapper.insertSelective-Inline
### The error occurred while setting parameters
### SQL: insert into user ( name, password, email, type ) values ( ?, ?, ?, ? )
### Cause: java.sql.SQLException: Field 'token' doesn't have a default value
; Field 'token' doesn't have a default value; nested exception is java.sql.SQLException: Field 'token' doesn't have a default value] with root cause
java.sql.SQLException: Field 'token' doesn't have a default value
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:129) ~[mysql-connector-java-8.0.27.jar:8.0.27]
at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:122) ~[mysql-connector-java-8.0.27.jar:8.0.27]
at com.mysql.cj.jdbc.ClientPreparedStatement.executeInternal(ClientPreparedStatement.java:953) ~[mysql-connector-java-8.0.27.jar:8.0.27]
at com.mysql.cj.jdbc.ClientPreparedStatement.execute(ClientPreparedStatement.java:371) ~[mysql-connector-java-8.0.27.jar:8.0.27]
at com.alibaba.druid.pool.DruidPooledPreparedStatement.execute(DruidPooledPreparedStatement.java:497) ~[druid-1.2.6.jar:1.2.6]
at org.apache.ibatis.executor.statement.PreparedStatementHandler.update(PreparedStatementHandler.java:47) ~[mybatis-3.5.9.jar:3.5.9]
at org.apache.ibatis.executor.statement.RoutingStatementHandler.update(RoutingStatementHandler.java:74) ~[mybatis-3.5.9.jar:3.5.9]
at org.apache.ibatis.executor.SimpleExecutor.doUpdate(SimpleExecutor.java:50) ~[mybatis-3.5.9.jar:3.5.9]
at org.apache.ibatis.executor.BaseExecutor.update(BaseExecutor.java:117) ~[mybatis-3.5.9.jar:3.5.9]
at org.apache.ibatis.executor.CachingExecutor.update(CachingExecutor.java:76) ~[mybatis-3.5.9.jar:3.5.9]
at org.apache.ibatis.session.defaults.DefaultSqlSession.update(DefaultSqlSession.java:194) ~[mybatis-3.5.9.jar:3.5.9]
at org.apache.ibatis.session.defaults.DefaultSqlSession.insert(DefaultSqlSession.java:181) ~[mybatis-3.5.9.jar:3.5.9]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:na]
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na]
at java.base/java.lang.reflect.Method.invoke(Method.java:566) ~[na:na]
at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:427) ~[mybatis-spring-2.0.6.jar:2.0.6]
at com.sun.proxy.$Proxy58.insert(Unknown Source) ~[na:na]
at org.mybatis.spring.SqlSessionTemplate.insert(SqlSessionTemplate.java:272) ~[mybatis-spring-2.0.6.jar:2.0.6]
at org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:62) ~[mybatis-3.5.9.jar:3.5.9]
at org.apache.ibatis.binding.MapperProxy$PlainMethodInvoker.invoke(MapperProxy.java:145) ~[mybatis-3.5.9.jar:3.5.9]
at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:86) ~[mybatis-3.5.9.jar:3.5.9]
at com.sun.proxy.$Proxy64.insertSelective(Unknown Source) ~[na:na]
at com.example.freshonline.service.UserService.register(UserService.java:40) ~[classes/:na]
at com.example.freshonline.controller.UserController.register(UserController.java:32) ~[classes/:na]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:na]
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na]
at java.base/java.lang.reflect.Method.invoke(Method.java:566) ~[na:na]
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205) ~[spring-web-5.3.14.jar:5.3.14]
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:150) ~[spring-web-5.3.14.jar:5.3.14]
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:117) ~[spring-webmvc-5.3.14.jar:5.3.14]
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895) ~[spring-webmvc-5.3.14.jar:5.3.14]
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808) ~[spring-webmvc-5.3.14.jar:5.3.14]
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) ~[spring-webmvc-5.3.14.jar:5.3.14]
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1067) ~[spring-webmvc-5.3.14.jar:5.3.14]
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:963) ~[spring-webmvc-5.3.14.jar:5.3.14]
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006) ~[spring-webmvc-5.3.14.jar:5.3.14]
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909) ~[spring-webmvc-5.3.14.jar:5.3.14]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:681) ~[tomcat-embed-core-9.0.56.jar:4.0.FR]
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883) ~[spring-webmvc-5.3.14.jar:5.3.14]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:764) ~[tomcat-embed-core-9.0.56.jar:4.0.FR]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) ~[tomcat-embed-websocket-9.0.56.jar:9.0.56]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100) ~[spring-web-5.3.14.jar:5.3.14]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117) ~[spring-web-5.3.14.jar:5.3.14]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93) ~[spring-web-5.3.14.jar:5.3.14]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117) ~[spring-web-5.3.14.jar:5.3.14]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201) ~[spring-web-5.3.14.jar:5.3.14]
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117) ~[spring-web-5.3.14.jar:5.3.14]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:540) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:357) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:382) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:895) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1732) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at java.base/java.lang.Thread.run(Thread.java:829) ~[na:na]
2022-02-06 18:36:59.839 INFO 21230 --- [SpringApplicationShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closing ...
2022-02-06 18:36:59.843 INFO 21230 --- [SpringApplicationShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closed
2022-02-06 18:43:45.930 INFO 21387 --- [main] c.e.freshonline.FreshOnlineApplication : Starting FreshOnlineApplication using Java 11.0.12 on fanzekundeMacBook-Pro.local with PID 21387 (/Users/fanzekun/IdeaProjects/FreshOnline/target/classes started by fanzekun in /Users/fanzekun/IdeaProjects/FreshOnline)
2022-02-06 18:43:45.931 INFO 21387 --- [main] c.e.freshonline.FreshOnlineApplication : No active profile set, falling back to default profiles: default
2022-02-06 18:43:46.336 INFO 21387 --- [main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2022-02-06 18:43:46.337 INFO 21387 --- [main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.56]
2022-02-06 18:43:46.362 INFO 21387 --- [main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2022-02-06 18:43:46.752 INFO 21387 --- [main] c.e.freshonline.FreshOnlineApplication : Started FreshOnlineApplication in 0.997 seconds (JVM running for 1.456)
2022-02-06 18:43:53.777 INFO 21387 --- [SpringApplicationShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-0} closing ...
2022-02-06 18:44:10.930 INFO 21489 --- [main] c.e.freshonline.FreshOnlineApplication : Starting FreshOnlineApplication using Java 11.0.12 on fanzekundeMacBook-Pro.local with PID 21489 (/Users/fanzekun/IdeaProjects/FreshOnline/target/classes started by fanzekun in /Users/fanzekun/IdeaProjects/FreshOnline)
2022-02-06 18:44:10.937 INFO 21489 --- [main] c.e.freshonline.FreshOnlineApplication : No active profile set, falling back to default profiles: default
2022-02-06 18:44:11.576 INFO 21489 --- [main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2022-02-06 18:44:11.576 INFO 21489 --- [main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.56]
2022-02-06 18:44:11.606 INFO 21489 --- [main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2022-02-06 18:44:11.972 INFO 21489 --- [main] c.e.freshonline.FreshOnlineApplication : Started FreshOnlineApplication in 1.245 seconds (JVM running for 1.681)
2022-02-06 18:44:42.057 INFO 21489 --- [http-nio-8080-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring DispatcherServlet 'dispatcherServlet'
2022-02-06 18:44:49.588 INFO 21489 --- [http-nio-8080-exec-1] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} inited
2022-02-06 18:54:32.634 INFO 21489 --- [SpringApplicationShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closing ...
2022-02-06 18:54:32.640 INFO 21489 --- [SpringApplicationShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closed
2022-02-06 18:57:09.375 INFO 21647 --- [main] c.e.freshonline.FreshOnlineApplication : Starting FreshOnlineApplication using Java 11.0.12 on fanzekundeMacBook-Pro.local with PID 21647 (/Users/fanzekun/IdeaProjects/FreshOnline/target/classes started by fanzekun in /Users/fanzekun/IdeaProjects/FreshOnline)
2022-02-06 18:57:09.378 INFO 21647 --- [main] c.e.freshonline.FreshOnlineApplication : No active profile set, falling back to default profiles: default
2022-02-06 18:57:09.779 INFO 21647 --- [main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2022-02-06 18:57:09.779 INFO 21647 --- [main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.56]
2022-02-06 18:57:09.802 INFO 21647 --- [main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2022-02-06 18:57:10.200 INFO 21647 --- [main] c.e.freshonline.FreshOnlineApplication : Started FreshOnlineApplication in 1.041 seconds (JVM running for 1.552)
2022-02-06 18:59:08.976 INFO 21647 --- [SpringApplicationShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-0} closing ...
2022-02-06 18:59:18.964 INFO 21680 --- [main] c.e.freshonline.FreshOnlineApplication : Starting FreshOnlineApplication using Java 11.0.12 on fanzekundeMacBook-Pro.local with PID 21680 (/Users/fanzekun/IdeaProjects/FreshOnline/target/classes started by fanzekun in /Users/fanzekun/IdeaProjects/FreshOnline)
2022-02-06 18:59:18.965 INFO 21680 --- [main] c.e.freshonline.FreshOnlineApplication : No active profile set, falling back to default profiles: default
2022-02-06 18:59:19.370 INFO 21680 --- [main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2022-02-06 18:59:19.371 INFO 21680 --- [main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.56]
2022-02-06 18:59:19.394 INFO 21680 --- [main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2022-02-06 18:59:19.761 INFO 21680 --- [main] c.e.freshonline.FreshOnlineApplication : Started FreshOnlineApplication in 1.008 seconds (JVM running for 1.454)
2022-02-06 18:59:31.577 INFO 21680 --- [http-nio-8080-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring DispatcherServlet 'dispatcherServlet'
2022-02-06 18:59:37.334 INFO 21680 --- [http-nio-8080-exec-1] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} inited
2022-02-06 19:06:10.608 WARN 21680 --- [http-nio-8080-exec-3] c.a.druid.pool.DruidAbstractDataSource : discard long time none received connection. , jdbcUrl : jdbc:mysql://localhost:3306/FreshOnline?useUnicode=true&characterEncoding=utf8&allowPublicKeyRetrieval=true&useSSL=false, version : 1.2.5, lastPacketReceivedIdleMillis : 393064
2022-02-06 19:09:38.709 WARN 21680 --- [http-nio-8080-exec-6] c.a.druid.pool.DruidAbstractDataSource : discard long time none received connection. , jdbcUrl : jdbc:mysql://localhost:3306/FreshOnline?useUnicode=true&characterEncoding=utf8&allowPublicKeyRetrieval=true&useSSL=false, version : 1.2.5, lastPacketReceivedIdleMillis : 208085
2022-02-06 19:22:00.479 INFO 21680 --- [SpringApplicationShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closing ...
2022-02-06 19:22:00.484 INFO 21680 --- [SpringApplicationShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closed
2022-02-06 19:37:53.501 INFO 22168 --- [main] c.e.freshonline.FreshOnlineApplication : Starting FreshOnlineApplication using Java 11.0.12 on fanzekundeMacBook-Pro.local with PID 22168 (/Users/fanzekun/IdeaProjects/FreshOnline/target/classes started by fanzekun in /Users/fanzekun/IdeaProjects/FreshOnline)
2022-02-06 19:37:53.502 INFO 22168 --- [main] c.e.freshonline.FreshOnlineApplication : No active profile set, falling back to default profiles: default
2022-02-06 19:37:53.910 INFO 22168 --- [main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2022-02-06 19:37:53.910 INFO 22168 --- [main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.56]
2022-02-06 19:37:53.949 INFO 22168 --- [main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2022-02-06 19:37:54.376 INFO 22168 --- [main] c.e.freshonline.FreshOnlineApplication : Started FreshOnlineApplication in 1.025 seconds (JVM running for 1.369)
2022-02-06 19:38:00.599 INFO 22168 --- [http-nio-8080-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring DispatcherServlet 'dispatcherServlet'
2022-02-06 19:38:07.029 INFO 22168 --- [http-nio-8080-exec-2] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} inited
2022-02-06 19:40:22.962 WARN 22168 --- [http-nio-8080-exec-6] c.a.druid.pool.DruidAbstractDataSource : discard long time none received connection. , jdbcUrl : jdbc:mysql://localhost:3306/FreshOnline?useUnicode=true&characterEncoding=utf8&allowPublicKeyRetrieval=true&useSSL=false, version : 1.2.5, lastPacketReceivedIdleMillis : 91015
2022-02-06 19:40:22.969 DEBUG 22168 --- [http-nio-8080-exec-6] c.e.f.d.CategoryMapper.selectByExample : ==> Preparing: select id, parent_id, name, level from category
2022-02-06 19:40:22.975 DEBUG 22168 --- [http-nio-8080-exec-6] c.e.f.d.CategoryMapper.selectByExample : ==> Parameters:
2022-02-06 19:40:22.982 DEBUG 22168 --- [http-nio-8080-exec-6] c.e.f.d.CategoryMapper.selectByExample : <== Total: 20
2022-02-06 19:40:30.070 DEBUG 22168 --- [http-nio-8080-exec-9] c.e.f.d.CategoryMapper.selectByExample : ==> Preparing: select id, parent_id, name, level from category
2022-02-06 19:40:30.071 DEBUG 22168 --- [http-nio-8080-exec-9] c.e.f.d.CategoryMapper.selectByExample : ==> Parameters:
2022-02-06 19:40:30.074 DEBUG 22168 --- [http-nio-8080-exec-9] c.e.f.d.CategoryMapper.selectByExample : <== Total: 20
2022-02-06 19:40:31.272 DEBUG 22168 --- [http-nio-8080-exec-1] c.e.f.d.CategoryMapper.selectByExample : ==> Preparing: select id, parent_id, name, level from category
2022-02-06 19:40:31.272 DEBUG 22168 --- [http-nio-8080-exec-1] c.e.f.d.CategoryMapper.selectByExample : ==> Parameters:
2022-02-06 19:40:31.275 DEBUG 22168 --- [http-nio-8080-exec-1] c.e.f.d.CategoryMapper.selectByExample : <== Total: 20
2022-02-06 19:40:32.033 DEBUG 22168 --- [http-nio-8080-exec-4] c.e.f.d.CategoryMapper.selectByExample : ==> Preparing: select id, parent_id, name, level from category
2022-02-06 19:40:32.034 DEBUG 22168 --- [http-nio-8080-exec-4] c.e.f.d.CategoryMapper.selectByExample : ==> Parameters:
2022-02-06 19:40:32.036 DEBUG 22168 --- [http-nio-8080-exec-4] c.e.f.d.CategoryMapper.selectByExample : <== Total: 20
2022-02-06 19:40:35.603 DEBUG 22168 --- [http-nio-8080-exec-5] c.e.f.d.CategoryMapper.selectByExample : ==> Preparing: select id, parent_id, name, level from category
2022-02-06 19:40:35.604 DEBUG 22168 --- [http-nio-8080-exec-5] c.e.f.d.CategoryMapper.selectByExample : ==> Parameters:
2022-02-06 19:40:35.606 DEBUG 22168 --- [http-nio-8080-exec-5] c.e.f.d.CategoryMapper.selectByExample : <== Total: 20
2022-02-06 19:40:36.696 DEBUG 22168 --- [http-nio-8080-exec-7] c.e.f.d.CategoryMapper.selectByExample : ==> Preparing: select id, parent_id, name, level from category
2022-02-06 19:40:36.697 DEBUG 22168 --- [http-nio-8080-exec-7] c.e.f.d.CategoryMapper.selectByExample : ==> Parameters:
2022-02-06 19:40:36.699 DEBUG 22168 --- [http-nio-8080-exec-7] c.e.f.d.CategoryMapper.selectByExample : <== Total: 20
2022-02-06 19:40:37.372 DEBUG 22168 --- [http-nio-8080-exec-9] c.e.f.d.CategoryMapper.selectByExample : ==> Preparing: select id, parent_id, name, level from category
2022-02-06 19:40:37.372 DEBUG 22168 --- [http-nio-8080-exec-9] c.e.f.d.CategoryMapper.selectByExample : ==> Parameters:
2022-02-06 19:40:37.375 DEBUG 22168 --- [http-nio-8080-exec-9] c.e.f.d.CategoryMapper.selectByExample : <== Total: 20
2022-02-06 19:40:38.193 DEBUG 22168 --- [http-nio-8080-exec-1] c.e.f.d.CategoryMapper.selectByExample : ==> Preparing: select id, parent_id, name, level from category
2022-02-06 19:40:38.193 DEBUG 22168 --- [http-nio-8080-exec-1] c.e.f.d.CategoryMapper.selectByExample : ==> Parameters:
2022-02-06 19:40:38.195 DEBUG 22168 --- [http-nio-8080-exec-1] c.e.f.d.CategoryMapper.selectByExample : <== Total: 20
2022-02-06 19:40:38.974 DEBUG 22168 --- [http-nio-8080-exec-4] c.e.f.d.CategoryMapper.selectByExample : ==> Preparing: select id, parent_id, name, level from category
2022-02-06 19:40:38.975 DEBUG 22168 --- [http-nio-8080-exec-4] c.e.f.d.CategoryMapper.selectByExample : ==> Parameters:
2022-02-06 19:40:38.977 DEBUG 22168 --- [http-nio-8080-exec-4] c.e.f.d.CategoryMapper.selectByExample : <== Total: 20
2022-02-06 19:40:39.675 DEBUG 22168 --- [http-nio-8080-exec-5] c.e.f.d.CategoryMapper.selectByExample : ==> Preparing: select id, parent_id, name, level from category
2022-02-06 19:40:39.675 DEBUG 22168 --- [http-nio-8080-exec-5] c.e.f.d.CategoryMapper.selectByExample : ==> Parameters:
2022-02-06 19:40:39.677 DEBUG 22168 --- [http-nio-8080-exec-5] c.e.f.d.CategoryMapper.selectByExample : <== Total: 20
2022-02-06 19:40:40.446 DEBUG 22168 --- [http-nio-8080-exec-7] c.e.f.d.CategoryMapper.selectByExample : ==> Preparing: select id, parent_id, name, level from category
2022-02-06 19:40:40.446 DEBUG 22168 --- [http-nio-8080-exec-7] c.e.f.d.CategoryMapper.selectByExample : ==> Parameters:
2022-02-06 19:40:40.448 DEBUG 22168 --- [http-nio-8080-exec-7] c.e.f.d.CategoryMapper.selectByExample : <== Total: 20
2022-02-06 19:42:08.859 WARN 22168 --- [http-nio-8080-exec-5] c.a.druid.pool.DruidAbstractDataSource : discard long time none received connection. , jdbcUrl : jdbc:mysql://localhost:3306/FreshOnline?useUnicode=true&characterEncoding=utf8&allowPublicKeyRetrieval=true&useSSL=false, version : 1.2.5, lastPacketReceivedIdleMillis : 88411
2022-02-06 19:42:43.800 INFO 22168 --- [SpringApplicationShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closing ...
2022-02-06 19:42:43.804 INFO 22168 --- [SpringApplicationShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closed
2022-02-06 19:43:37.882 INFO 22243 --- [main] c.e.freshonline.FreshOnlineApplication : Starting FreshOnlineApplication using Java 11.0.12 on fanzekundeMacBook-Pro.local with PID 22243 (/Users/fanzekun/IdeaProjects/FreshOnline/target/classes started by fanzekun in /Users/fanzekun/IdeaProjects/FreshOnline)
2022-02-06 19:43:37.883 INFO 22243 --- [main] c.e.freshonline.FreshOnlineApplication : No active profile set, falling back to default profiles: default
2022-02-06 19:43:38.351 INFO 22243 --- [main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2022-02-06 19:43:38.351 INFO 22243 --- [main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.56]
2022-02-06 19:43:38.374 INFO 22243 --- [main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2022-02-06 19:43:38.779 INFO 22243 --- [main] c.e.freshonline.FreshOnlineApplication : Started FreshOnlineApplication in 1.14 seconds (JVM running for 1.534)
2022-02-06 19:43:43.043 INFO 22243 --- [http-nio-8080-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring DispatcherServlet 'dispatcherServlet'
2022-02-06 19:43:56.590 INFO 22243 --- [SpringApplicationShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-0} closing ...
2022-02-06 19:44:03.993 INFO 22252 --- [main] c.e.freshonline.FreshOnlineApplication : Starting FreshOnlineApplication using Java 11.0.12 on fanzekundeMacBook-Pro.local with PID 22252 (/Users/fanzekun/IdeaProjects/FreshOnline/target/classes started by fanzekun in /Users/fanzekun/IdeaProjects/FreshOnline)
2022-02-06 19:44:03.994 INFO 22252 --- [main] c.e.freshonline.FreshOnlineApplication : No active profile set, falling back to default profiles: default
2022-02-06 19:44:04.416 INFO 22252 --- [main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2022-02-06 19:44:04.416 INFO 22252 --- [main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.56]
2022-02-06 19:44:04.440 INFO 22252 --- [main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2022-02-06 19:44:04.864 INFO 22252 --- [main] c.e.freshonline.FreshOnlineApplication : Started FreshOnlineApplication in 1.134 seconds (JVM running for 1.604)
2022-02-06 19:44:39.794 INFO 22252 --- [http-nio-8080-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring DispatcherServlet 'dispatcherServlet'
2022-02-06 19:45:39.196 INFO 22252 --- [http-nio-8080-exec-6] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} inited
2022-02-06 19:50:22.253 DEBUG 22252 --- [http-nio-8080-exec-10] c.e.f.d.CategoryMapper.selectByExample : ==> Preparing: select id, parent_id, name, level from category
2022-02-06 19:50:22.253 DEBUG 22252 --- [http-nio-8080-exec-6] c.e.f.d.CategoryMapper.selectByExample : ==> Preparing: select id, parent_id, name, level from category
2022-02-06 19:50:22.256 WARN 22252 --- [http-nio-8080-exec-3] c.a.druid.pool.DruidAbstractDataSource : discard long time none received connection. , jdbcUrl : jdbc:mysql://localhost:3306/FreshOnline?useUnicode=true&characterEncoding=utf8&allowPublicKeyRetrieval=true&useSSL=false, version : 1.2.5, lastPacketReceivedIdleMillis : 266805
2022-02-06 19:50:22.257 DEBUG 22252 --- [http-nio-8080-exec-2] c.e.f.d.CategoryMapper.selectByExample : ==> Preparing: select id, parent_id, name, level from category
2022-02-06 19:50:22.261 DEBUG 22252 --- [http-nio-8080-exec-7] c.e.f.d.CategoryMapper.selectByExample : ==> Preparing: select id, parent_id, name, level from category
2022-02-06 19:50:22.262 DEBUG 22252 --- [http-nio-8080-exec-10] c.e.f.d.CategoryMapper.selectByExample : ==> Parameters:
2022-02-06 19:50:22.262 DEBUG 22252 --- [http-nio-8080-exec-2] c.e.f.d.CategoryMapper.selectByExample : ==> Parameters:
2022-02-06 19:50:22.262 DEBUG 22252 --- [http-nio-8080-exec-6] c.e.f.d.CategoryMapper.selectByExample : ==> Parameters:
2022-02-06 19:50:22.262 DEBUG 22252 --- [http-nio-8080-exec-7] c.e.f.d.CategoryMapper.selectByExample : ==> Parameters:
2022-02-06 19:50:22.265 DEBUG 22252 --- [http-nio-8080-exec-9] c.e.f.d.CategoryMapper.selectByExample : ==> Preparing: select id, parent_id, name, level from category
2022-02-06 19:50:22.265 DEBUG 22252 --- [http-nio-8080-exec-9] c.e.f.d.CategoryMapper.selectByExample : ==> Parameters:
2022-02-06 19:50:22.268 DEBUG 22252 --- [http-nio-8080-exec-1] c.e.f.d.CategoryMapper.selectByExample : ==> Preparing: select id, parent_id, name, level from category
2022-02-06 19:50:22.269 DEBUG 22252 --- [http-nio-8080-exec-1] c.e.f.d.CategoryMapper.selectByExample : ==> Parameters:
2022-02-06 19:50:22.272 DEBUG 22252 --- [http-nio-8080-exec-8] c.e.f.d.CategoryMapper.selectByExample : ==> Preparing: select id, parent_id, name, level from category
2022-02-06 19:50:22.273 DEBUG 22252 --- [http-nio-8080-exec-8] c.e.f.d.CategoryMapper.selectByExample : ==> Parameters:
2022-02-06 19:50:22.277 DEBUG 22252 --- [http-nio-8080-exec-8] c.e.f.d.CategoryMapper.selectByExample : <== Total: 20
2022-02-06 19:50:22.277 DEBUG 22252 --- [http-nio-8080-exec-2] c.e.f.d.CategoryMapper.selectByExample : <== Total: 20
2022-02-06 19:50:22.277 DEBUG 22252 --- [http-nio-8080-exec-7] c.e.f.d.CategoryMapper.selectByExample : <== Total: 20
2022-02-06 19:50:22.277 DEBUG 22252 --- [http-nio-8080-exec-10] c.e.f.d.CategoryMapper.selectByExample : <== Total: 20
2022-02-06 19:50:22.277 DEBUG 22252 --- [http-nio-8080-exec-1] c.e.f.d.CategoryMapper.selectByExample : <== Total: 20
2022-02-06 19:50:22.277 DEBUG 22252 --- [http-nio-8080-exec-3] c.e.f.d.CategoryMapper.selectByExample : ==> Preparing: select id, parent_id, name, level from category
2022-02-06 19:50:22.278 DEBUG 22252 --- [http-nio-8080-exec-6] c.e.f.d.CategoryMapper.selectByExample : <== Total: 20
2022-02-06 19:50:22.278 DEBUG 22252 --- [http-nio-8080-exec-3] c.e.f.d.CategoryMapper.selectByExample : ==> Parameters:
2022-02-06 19:50:22.278 DEBUG 22252 --- [http-nio-8080-exec-9] c.e.f.d.CategoryMapper.selectByExample : <== Total: 20
2022-02-06 19:50:22.280 DEBUG 22252 --- [http-nio-8080-exec-3] c.e.f.d.CategoryMapper.selectByExample : <== Total: 20
2022-02-06 19:54:56.258 WARN 22252 --- [http-nio-8080-exec-5] c.a.druid.pool.DruidAbstractDataSource : discard long time none received connection. , jdbcUrl : jdbc:mysql://localhost:3306/FreshOnline?useUnicode=true&characterEncoding=utf8&allowPublicKeyRetrieval=true&useSSL=false, version : 1.2.5, lastPacketReceivedIdleMillis : 273990
2022-02-06 19:54:56.270 WARN 22252 --- [http-nio-8080-exec-5] c.a.druid.pool.DruidAbstractDataSource : discard long time none received connection. , jdbcUrl : jdbc:mysql://localhost:3306/FreshOnline?useUnicode=true&characterEncoding=utf8&allowPublicKeyRetrieval=true&useSSL=false, version : 1.2.5, lastPacketReceivedIdleMillis : 274005
2022-02-06 19:54:56.275 WARN 22252 --- [http-nio-8080-exec-5] c.a.druid.pool.DruidAbstractDataSource : discard long time none received connection. , jdbcUrl : jdbc:mysql://localhost:3306/FreshOnline?useUnicode=true&characterEncoding=utf8&allowPublicKeyRetrieval=true&useSSL=false, version : 1.2.5, lastPacketReceivedIdleMillis : 274010
2022-02-06 19:54:56.276 WARN 22252 --- [http-nio-8080-exec-5] c.a.druid.pool.DruidAbstractDataSource : discard long time none received connection. , jdbcUrl : jdbc:mysql://localhost:3306/FreshOnline?useUnicode=true&characterEncoding=utf8&allowPublicKeyRetrieval=true&useSSL=false, version : 1.2.5, lastPacketReceivedIdleMillis : 274012
2022-02-06 19:54:56.278 WARN 22252 --- [http-nio-8080-exec-5] c.a.druid.pool.DruidAbstractDataSource : discard long time none received connection. , jdbcUrl : jdbc:mysql://localhost:3306/FreshOnline?useUnicode=true&characterEncoding=utf8&allowPublicKeyRetrieval=true&useSSL=false, version : 1.2.5, lastPacketReceivedIdleMillis : 274008
2022-02-06 19:54:56.282 WARN 22252 --- [http-nio-8080-exec-5] c.a.druid.pool.DruidAbstractDataSource : discard long time none received connection. , jdbcUrl : jdbc:mysql://localhost:3306/FreshOnline?useUnicode=true&characterEncoding=utf8&allowPublicKeyRetrieval=true&useSSL=false, version : 1.2.5, lastPacketReceivedIdleMillis : 274018
2022-02-06 19:54:56.283 WARN 22252 --- [http-nio-8080-exec-5] c.a.druid.pool.DruidAbstractDataSource : discard long time none received connection. , jdbcUrl : jdbc:mysql://localhost:3306/FreshOnline?useUnicode=true&characterEncoding=utf8&allowPublicKeyRetrieval=true&useSSL=false, version : 1.2.5, lastPacketReceivedIdleMillis : 274009
2022-02-06 19:54:56.285 WARN 22252 --- [http-nio-8080-exec-5] c.a.druid.pool.DruidAbstractDataSource : discard long time none received connection. , jdbcUrl : jdbc:mysql://localhost:3306/FreshOnline?useUnicode=true&characterEncoding=utf8&allowPublicKeyRetrieval=true&useSSL=false, version : 1.2.5, lastPacketReceivedIdleMillis : 274005
2022-02-06 19:54:56.286 DEBUG 22252 --- [http-nio-8080-exec-5] c.e.f.d.CategoryMapper.selectByExample : ==> Preparing: select id, parent_id, name, level from category
2022-02-06 19:54:56.286 DEBUG 22252 --- [http-nio-8080-exec-5] c.e.f.d.CategoryMapper.selectByExample : ==> Parameters:
2022-02-06 19:54:56.290 DEBUG 22252 --- [http-nio-8080-exec-5] c.e.f.d.CategoryMapper.selectByExample : <== Total: 20
2022-02-06 19:54:57.005 DEBUG 22252 --- [http-nio-8080-exec-6] c.e.f.d.CategoryMapper.selectByExample : ==> Preparing: select id, parent_id, name, level from category
2022-02-06 19:54:57.005 DEBUG 22252 --- [http-nio-8080-exec-6] c.e.f.d.CategoryMapper.selectByExample : ==> Parameters:
2022-02-06 19:54:57.007 DEBUG 22252 --- [http-nio-8080-exec-6] c.e.f.d.CategoryMapper.selectByExample : <== Total: 20
2022-02-06 19:55:00.379 DEBUG 22252 --- [http-nio-8080-exec-1] c.e.f.d.CategoryMapper.selectByExample : ==> Preparing: select id, parent_id, name, level from category
2022-02-06 19:55:00.380 DEBUG 22252 --- [http-nio-8080-exec-1] c.e.f.d.CategoryMapper.selectByExample : ==> Parameters:
2022-02-06 19:55:00.381 DEBUG 22252 --- [http-nio-8080-exec-1] c.e.f.d.CategoryMapper.selectByExample : <== Total: 20
2022-02-06 19:55:04.458 DEBUG 22252 --- [http-nio-8080-exec-8] c.e.f.d.CategoryMapper.selectByExample : ==> Preparing: select id, parent_id, name, level from category
2022-02-06 19:55:04.459 DEBUG 22252 --- [http-nio-8080-exec-8] c.e.f.d.CategoryMapper.selectByExample : ==> Parameters:
2022-02-06 19:55:04.460 DEBUG 22252 --- [http-nio-8080-exec-8] c.e.f.d.CategoryMapper.selectByExample : <== Total: 20
2022-02-06 19:56:54.390 WARN 22252 --- [http-nio-8080-exec-9] c.a.druid.pool.DruidAbstractDataSource : discard long time none received connection. , jdbcUrl : jdbc:mysql://localhost:3306/FreshOnline?useUnicode=true&characterEncoding=utf8&allowPublicKeyRetrieval=true&useSSL=false, version : 1.2.5, lastPacketReceivedIdleMillis : 109929
2022-02-06 19:56:54.399 DEBUG 22252 --- [http-nio-8080-exec-9] c.e.f.d.CategoryMapper.selectByExample : ==> Preparing: select id, parent_id, name, level from category
2022-02-06 19:56:54.400 DEBUG 22252 --- [http-nio-8080-exec-9] c.e.f.d.CategoryMapper.selectByExample : ==> Parameters:
2022-02-06 19:56:54.402 DEBUG 22252 --- [http-nio-8080-exec-9] c.e.f.d.CategoryMapper.selectByExample : <== Total: 20
2022-02-06 19:57:06.675 DEBUG 22252 --- [http-nio-8080-exec-5] c.e.f.d.CategoryMapper.selectByExample : ==> Preparing: select id, parent_id, name, level from category
2022-02-06 19:57:06.675 DEBUG 22252 --- [http-nio-8080-exec-5] c.e.f.d.CategoryMapper.selectByExample : ==> Parameters:
2022-02-06 19:57:06.676 DEBUG 22252 --- [http-nio-8080-exec-5] c.e.f.d.CategoryMapper.selectByExample : <== Total: 20
2022-02-06 19:57:07.233 DEBUG 22252 --- [http-nio-8080-exec-6] c.e.f.d.CategoryMapper.selectByExample : ==> Preparing: select id, parent_id, name, level from category
2022-02-06 19:57:07.233 DEBUG 22252 --- [http-nio-8080-exec-6] c.e.f.d.CategoryMapper.selectByExample : ==> Parameters:
2022-02-06 19:57:07.236 DEBUG 22252 --- [http-nio-8080-exec-6] c.e.f.d.CategoryMapper.selectByExample : <== Total: 20
2022-02-06 19:57:07.786 DEBUG 22252 --- [http-nio-8080-exec-1] c.e.f.d.CategoryMapper.selectByExample : ==> Preparing: select id, parent_id, name, level from category
2022-02-06 19:57:07.786 DEBUG 22252 --- [http-nio-8080-exec-1] c.e.f.d.CategoryMapper.selectByExample : ==> Parameters:
2022-02-06 19:57:07.788 DEBUG 22252 --- [http-nio-8080-exec-1] c.e.f.d.CategoryMapper.selectByExample : <== Total: 20
2022-02-06 19:57:08.508 DEBUG 22252 --- [http-nio-8080-exec-8] c.e.f.d.CategoryMapper.selectByExample : ==> Preparing: select id, parent_id, name, level from category
2022-02-06 19:57:08.509 DEBUG 22252 --- [http-nio-8080-exec-8] c.e.f.d.CategoryMapper.selectByExample : ==> Parameters:
2022-02-06 19:57:08.510 DEBUG 22252 --- [http-nio-8080-exec-8] c.e.f.d.CategoryMapper.selectByExample : <== Total: 20
2022-02-06 19:57:09.234 DEBUG 22252 --- [http-nio-8080-exec-9] c.e.f.d.CategoryMapper.selectByExample : ==> Preparing: select id, parent_id, name, level from category
2022-02-06 19:57:09.235 DEBUG 22252 --- [http-nio-8080-exec-9] c.e.f.d.CategoryMapper.selectByExample : ==> Parameters:
2022-02-06 19:57:09.238 DEBUG 22252 --- [http-nio-8080-exec-9] c.e.f.d.CategoryMapper.selectByExample : <== Total: 20
2022-02-06 19:57:20.160 INFO 22252 --- [http-nio-8080-exec-6] o.apache.coyote.http11.Http11Processor : Error parsing HTTP request header
Note: further occurrences of HTTP request parsing errors will be logged at DEBUG level.
java.lang.IllegalArgumentException: Invalid character found in the request target [/goods?preState=[object%20Object]&brands_list=undefined&price_range=[10000,0]&page=1 ]. The valid characters are defined in RFC 7230 and RFC 3986
at org.apache.coyote.http11.Http11InputBuffer.parseRequestLine(Http11InputBuffer.java:494) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:269) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:895) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1732) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at java.base/java.lang.Thread.run(Thread.java:829) ~[na:na]
2022-02-06 19:57:20.160 INFO 22252 --- [http-nio-8080-exec-10] o.apache.coyote.http11.Http11Processor : Error parsing HTTP request header
Note: further occurrences of HTTP request parsing errors will be logged at DEBUG level.
java.lang.IllegalArgumentException: Invalid character found in the request target [/goods?preState=[object%20Object]&brands_list=undefined&price_range=[10000,0]&page=1 ]. The valid characters are defined in RFC 7230 and RFC 3986
at org.apache.coyote.http11.Http11InputBuffer.parseRequestLine(Http11InputBuffer.java:494) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:269) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:895) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1732) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at java.base/java.lang.Thread.run(Thread.java:829) ~[na:na]
2022-02-06 20:00:26.404 WARN 22252 --- [http-nio-8080-exec-1] c.a.druid.pool.DruidAbstractDataSource : discard long time none received connection. , jdbcUrl : jdbc:mysql://localhost:3306/FreshOnline?useUnicode=true&characterEncoding=utf8&allowPublicKeyRetrieval=true&useSSL=false, version : 1.2.5, lastPacketReceivedIdleMillis : 197167
2022-02-06 20:00:26.420 DEBUG 22252 --- [http-nio-8080-exec-1] c.e.f.d.CategoryMapper.selectByExample : ==> Preparing: select id, parent_id, name, level from category
2022-02-06 20:00:26.421 DEBUG 22252 --- [http-nio-8080-exec-1] c.e.f.d.CategoryMapper.selectByExample : ==> Parameters:
2022-02-06 20:00:26.427 DEBUG 22252 --- [http-nio-8080-exec-1] c.e.f.d.CategoryMapper.selectByExample : <== Total: 20
2022-02-06 20:00:27.322 DEBUG 22252 --- [http-nio-8080-exec-8] c.e.f.d.CategoryMapper.selectByExample : ==> Preparing: select id, parent_id, name, level from category
2022-02-06 20:00:27.323 DEBUG 22252 --- [http-nio-8080-exec-8] c.e.f.d.CategoryMapper.selectByExample : ==> Parameters:
2022-02-06 20:00:27.324 DEBUG 22252 --- [http-nio-8080-exec-8] c.e.f.d.CategoryMapper.selectByExample : <== Total: 20
2022-02-06 20:03:16.205 WARN 22252 --- [http-nio-8080-exec-5] c.a.druid.pool.DruidAbstractDataSource : discard long time none received connection. , jdbcUrl : jdbc:mysql://localhost:3306/FreshOnline?useUnicode=true&characterEncoding=utf8&allowPublicKeyRetrieval=true&useSSL=false, version : 1.2.5, lastPacketReceivedIdleMillis : 168881
2022-02-06 20:03:16.211 DEBUG 22252 --- [http-nio-8080-exec-5] c.e.f.d.CategoryMapper.selectByExample : ==> Preparing: select id, parent_id, name, level from category
2022-02-06 20:03:16.211 DEBUG 22252 --- [http-nio-8080-exec-5] c.e.f.d.CategoryMapper.selectByExample : ==> Parameters:
2022-02-06 20:03:16.213 DEBUG 22252 --- [http-nio-8080-exec-5] c.e.f.d.CategoryMapper.selectByExample : <== Total: 20
2022-02-06 20:03:24.602 DEBUG 22252 --- [http-nio-8080-exec-10] c.e.f.d.CategoryMapper.selectByExample : ==> Preparing: select id, parent_id, name, level from category
2022-02-06 20:03:24.603 DEBUG 22252 --- [http-nio-8080-exec-10] c.e.f.d.CategoryMapper.selectByExample : ==> Parameters:
2022-02-06 20:03:24.605 DEBUG 22252 --- [http-nio-8080-exec-10] c.e.f.d.CategoryMapper.selectByExample : <== Total: 20
2022-02-06 20:03:33.259 DEBUG 22252 --- [http-nio-8080-exec-1] c.e.f.d.CategoryMapper.selectByExample : ==> Preparing: select id, parent_id, name, level from category
2022-02-06 20:03:33.259 DEBUG 22252 --- [http-nio-8080-exec-1] c.e.f.d.CategoryMapper.selectByExample : ==> Parameters:
2022-02-06 20:03:33.260 DEBUG 22252 --- [http-nio-8080-exec-1] c.e.f.d.CategoryMapper.selectByExample : <== Total: 20
2022-02-06 20:05:00.229 WARN 22252 --- [http-nio-8080-exec-9] c.a.druid.pool.DruidAbstractDataSource : discard long time none received connection. , jdbcUrl : jdbc:mysql://localhost:3306/FreshOnline?useUnicode=true&characterEncoding=utf8&allowPublicKeyRetrieval=true&useSSL=false, version : 1.2.5, lastPacketReceivedIdleMillis : 86969
2022-02-06 20:05:00.234 DEBUG 22252 --- [http-nio-8080-exec-9] c.e.f.d.CategoryMapper.selectByExample : ==> Preparing: select id, parent_id, name, level from category
2022-02-06 20:05:00.234 DEBUG 22252 --- [http-nio-8080-exec-9] c.e.f.d.CategoryMapper.selectByExample : ==> Parameters:
2022-02-06 20:05:00.236 DEBUG 22252 --- [http-nio-8080-exec-9] c.e.f.d.CategoryMapper.selectByExample : <== Total: 20
2022-02-06 20:06:45.078 WARN 22252 --- [http-nio-8080-exec-10] c.a.druid.pool.DruidAbstractDataSource : discard long time none received connection. , jdbcUrl : jdbc:mysql://localhost:3306/FreshOnline?useUnicode=true&characterEncoding=utf8&allowPublicKeyRetrieval=true&useSSL=false, version : 1.2.5, lastPacketReceivedIdleMillis : 104843
2022-02-06 20:06:45.086 DEBUG 22252 --- [http-nio-8080-exec-10] c.e.f.d.CategoryMapper.selectByExample : ==> Preparing: select id, parent_id, name, level from category
2022-02-06 20:06:45.087 DEBUG 22252 --- [http-nio-8080-exec-10] c.e.f.d.CategoryMapper.selectByExample : ==> Parameters:
2022-02-06 20:06:45.089 DEBUG 22252 --- [http-nio-8080-exec-10] c.e.f.d.CategoryMapper.selectByExample : <== Total: 20
2022-02-06 20:15:26.984 INFO 22252 --- [SpringApplicationShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closing ...
2022-02-06 20:15:26.987 INFO 22252 --- [SpringApplicationShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closed
2022-02-06 21:19:21.721 INFO 24186 --- [main] c.e.freshonline.FreshOnlineApplication : Starting FreshOnlineApplication using Java 11.0.12 on fanzekundeMacBook-Pro.local with PID 24186 (/Users/fanzekun/IdeaProjects/FreshOnline/target/classes started by fanzekun in /Users/fanzekun/IdeaProjects/FreshOnline)
2022-02-06 21:19:21.723 INFO 24186 --- [main] c.e.freshonline.FreshOnlineApplication : No active profile set, falling back to default profiles: default
2022-02-06 21:19:22.172 INFO 24186 --- [main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2022-02-06 21:19:22.172 INFO 24186 --- [main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.56]
2022-02-06 21:19:22.198 INFO 24186 --- [main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2022-02-06 21:19:22.597 INFO 24186 --- [main] c.e.freshonline.FreshOnlineApplication : Started FreshOnlineApplication in 1.031 seconds (JVM running for 1.439)
2022-02-06 21:19:57.370 INFO 24186 --- [SpringApplicationShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-0} closing ...
2022-02-06 21:21:14.170 INFO 24221 --- [main] c.e.freshonline.FreshOnlineApplication : Starting FreshOnlineApplication using Java 11.0.12 on fanzekundeMacBook-Pro.local with PID 24221 (/Users/fanzekun/IdeaProjects/FreshOnline/target/classes started by fanzekun in /Users/fanzekun/IdeaProjects/FreshOnline)
2022-02-06 21:21:14.171 INFO 24221 --- [main] c.e.freshonline.FreshOnlineApplication : No active profile set, falling back to default profiles: default
2022-02-06 21:21:14.615 INFO 24221 --- [main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2022-02-06 21:21:14.615 INFO 24221 --- [main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.56]
2022-02-06 21:21:14.644 INFO 24221 --- [main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2022-02-06 21:21:15.016 INFO 24221 --- [main] c.e.freshonline.FreshOnlineApplication : Started FreshOnlineApplication in 1.005 seconds (JVM running for 1.349)
2022-02-06 21:21:25.537 INFO 24221 --- [http-nio-8080-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring DispatcherServlet 'dispatcherServlet'
2022-02-06 21:21:25.612 INFO 24221 --- [http-nio-8080-exec-2] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} inited
2022-02-06 21:21:25.667 DEBUG 24221 --- [http-nio-8080-exec-2] c.e.f.d.CategoryMapper.selectByExample : ==> Preparing: select id, parent_id, name, level from category
2022-02-06 21:21:25.679 DEBUG 24221 --- [http-nio-8080-exec-2] c.e.f.d.CategoryMapper.selectByExample : ==> Parameters:
2022-02-06 21:21:25.690 DEBUG 24221 --- [http-nio-8080-exec-2] c.e.f.d.CategoryMapper.selectByExample : <== Total: 20
2022-02-06 21:21:58.055 INFO 24221 --- [http-nio-8080-exec-8] o.apache.coyote.http11.Http11Processor : Error parsing HTTP request header
Note: further occurrences of HTTP request parsing errors will be logged at DEBUG level.
java.lang.IllegalArgumentException: Invalid character found in the request target [/goods?brands_list=undefined&price_range=[10000,0]&page=1 ]. The valid characters are defined in RFC 7230 and RFC 3986
at org.apache.coyote.http11.Http11InputBuffer.parseRequestLine(Http11InputBuffer.java:494) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:269) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:895) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1732) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at java.base/java.lang.Thread.run(Thread.java:829) ~[na:na]
2022-02-06 21:21:58.055 INFO 24221 --- [http-nio-8080-exec-7] o.apache.coyote.http11.Http11Processor : Error parsing HTTP request header
Note: further occurrences of HTTP request parsing errors will be logged at DEBUG level.
java.lang.IllegalArgumentException: Invalid character found in the request target [/goods?brands_list=undefined&price_range=[10000,0]&page=1 ]. The valid characters are defined in RFC 7230 and RFC 3986
at org.apache.coyote.http11.Http11InputBuffer.parseRequestLine(Http11InputBuffer.java:494) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:269) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:895) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1732) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) ~[tomcat-embed-core-9.0.56.jar:9.0.56]
at java.base/java.lang.Thread.run(Thread.java:829) ~[na:na]
2022-02-06 21:22:14.226 DEBUG 24221 --- [http-nio-8080-exec-9] c.e.f.d.CategoryMapper.selectByExample : ==> Preparing: select id, parent_id, name, level from category
2022-02-06 21:22:14.227 DEBUG 24221 --- [http-nio-8080-exec-9] c.e.f.d.CategoryMapper.selectByExample : ==> Parameters:
2022-02-06 21:22:14.230 DEBUG 24221 --- [http-nio-8080-exec-9] c.e.f.d.CategoryMapper.selectByExample : <== Total: 20
2022-02-06 21:47:02.201 INFO 24221 --- [SpringApplicationShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closing ...
2022-02-06 21:47:02.205 INFO 24221 --- [SpringApplicationShutdownHook] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} closed
File deleted
File deleted
package com.example.freshonline.controller;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.example.freshonline.service.CartService;
import com.example.freshonline.service.StockedGoodsService;
import com.example.freshonline.utils.PicUtils;
import com.example.freshonline.utils.RespBuilder;
import com.example.freshonline.utils.ValidationChecker;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import com.example.freshonline.model.Cart;
import com.example.freshonline.model.joined_tables.GoodsCategory;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
/**
* @author Josh Sun
*/
@RestController
public class CartController {
@Autowired
private CartService cartService;
static public class ID {
private int userId;
private int goodsId;
public ID() {
}
public int getUserId() {
return userId;
}
public void setUserId(int userId) {
this.userId = userId;
}
public int getGoodsId() {
return goodsId;
}
public void setGoodsId(int goodsId) {
this.goodsId = goodsId;
}
}
@GetMapping("/cart")
public JSONObject getGoodsDetails(@RequestBody JSONObject req) {
JSONObject res = new JSONObject();
try {
ID id = req.toJavaObject(ID.class);
List<Cart> cart_goods = cartService.getCart(id.getUserId());
JSONArray data = (JSONArray) JSONArray.toJSON(cart_goods);
res.put("code", 0);
res.put("data", data);
return res;
} catch (Exception e) {
StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter(sw);
e.printStackTrace(pw);
res.put("code", 1);
res.put("msg", sw.toString());
return res;
}
}
@PutMapping("/cart")
public JSONObject addCartEntry(@RequestBody JSONObject req) {
JSONObject res = new JSONObject();
try {
Cart cart = req.toJavaObject(Cart.class);
cartService.addToCart(cart);
res.put("code", 0);
return res;
} catch (Exception e) {
StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter(sw);
e.printStackTrace(pw);
res.put("code", 1);
res.put("msg", sw.toString());
return res;
}
}
@PostMapping("/cart")
public JSONObject updateCartEntry(@RequestBody JSONObject req) {
JSONObject res = new JSONObject();
try {
Cart cart = req.toJavaObject(Cart.class);
cartService.updateToCart(cart);
res.put("code", 0);
return res;
} catch (Exception e) {
StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter(sw);
e.printStackTrace(pw);
res.put("code", 1);
res.put("msg", sw.toString());
return res;
}
}
@DeleteMapping("/cart")
public JSONObject deleteCartEntry(@RequestBody JSONObject req) {
JSONObject res = new JSONObject();
try {
ID id = req.toJavaObject(ID.class);
cartService.deleteFromCart(id.getUserId(),id.getGoodsId());
res.put("code", 0);
return res;
} catch (Exception e) {
StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter(sw);
e.printStackTrace(pw);
res.put("code", 1);
res.put("msg", sw.toString());
return res;
}
}
}
......@@ -6,6 +6,10 @@ import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface CartMapper {
List<Cart> selectByUserID(@Param("userId") Integer userId);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table cart
......
package com.example.freshonline.dao;
import com.example.freshonline.model.joined_tables.GoodsCategory;
import org.apache.ibatis.annotations.Param;
public interface GoodsCategoryMapper {
GoodsCategory selectByGoodsID(Integer id);
GoodsCategory selectByGoodsID(@Param("goodsId") Integer goodsId);
}
\ No newline at end of file
......@@ -2,7 +2,40 @@ package com.example.freshonline.model;
import java.math.BigDecimal;
import com.example.freshonline.model.StockedGoods;
import com.example.freshonline.model.User;
public class Cart {
private User user;
public User getUser() {
return user;
}
public void setUser(User user) {
this.user = user;
}
private StockedGoods stockedGoods;
public StockedGoods getStockedGoods() {
return stockedGoods;
}
public void setStockedGoods(StockedGoods stockedGoods) {
this.stockedGoods = stockedGoods;
}
/**
*
* This field was generated by MyBatis Generator.
......
package com.example.freshonline.service;
import com.example.freshonline.dao.CartMapper;
import com.example.freshonline.model.Cart;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;
@Service
public class CartService {
@Autowired
private CartMapper cartMapper;
public void addToCart(Cart record){
cartMapper.insertSelective(record);
}
public void updateToCart(Cart record){
cartMapper.updateByPrimaryKeySelective(record);
}
public void deleteFromCart(int userId, int goodsId){
cartMapper.deleteByPrimaryKey(userId, goodsId);
}
public List<Cart> getCart(int userId){
return cartMapper.selectByUserID(userId);
}
}
spring.datasource.url=jdbc:mysql://localhost:3306/FreshOnline?useUnicode=true&characterEncoding=utf8&allowPublicKeyRetrieval=true&useSSL=false
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.username=root
spring.datasource.password=
spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
mybatis.mapper-locations=classpath:mapper/*.xml
mybatis.type-aliases-package=com.example.freshonline.dao
logging.level.org.springframework=WARN
logging.level.com.example.freshonline.dao.CategoryMapper=DEBUG
logging.file.name=logs/spring-boot-logging.log
\ No newline at end of file
......@@ -11,6 +11,38 @@
<id column="goods_id" jdbcType="INTEGER" property="goodsId" />
<result column="count" jdbcType="DECIMAL" property="count" />
</resultMap>
<resultMap extends="BaseResultMap" id="JoinedResultMap" type="com.example.freshonline.model.Cart">
<association property="user" javaType="com.example.freshonline.model.User">
</association>
<association property="stockedGoods" javaType="com.example.freshonline.model.StockedGoods">
<id property="id" jdbcType="INTEGER" column="goods_id" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="type" jdbcType="TINYINT" property="type" />
<result column="price" jdbcType="DECIMAL" property="price" />
<result column="storage" jdbcType="DECIMAL" property="storage" />
<result column="sales" jdbcType="DECIMAL" property="sales" />
<result column="onsale" jdbcType="TINYINT" property="onsale" />
<result column="sale_price" jdbcType="DECIMAL" property="salePrice" />
<result column="rate" jdbcType="DECIMAL" property="rate" />
<result column="rate_count" jdbcType="INTEGER" property="rateCount" />
<result column="brand" jdbcType="VARCHAR" property="brand" />
<result column="category_id" jdbcType="INTEGER" property="categoryId" />
<result column="is_new" jdbcType="TINYINT" property="isNew" />
<result column="pic" jdbcType="VARCHAR" property="pic" />
<result column="active" jdbcType="BIT" property="active" />
</association>
</resultMap>
<select id="selectByUserID" parameterType="map" resultMap="JoinedResultMap">
select cart.*, stocked_goods.*, user.* from cart
inner join user on cart.user_id = user.id
inner join stocked_goods on cart.goods_id = stocked_goods.id
where cart.user_id = #{userId,jdbcType=INTEGER}
</select>
<sql id="Example_Where_Clause">
<!--
WARNING - @mbg.generated
......@@ -112,7 +144,7 @@
This element is automatically generated by MyBatis Generator, do not modify.
This element was generated on Sun Feb 06 18:37:56 EST 2022.
-->
select
select
<include refid="Base_Column_List" />
from cart
where user_id = #{userId,jdbcType=INTEGER}
......
......@@ -33,7 +33,7 @@
</association>
</resultMap>
<select id="selectByGoodsID" parameterType="int" resultMap="selectByGoodsIDMap">
<select id="selectByGoodsID" parameterType="map" resultMap="selectByGoodsIDMap">
SELECT good.*, cate1.id as id1, cate1.name as name1, cate2.id as id2, cate2.name as name2, cate3.id as id3, cate3.name as name3
FROM
stocked_goods as good
......@@ -43,7 +43,7 @@
on cate3.parent_id = cate2.id
inner join category as cate1
on cate2.parent_id = cate1.id
where good.id = #{id}
where good.id = #{goodsId,jdbcType=INTEGER}
</select>
</mapper>
\ No newline at end of file
package com.example.freshonline.dao;
import org.junit.jupiter.api.Test;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import com.example.freshonline.model.joined_tables.GoodsCategory;
import java.math.BigDecimal;
import java.util.List;
import com.example.freshonline.model.Cart;
@SpringBootTest
@MapperScan("com.example.freshonline.dao")
public class CartTest {
@Autowired
private CartMapper cartMapper;
@Test
public void test1(){
Cart record = new Cart();
BigDecimal count = new BigDecimal("1");
record.setCount(count);
record.setGoodsId(1);
record.setUserId(1);
cartMapper.insert(record);
}
@Test
public void test2(){
List<Cart> l = cartMapper.selectByUserID(5);
System.err.println(l.get(0).getStockedGoods().getName());
}
@Test
public void test3(){
Cart c = new Cart();
c.setGoodsId(9);
c.setUserId(5);
BigDecimal count = new BigDecimal("15.12");
c.setCount(count);
cartMapper.updateByPrimaryKeySelective(c);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment