SpringBoot~12

main
NaKami Cai 2 years ago
parent b4152ea076
commit 0f77ec0049

@ -0,0 +1,8 @@
<component name="InspectionProjectProfileManager">
<profile version="1.0">
<option name="myName" value="Project Default" />
<inspection_tool class="AutoCloseableResource" enabled="true" level="WARNING" enabled_by_default="true">
<option name="METHOD_MATCHER_CONFIG" value="java.util.Formatter,format,java.io.Writer,append,com.google.common.base.Preconditions,checkNotNull,org.hibernate.Session,close,java.io.PrintWriter,printf,java.io.PrintStream,printf,com.github.pagehelper.page.PageMethod,startPage" />
</inspection_tool>
</profile>
</component>

@ -16,5 +16,10 @@
<option name="name" value="JBoss Community repository" /> <option name="name" value="JBoss Community repository" />
<option name="url" value="https://repository.jboss.org/nexus/content/repositories/public/" /> <option name="url" value="https://repository.jboss.org/nexus/content/repositories/public/" />
</remote-repository> </remote-repository>
<remote-repository>
<option name="id" value="central" />
<option name="name" value="Central Repository" />
<option name="url" value="https://maven.aliyun.com/repository/central" />
</remote-repository>
</component> </component>
</project> </project>

@ -5,7 +5,7 @@
<parent> <parent>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId> <artifactId>spring-boot-starter-parent</artifactId>
<version>2.7.17</version> <version>2.4.5</version>
</parent> </parent>
<groupId>com.msb</groupId> <groupId>com.msb</groupId>
<artifactId>SpringBoot03</artifactId> <artifactId>SpringBoot03</artifactId>
@ -14,30 +14,33 @@
<description>SpringBoot03</description> <description>SpringBoot03</description>
<properties> <properties>
<java.version>1.8</java.version> <java.version>1.8</java.version>
<mysql.version>8.0.21</mysql.version>
</properties> </properties>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId> <artifactId>spring-boot-starter-web</artifactId>
</dependency>
</dependency>
<!--junit启动器-->
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId> <artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<!--mybatis的启动器 -->
<dependency> <dependency>
<groupId>org.mybatis.spring.boot</groupId> <groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId> <artifactId>mybatis-spring-boot-starter</artifactId>
<version>2.1.3</version> <version>2.1.3</version>
</dependency> </dependency>
<!--mysql驱动-->
<dependency> <dependency>
<groupId>mysql</groupId> <groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId> <artifactId>mysql-connector-java</artifactId>
<version>${mysql.version}</version> <version>8.0.21</version>
</dependency> </dependency>
<!--lombok-->
<dependency> <dependency>
<groupId>org.projectlombok</groupId> <groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId> <artifactId>lombok</artifactId>
@ -45,6 +48,19 @@
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<!--pageHelper启动器-->
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper-spring-boot-starter</artifactId>
<version>1.2.12</version>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid-spring-boot-starter</artifactId>
<version>1.1.10</version>
</dependency>
</dependencies> </dependencies>
<build> <build>
@ -52,11 +68,6 @@
<plugin> <plugin>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId> <artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<image>
<builder>paketobuildpacks/builder-jammy-base:latest</builder>
</image>
</configuration>
</plugin> </plugin>
</plugins> </plugins>
</build> </build>

@ -1,12 +1,13 @@
package com.msb.springboot03.controller; package com.msb.springboot03.controller;
import com.github.pagehelper.PageInfo;
import com.msb.springboot03.pojo.User; import com.msb.springboot03.pojo.User;
import com.msb.springboot03.service.UserService; import com.msb.springboot03.service.UserService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.ResponseBody;
import javax.websocket.server.PathParam;
import java.util.List; import java.util.List;
@Controller @Controller
@ -20,4 +21,10 @@ public class UserController {
public List<User> findAllUser(){ public List<User> findAllUser(){
return userService.findAllUser(); return userService.findAllUser();
} }
@RequestMapping("findByPage/{pageNum}/{pageSize}")
@ResponseBody
public PageInfo<User> findByPage(@PathVariable Integer pageNum, @PathVariable Integer pageSize){
return userService.findByPage(pageNum, pageSize);
}
} }

@ -1,11 +1,12 @@
package com.msb.springboot03.service; package com.msb.springboot03.service;
import com.github.pagehelper.PageInfo;
import com.msb.springboot03.pojo.User; import com.msb.springboot03.pojo.User;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import java.util.List; import java.util.List;
public interface UserService { public interface UserService {
List<User> findAllUser(); List<User> findAllUser();
PageInfo<User> findByPage(Integer pageNum, Integer pageSize);
} }

@ -1,5 +1,7 @@
package com.msb.springboot03.service.impl; package com.msb.springboot03.service.impl;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.msb.springboot03.mapper.UserMapper; import com.msb.springboot03.mapper.UserMapper;
import com.msb.springboot03.pojo.User; import com.msb.springboot03.pojo.User;
import com.msb.springboot03.service.UserService; import com.msb.springboot03.service.UserService;
@ -18,4 +20,10 @@ public class UserServiceImpl implements UserService {
public List<User> findAllUser() { public List<User> findAllUser() {
return userMapper.selectAll(); return userMapper.selectAll();
} }
@Override
public PageInfo<User> findByPage(Integer pageNum, Integer pageSize) {
PageHelper.startPage(pageNum, pageSize);
return new PageInfo<>(userMapper.selectAll());
}
} }

@ -8,6 +8,50 @@ spring:
username: root username: root
password: Nakamino password: Nakamino
url: jdbc:mysql://localhost:3306/SpringBoot?useSSL=false&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai url: jdbc:mysql://localhost:3306/SpringBoot?useSSL=false&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
type: com.zaxxer.hikari.HikariDataSource
druid:
druid:
# 连接池的配置信息
# 初始化大小,最小,最大
initial-size: 5
min-idle: 5
maxActive: 20
# 配置获取连接等待超时的时间
maxWait: 60000
# 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
timeBetweenEvictionRunsMillis: 60000
# 配置一个连接在池中最小生存的时间,单位是毫秒
minEvictableIdleTimeMillis: 300000
validationQuery: SELECT 1
testWhileIdle: true
testOnBorrow: false
testOnReturn: false
# 打开PSCache并且指定每个连接上PSCache的大小
poolPreparedStatements: true
maxPoolPreparedStatementPerConnectionSize: 20
# 配置监控统计拦截的filters去掉后监控界面sql无法统计'wall'用于防火墙
filters: stat,wall,slf4j
# 通过connectProperties属性来打开mergeSql功能慢SQL记录
connectionProperties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000
# 配置DruidStatFilter
web-stat-filter:
enabled: true
url-pattern: "/*"
exclusions: "*.js,*.gif,*.jpg,*.bmp,*.png,*.css,*.ico,/druid/*"
# 配置DruidStatViewServlet
stat-view-servlet:
url-pattern: "/druid/*"
# IP白名单(没有配置或者为空,则允许所有访问)
# allow: 127.0.0.1,192.168.8.109
# IP黑名单 (存在共同时deny优先于allow)
# deny: 192.168.1.188
# 禁用HTML页面上的“Reset All”功能
reset-enable: false
# 登录名
login-username: admin
# 登录密码
login-password: 123456
mybatis: mybatis:
type-aliases-package: com.msb.springboot03.pojo type-aliases-package: com.msb.springboot03.pojo
mapper-locations: classpath:mapper/*.xml mapper-locations: classpath:mapper/*.xml

@ -303,3 +303,490 @@ ERROR in ch.qos.logback.core.joran.spi.Interpreter@38:70 - ActionException in Ac
2023-11-18 00:30:07.807 [http-nio-9000-exec-1] DEBUG com.msb.springboot03.mapper.UserMapper.selectAll - <== Total: 1 2023-11-18 00:30:07.807 [http-nio-9000-exec-1] DEBUG com.msb.springboot03.mapper.UserMapper.selectAll - <== Total: 1
2023-11-18 00:30:19.607 [SpringApplicationShutdownHook] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Shutdown initiated... 2023-11-18 00:30:19.607 [SpringApplicationShutdownHook] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Shutdown initiated...
2023-11-18 00:30:19.625 [SpringApplicationShutdownHook] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Shutdown completed. 2023-11-18 00:30:19.625 [SpringApplicationShutdownHook] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Shutdown completed.
2023-11-18 09:05:29.670 [main] INFO com.msb.springboot03.SpringBoot03Application - Starting SpringBoot03Application using Java 1.8.0_382 on Nakami-12gen with PID 21232 (C:\Users\Nakam\IdeaProjects\SpringBoot\SpringBoot03\target\classes started by Nakam in C:\Users\Nakam\IdeaProjects\SpringBoot)
2023-11-18 09:05:29.671 [main] INFO com.msb.springboot03.SpringBoot03Application - No active profile set, falling back to 1 default profile: "default"
2023-11-18 09:05:30.311 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat initialized with port(s): 9000 (http)
2023-11-18 09:05:30.316 [main] INFO org.apache.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-9000"]
2023-11-18 09:05:30.317 [main] INFO org.apache.catalina.core.StandardService - Starting service [Tomcat]
2023-11-18 09:05:30.317 [main] INFO org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.82]
2023-11-18 09:05:30.370 [main] INFO o.a.c.c.ContainerBase.[Tomcat].[localhost].[/yml] - Initializing Spring embedded WebApplicationContext
2023-11-18 09:05:30.371 [main] INFO o.s.b.w.s.c.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 671 ms
2023-11-18 09:05:30.745 [main] INFO org.apache.coyote.http11.Http11NioProtocol - Starting ProtocolHandler ["http-nio-9000"]
2023-11-18 09:05:30.757 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat started on port(s): 9000 (http) with context path '/yml'
2023-11-18 09:05:30.763 [main] INFO com.msb.springboot03.SpringBoot03Application - Started SpringBoot03Application in 1.358 seconds (JVM running for 1.894)
2023-11-18 09:06:03.874 [http-nio-9000-exec-1] INFO o.a.c.c.ContainerBase.[Tomcat].[localhost].[/yml] - Initializing Spring DispatcherServlet 'dispatcherServlet'
2023-11-18 09:06:03.874 [http-nio-9000-exec-1] INFO org.springframework.web.servlet.DispatcherServlet - Initializing Servlet 'dispatcherServlet'
2023-11-18 09:06:03.875 [http-nio-9000-exec-1] INFO org.springframework.web.servlet.DispatcherServlet - Completed initialization in 1 ms
2023-11-18 09:06:03.909 [http-nio-9000-exec-1] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Starting...
2023-11-18 09:06:03.983 [http-nio-9000-exec-1] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Start completed.
2023-11-18 09:06:03.988 [http-nio-9000-exec-1] DEBUG com.msb.springboot03.mapper.UserMapper.selectAll - ==> Preparing: SELECT * FROM USER
2023-11-18 09:06:04.001 [http-nio-9000-exec-1] DEBUG com.msb.springboot03.mapper.UserMapper.selectAll - ==> Parameters:
2023-11-18 09:06:04.018 [http-nio-9000-exec-1] DEBUG com.msb.springboot03.mapper.UserMapper.selectAll - <== Total: 57
2023-11-18 09:08:12.612 [SpringApplicationShutdownHook] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Shutdown initiated...
2023-11-18 09:08:12.617 [SpringApplicationShutdownHook] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Shutdown completed.
2023-11-18 09:08:14.398 [main] INFO com.msb.springboot03.SpringBoot03Application - Starting SpringBoot03Application using Java 1.8.0_382 on Nakami-12gen with PID 16716 (C:\Users\Nakam\IdeaProjects\SpringBoot\SpringBoot03\target\classes started by Nakam in C:\Users\Nakam\IdeaProjects\SpringBoot)
2023-11-18 09:08:14.400 [main] INFO com.msb.springboot03.SpringBoot03Application - No active profile set, falling back to 1 default profile: "default"
2023-11-18 09:08:14.999 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat initialized with port(s): 9000 (http)
2023-11-18 09:08:15.004 [main] INFO org.apache.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-9000"]
2023-11-18 09:08:15.005 [main] INFO org.apache.catalina.core.StandardService - Starting service [Tomcat]
2023-11-18 09:08:15.005 [main] INFO org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.82]
2023-11-18 09:08:15.057 [main] INFO o.a.c.c.ContainerBase.[Tomcat].[localhost].[/yml] - Initializing Spring embedded WebApplicationContext
2023-11-18 09:08:15.057 [main] INFO o.s.b.w.s.c.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 631 ms
2023-11-18 09:08:15.209 [main] WARN o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userController': Unsatisfied dependency expressed through field 'userService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userServiceImpl': Unsatisfied dependency expressed through field 'userMapper'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userMapper' defined in file [C:\Users\Nakam\IdeaProjects\SpringBoot\SpringBoot03\target\classes\com\msb\springboot03\mapper\UserMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [org/mybatis/spring/boot/autoconfigure/MybatisAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method 'sqlSessionFactory' threw exception; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [C:\Users\Nakam\IdeaProjects\SpringBoot\SpringBoot03\target\classes\mapper\config.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. The XML location is 'file [C:\Users\Nakam\IdeaProjects\SpringBoot\SpringBoot03\target\classes\mapper\config.xml]'. Cause: java.lang.NullPointerException
2023-11-18 09:08:15.211 [main] INFO org.apache.catalina.core.StandardService - Stopping service [Tomcat]
2023-11-18 09:08:15.217 [main] INFO o.s.b.a.l.ConditionEvaluationReportLoggingListener -
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2023-11-18 09:08:15.236 [main] ERROR org.springframework.boot.SpringApplication - Application run failed
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userController': Unsatisfied dependency expressed through field 'userService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userServiceImpl': Unsatisfied dependency expressed through field 'userMapper'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userMapper' defined in file [C:\Users\Nakam\IdeaProjects\SpringBoot\SpringBoot03\target\classes\com\msb\springboot03\mapper\UserMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [org/mybatis/spring/boot/autoconfigure/MybatisAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method 'sqlSessionFactory' threw exception; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [C:\Users\Nakam\IdeaProjects\SpringBoot\SpringBoot03\target\classes\mapper\config.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. The XML location is 'file [C:\Users\Nakam\IdeaProjects\SpringBoot\SpringBoot03\target\classes\mapper\config.xml]'. Cause: java.lang.NullPointerException
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:713)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:693)
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:119)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:408)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1431)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:619)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:955)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:921)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:147)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:732)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:409)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:308)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1300)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1289)
at com.msb.springboot03.SpringBoot03Application.main(SpringBoot03Application.java:12)
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userServiceImpl': Unsatisfied dependency expressed through field 'userMapper'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userMapper' defined in file [C:\Users\Nakam\IdeaProjects\SpringBoot\SpringBoot03\target\classes\com\msb\springboot03\mapper\UserMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [org/mybatis/spring/boot/autoconfigure/MybatisAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method 'sqlSessionFactory' threw exception; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [C:\Users\Nakam\IdeaProjects\SpringBoot\SpringBoot03\target\classes\mapper\config.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. The XML location is 'file [C:\Users\Nakam\IdeaProjects\SpringBoot\SpringBoot03\target\classes\mapper\config.xml]'. Cause: java.lang.NullPointerException
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:713)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:693)
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:119)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:408)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1431)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:619)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1391)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1311)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:710)
... 20 common frames omitted
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userMapper' defined in file [C:\Users\Nakam\IdeaProjects\SpringBoot\SpringBoot03\target\classes\com\msb\springboot03\mapper\UserMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [org/mybatis/spring/boot/autoconfigure/MybatisAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method 'sqlSessionFactory' threw exception; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [C:\Users\Nakam\IdeaProjects\SpringBoot\SpringBoot03\target\classes\mapper\config.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. The XML location is 'file [C:\Users\Nakam\IdeaProjects\SpringBoot\SpringBoot03\target\classes\mapper\config.xml]'. Cause: java.lang.NullPointerException
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByType(AbstractAutowireCapableBeanFactory.java:1534)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1417)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:619)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1391)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1311)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:710)
... 34 common frames omitted
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [org/mybatis/spring/boot/autoconfigure/MybatisAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method 'sqlSessionFactory' threw exception; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [C:\Users\Nakam\IdeaProjects\SpringBoot\SpringBoot03\target\classes\mapper\config.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. The XML location is 'file [C:\Users\Nakam\IdeaProjects\SpringBoot\SpringBoot03\target\classes\mapper\config.xml]'. Cause: java.lang.NullPointerException
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653)
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:633)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1352)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1195)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1391)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1311)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByType(AbstractAutowireCapableBeanFactory.java:1519)
... 45 common frames omitted
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.ibatis.session.SqlSessionFactory]: Factory method 'sqlSessionFactory' threw exception; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [C:\Users\Nakam\IdeaProjects\SpringBoot\SpringBoot03\target\classes\mapper\config.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. The XML location is 'file [C:\Users\Nakam\IdeaProjects\SpringBoot\SpringBoot03\target\classes\mapper\config.xml]'. Cause: java.lang.NullPointerException
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185)
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:648)
... 58 common frames omitted
Caused by: org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [C:\Users\Nakam\IdeaProjects\SpringBoot\SpringBoot03\target\classes\mapper\config.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. The XML location is 'file [C:\Users\Nakam\IdeaProjects\SpringBoot\SpringBoot03\target\classes\mapper\config.xml]'. Cause: java.lang.NullPointerException
at org.mybatis.spring.SqlSessionFactoryBean.buildSqlSessionFactory(SqlSessionFactoryBean.java:612)
at org.mybatis.spring.SqlSessionFactoryBean.afterPropertiesSet(SqlSessionFactoryBean.java:490)
at org.mybatis.spring.SqlSessionFactoryBean.getObject(SqlSessionFactoryBean.java:632)
at org.mybatis.spring.boot.autoconfigure.MybatisAutoConfiguration.sqlSessionFactory(MybatisAutoConfiguration.java:180)
at org.mybatis.spring.boot.autoconfigure.MybatisAutoConfiguration$$EnhancerBySpringCGLIB$$861e0eb0.CGLIB$sqlSessionFactory$1(<generated>)
at org.mybatis.spring.boot.autoconfigure.MybatisAutoConfiguration$$EnhancerBySpringCGLIB$$861e0eb0$$FastClassBySpringCGLIB$$a019c03.invoke(<generated>)
at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244)
at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:331)
at org.mybatis.spring.boot.autoconfigure.MybatisAutoConfiguration$$EnhancerBySpringCGLIB$$861e0eb0.sqlSessionFactory(<generated>)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154)
... 59 common frames omitted
Caused by: org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. The XML location is 'file [C:\Users\Nakam\IdeaProjects\SpringBoot\SpringBoot03\target\classes\mapper\config.xml]'. Cause: java.lang.NullPointerException
at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:123)
at org.apache.ibatis.builder.xml.XMLMapperBuilder.parse(XMLMapperBuilder.java:95)
at org.mybatis.spring.SqlSessionFactoryBean.buildSqlSessionFactory(SqlSessionFactoryBean.java:610)
... 72 common frames omitted
Caused by: java.lang.NullPointerException: null
at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:111)
... 74 common frames omitted
2023-11-18 09:12:46.407 [main] INFO com.msb.springboot03.SpringBoot03Application - Starting SpringBoot03Application using Java 1.8.0_382 on Nakami-12gen with PID 18908 (C:\Users\Nakam\IdeaProjects\SpringBoot\SpringBoot03\target\classes started by Nakam in C:\Users\Nakam\IdeaProjects\SpringBoot)
2023-11-18 09:12:46.410 [main] INFO com.msb.springboot03.SpringBoot03Application - No active profile set, falling back to 1 default profile: "default"
2023-11-18 09:12:47.028 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat initialized with port(s): 9000 (http)
2023-11-18 09:12:47.033 [main] INFO org.apache.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-9000"]
2023-11-18 09:12:47.035 [main] INFO org.apache.catalina.core.StandardService - Starting service [Tomcat]
2023-11-18 09:12:47.035 [main] INFO org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.82]
2023-11-18 09:12:47.091 [main] INFO o.a.c.c.ContainerBase.[Tomcat].[localhost].[/yml] - Initializing Spring embedded WebApplicationContext
2023-11-18 09:12:47.091 [main] INFO o.s.b.w.s.c.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 655 ms
2023-11-18 09:12:47.473 [main] INFO org.apache.coyote.http11.Http11NioProtocol - Starting ProtocolHandler ["http-nio-9000"]
2023-11-18 09:12:47.484 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat started on port(s): 9000 (http) with context path '/yml'
2023-11-18 09:12:47.491 [main] INFO com.msb.springboot03.SpringBoot03Application - Started SpringBoot03Application in 1.344 seconds (JVM running for 1.808)
2023-11-18 09:12:55.850 [http-nio-9000-exec-1] INFO o.a.c.c.ContainerBase.[Tomcat].[localhost].[/yml] - Initializing Spring DispatcherServlet 'dispatcherServlet'
2023-11-18 09:12:55.851 [http-nio-9000-exec-1] INFO org.springframework.web.servlet.DispatcherServlet - Initializing Servlet 'dispatcherServlet'
2023-11-18 09:12:55.852 [http-nio-9000-exec-1] INFO org.springframework.web.servlet.DispatcherServlet - Completed initialization in 1 ms
2023-11-18 09:13:20.042 [http-nio-9000-exec-1] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Starting...
2023-11-18 09:13:20.118 [http-nio-9000-exec-1] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Start completed.
2023-11-18 09:13:20.123 [http-nio-9000-exec-1] DEBUG com.msb.springboot03.mapper.UserMapper.selectAll - ==> Preparing: SELECT * FROM USER
2023-11-18 09:13:20.137 [http-nio-9000-exec-1] DEBUG com.msb.springboot03.mapper.UserMapper.selectAll - ==> Parameters:
2023-11-18 09:13:20.156 [http-nio-9000-exec-1] DEBUG com.msb.springboot03.mapper.UserMapper.selectAll - <== Total: 57
2023-11-18 09:13:29.898 [http-nio-9000-exec-1] DEBUG com.msb.springboot03.mapper.UserMapper.selectAll - ==> Preparing: SELECT * FROM USER
2023-11-18 09:13:29.898 [http-nio-9000-exec-1] DEBUG com.msb.springboot03.mapper.UserMapper.selectAll - ==> Parameters:
2023-11-18 09:13:29.901 [http-nio-9000-exec-1] DEBUG com.msb.springboot03.mapper.UserMapper.selectAll - <== Total: 57
2023-11-18 09:17:41.738 [SpringApplicationShutdownHook] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Shutdown initiated...
2023-11-18 09:17:41.743 [SpringApplicationShutdownHook] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Shutdown completed.
2023-11-18 09:17:44.622 [main] INFO com.msb.springboot03.SpringBoot03Application - Starting SpringBoot03Application using Java 1.8.0_382 on Nakami-12gen with PID 860 (C:\Users\Nakam\IdeaProjects\SpringBoot\SpringBoot03\target\classes started by Nakam in C:\Users\Nakam\IdeaProjects\SpringBoot)
2023-11-18 09:17:44.625 [main] INFO com.msb.springboot03.SpringBoot03Application - No active profile set, falling back to 1 default profile: "default"
2023-11-18 09:17:45.248 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat initialized with port(s): 9000 (http)
2023-11-18 09:17:45.254 [main] INFO org.apache.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-9000"]
2023-11-18 09:17:45.255 [main] INFO org.apache.catalina.core.StandardService - Starting service [Tomcat]
2023-11-18 09:17:45.255 [main] INFO org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.82]
2023-11-18 09:17:45.309 [main] INFO o.a.c.c.ContainerBase.[Tomcat].[localhost].[/yml] - Initializing Spring embedded WebApplicationContext
2023-11-18 09:17:45.309 [main] INFO o.s.b.w.s.c.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 658 ms
2023-11-18 09:17:45.692 [main] INFO org.apache.coyote.http11.Http11NioProtocol - Starting ProtocolHandler ["http-nio-9000"]
2023-11-18 09:17:45.705 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat started on port(s): 9000 (http) with context path '/yml'
2023-11-18 09:17:45.711 [main] INFO com.msb.springboot03.SpringBoot03Application - Started SpringBoot03Application in 1.354 seconds (JVM running for 1.827)
2023-11-18 09:18:03.804 [main] INFO com.msb.springboot03.SpringBoot03Application - Starting SpringBoot03Application using Java 1.8.0_382 on Nakami-12gen with PID 21216 (C:\Users\Nakam\IdeaProjects\SpringBoot\SpringBoot03\target\classes started by Nakam in C:\Users\Nakam\IdeaProjects\SpringBoot)
2023-11-18 09:18:03.806 [main] INFO com.msb.springboot03.SpringBoot03Application - No active profile set, falling back to 1 default profile: "default"
2023-11-18 09:18:04.420 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat initialized with port(s): 9000 (http)
2023-11-18 09:18:04.424 [main] INFO org.apache.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-9000"]
2023-11-18 09:18:04.425 [main] INFO org.apache.catalina.core.StandardService - Starting service [Tomcat]
2023-11-18 09:18:04.426 [main] INFO org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.82]
2023-11-18 09:18:04.477 [main] INFO o.a.c.c.ContainerBase.[Tomcat].[localhost].[/yml] - Initializing Spring embedded WebApplicationContext
2023-11-18 09:18:04.477 [main] INFO o.s.b.w.s.c.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 642 ms
2023-11-18 09:18:04.799 [main] WARN o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.github.pagehelper.autoconfigure.PageHelperAutoConfiguration': Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'com.github.pagehelper.autoconfigure.PageHelperAutoConfiguration': Requested bean is currently in creation: Is there an unresolvable circular reference?
2023-11-18 09:18:04.801 [main] INFO org.apache.catalina.core.StandardService - Stopping service [Tomcat]
2023-11-18 09:18:04.807 [main] INFO o.s.b.a.l.ConditionEvaluationReportLoggingListener -
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2023-11-18 09:18:04.818 [main] ERROR o.s.b.diagnostics.LoggingFailureAnalysisReporter -
***************************
APPLICATION FAILED TO START
***************************
Description:
The dependencies of some of the beans in the application context form a cycle:
┌──->──┐
| com.github.pagehelper.autoconfigure.PageHelperAutoConfiguration
└──<-──┘
Action:
Relying upon circular references is discouraged and they are prohibited by default. Update your application to remove the dependency cycle between beans. As a last resort, it may be possible to break the cycle automatically by setting spring.main.allow-circular-references to true.
2023-11-18 09:19:08.912 [main] INFO com.msb.springboot03.SpringBoot03Application - Starting SpringBoot03Application using Java 1.8.0_382 on Nakami-12gen with PID 4672 (C:\Users\Nakam\IdeaProjects\SpringBoot\SpringBoot03\target\classes started by Nakam in C:\Users\Nakam\IdeaProjects\SpringBoot)
2023-11-18 09:19:08.914 [main] INFO com.msb.springboot03.SpringBoot03Application - No active profile set, falling back to 1 default profile: "default"
2023-11-18 09:19:09.530 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat initialized with port(s): 9000 (http)
2023-11-18 09:19:09.535 [main] INFO org.apache.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-9000"]
2023-11-18 09:19:09.536 [main] INFO org.apache.catalina.core.StandardService - Starting service [Tomcat]
2023-11-18 09:19:09.537 [main] INFO org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.82]
2023-11-18 09:19:09.592 [main] INFO o.a.c.c.ContainerBase.[Tomcat].[localhost].[/yml] - Initializing Spring embedded WebApplicationContext
2023-11-18 09:19:09.592 [main] INFO o.s.b.w.s.c.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 652 ms
2023-11-18 09:19:09.928 [main] WARN o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.github.pagehelper.autoconfigure.PageHelperAutoConfiguration': Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'com.github.pagehelper.autoconfigure.PageHelperAutoConfiguration': Requested bean is currently in creation: Is there an unresolvable circular reference?
2023-11-18 09:19:09.930 [main] INFO org.apache.catalina.core.StandardService - Stopping service [Tomcat]
2023-11-18 09:19:09.936 [main] INFO o.s.b.a.l.ConditionEvaluationReportLoggingListener -
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2023-11-18 09:19:09.947 [main] ERROR o.s.b.diagnostics.LoggingFailureAnalysisReporter -
***************************
APPLICATION FAILED TO START
***************************
Description:
The dependencies of some of the beans in the application context form a cycle:
┌──->──┐
| com.github.pagehelper.autoconfigure.PageHelperAutoConfiguration
└──<-──┘
Action:
Relying upon circular references is discouraged and they are prohibited by default. Update your application to remove the dependency cycle between beans. As a last resort, it may be possible to break the cycle automatically by setting spring.main.allow-circular-references to true.
2023-11-18 09:23:11.478 [main] INFO com.msb.springboot03.SpringBoot03Application - Starting SpringBoot03Application using Java 1.8.0_382 on Nakami-12gen with PID 19652 (C:\Users\Nakam\IdeaProjects\SpringBoot\SpringBoot03\target\classes started by Nakam in C:\Users\Nakam\IdeaProjects\SpringBoot)
2023-11-18 09:23:11.480 [main] INFO com.msb.springboot03.SpringBoot03Application - No active profile set, falling back to 1 default profile: "default"
2023-11-18 09:23:12.178 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat initialized with port(s): 9000 (http)
2023-11-18 09:23:12.183 [main] INFO org.apache.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-9000"]
2023-11-18 09:23:12.184 [main] INFO org.apache.catalina.core.StandardService - Starting service [Tomcat]
2023-11-18 09:23:12.184 [main] INFO org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.82]
2023-11-18 09:23:12.248 [main] INFO o.a.c.c.ContainerBase.[Tomcat].[localhost].[/yml] - Initializing Spring embedded WebApplicationContext
2023-11-18 09:23:12.248 [main] INFO o.s.b.w.s.c.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 739 ms
2023-11-18 09:23:12.307 [main] INFO c.a.d.s.b.a.DruidDataSourceAutoConfigure - Init DruidDataSource
2023-11-18 09:23:12.386 [main] INFO com.alibaba.druid.pool.DruidDataSource - {dataSource-1} inited
2023-11-18 09:23:12.700 [main] WARN o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.github.pagehelper.autoconfigure.PageHelperAutoConfiguration': Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'com.github.pagehelper.autoconfigure.PageHelperAutoConfiguration': Requested bean is currently in creation: Is there an unresolvable circular reference?
2023-11-18 09:23:12.701 [main] INFO com.alibaba.druid.pool.DruidDataSource - {dataSource-1} closed
2023-11-18 09:23:12.702 [main] INFO org.apache.catalina.core.StandardService - Stopping service [Tomcat]
2023-11-18 09:23:12.710 [main] INFO o.s.b.a.l.ConditionEvaluationReportLoggingListener -
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2023-11-18 09:23:12.721 [main] ERROR o.s.b.diagnostics.LoggingFailureAnalysisReporter -
***************************
APPLICATION FAILED TO START
***************************
Description:
The dependencies of some of the beans in the application context form a cycle:
┌──->──┐
| com.github.pagehelper.autoconfigure.PageHelperAutoConfiguration
└──<-──┘
Action:
Relying upon circular references is discouraged and they are prohibited by default. Update your application to remove the dependency cycle between beans. As a last resort, it may be possible to break the cycle automatically by setting spring.main.allow-circular-references to true.
2023-11-18 09:24:40.299 [main] INFO com.msb.springboot03.SpringBoot03Application - Starting SpringBoot03Application using Java 1.8.0_382 on Nakami-12gen with PID 28268 (C:\Users\Nakam\IdeaProjects\SpringBoot\SpringBoot03\target\classes started by Nakam in C:\Users\Nakam\IdeaProjects\SpringBoot)
2023-11-18 09:24:40.301 [main] INFO com.msb.springboot03.SpringBoot03Application - No active profile set, falling back to 1 default profile: "default"
2023-11-18 09:24:40.928 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat initialized with port(s): 9000 (http)
2023-11-18 09:24:40.933 [main] INFO org.apache.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-9000"]
2023-11-18 09:24:40.934 [main] INFO org.apache.catalina.core.StandardService - Starting service [Tomcat]
2023-11-18 09:24:40.934 [main] INFO org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.82]
2023-11-18 09:24:40.988 [main] INFO o.a.c.c.ContainerBase.[Tomcat].[localhost].[/yml] - Initializing Spring embedded WebApplicationContext
2023-11-18 09:24:40.988 [main] INFO o.s.b.w.s.c.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 658 ms
2023-11-18 09:24:41.337 [main] WARN o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.github.pagehelper.autoconfigure.PageHelperAutoConfiguration': Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'com.github.pagehelper.autoconfigure.PageHelperAutoConfiguration': Requested bean is currently in creation: Is there an unresolvable circular reference?
2023-11-18 09:24:41.339 [main] INFO org.apache.catalina.core.StandardService - Stopping service [Tomcat]
2023-11-18 09:24:41.346 [main] INFO o.s.b.a.l.ConditionEvaluationReportLoggingListener -
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2023-11-18 09:24:41.356 [main] ERROR o.s.b.diagnostics.LoggingFailureAnalysisReporter -
***************************
APPLICATION FAILED TO START
***************************
Description:
The dependencies of some of the beans in the application context form a cycle:
┌──->──┐
| com.github.pagehelper.autoconfigure.PageHelperAutoConfiguration
└──<-──┘
Action:
Relying upon circular references is discouraged and they are prohibited by default. Update your application to remove the dependency cycle between beans. As a last resort, it may be possible to break the cycle automatically by setting spring.main.allow-circular-references to true.
2023-11-18 09:27:39.314 [main] INFO com.msb.springboot03.SpringBoot03Application - Starting SpringBoot03Application using Java 1.8.0_382 on Nakami-12gen with PID 18588 (C:\Users\Nakam\IdeaProjects\SpringBoot\SpringBoot03\target\classes started by Nakam in C:\Users\Nakam\IdeaProjects\SpringBoot)
2023-11-18 09:27:39.315 [main] INFO com.msb.springboot03.SpringBoot03Application - No active profile set, falling back to 1 default profile: "default"
2023-11-18 09:27:39.984 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat initialized with port(s): 9000 (http)
2023-11-18 09:27:39.990 [main] INFO org.apache.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-9000"]
2023-11-18 09:27:39.991 [main] INFO org.apache.catalina.core.StandardService - Starting service [Tomcat]
2023-11-18 09:27:39.991 [main] INFO org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.82]
2023-11-18 09:27:40.046 [main] INFO o.a.c.c.ContainerBase.[Tomcat].[localhost].[/yml] - Initializing Spring embedded WebApplicationContext
2023-11-18 09:27:40.046 [main] INFO o.s.b.w.s.c.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 704 ms
2023-11-18 09:27:40.387 [main] WARN o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.github.pagehelper.autoconfigure.PageHelperAutoConfiguration': Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'com.github.pagehelper.autoconfigure.PageHelperAutoConfiguration': Requested bean is currently in creation: Is there an unresolvable circular reference?
2023-11-18 09:27:40.390 [main] INFO org.apache.catalina.core.StandardService - Stopping service [Tomcat]
2023-11-18 09:27:40.396 [main] INFO o.s.b.a.l.ConditionEvaluationReportLoggingListener -
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2023-11-18 09:27:40.407 [main] ERROR o.s.b.diagnostics.LoggingFailureAnalysisReporter -
***************************
APPLICATION FAILED TO START
***************************
Description:
The dependencies of some of the beans in the application context form a cycle:
┌──->──┐
| com.github.pagehelper.autoconfigure.PageHelperAutoConfiguration
└──<-──┘
Action:
Relying upon circular references is discouraged and they are prohibited by default. Update your application to remove the dependency cycle between beans. As a last resort, it may be possible to break the cycle automatically by setting spring.main.allow-circular-references to true.
2023-11-18 09:28:55.122 [main] INFO com.msb.springboot03.SpringBoot03Application - Starting SpringBoot03Application using Java 1.8.0_382 on Nakami-12gen with PID 13080 (C:\Users\Nakam\IdeaProjects\SpringBoot\SpringBoot03\target\classes started by Nakam in C:\Users\Nakam\IdeaProjects\SpringBoot)
2023-11-18 09:28:55.124 [main] INFO com.msb.springboot03.SpringBoot03Application - No active profile set, falling back to default profiles: default
2023-11-18 09:28:55.815 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat initialized with port(s): 9000 (http)
2023-11-18 09:28:55.822 [main] INFO org.apache.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-9000"]
2023-11-18 09:28:55.822 [main] INFO org.apache.catalina.core.StandardService - Starting service [Tomcat]
2023-11-18 09:28:55.822 [main] INFO org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.45]
2023-11-18 09:28:55.865 [main] INFO o.a.c.c.ContainerBase.[Tomcat].[localhost].[/yml] - Initializing Spring embedded WebApplicationContext
2023-11-18 09:28:55.865 [main] INFO o.s.b.w.s.c.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 711 ms
2023-11-18 09:28:56.110 [main] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor - Initializing ExecutorService 'applicationTaskExecutor'
2023-11-18 09:28:56.284 [main] INFO org.apache.coyote.http11.Http11NioProtocol - Starting ProtocolHandler ["http-nio-9000"]
2023-11-18 09:28:56.296 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat started on port(s): 9000 (http) with context path '/yml'
2023-11-18 09:28:56.302 [main] INFO com.msb.springboot03.SpringBoot03Application - Started SpringBoot03Application in 1.461 seconds (JVM running for 2.455)
2023-11-18 09:29:09.886 [http-nio-9000-exec-1] INFO o.a.c.c.ContainerBase.[Tomcat].[localhost].[/yml] - Initializing Spring DispatcherServlet 'dispatcherServlet'
2023-11-18 09:29:09.886 [http-nio-9000-exec-1] INFO org.springframework.web.servlet.DispatcherServlet - Initializing Servlet 'dispatcherServlet'
2023-11-18 09:29:09.887 [http-nio-9000-exec-1] INFO org.springframework.web.servlet.DispatcherServlet - Completed initialization in 1 ms
2023-11-18 09:29:09.916 [http-nio-9000-exec-1] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Starting...
2023-11-18 09:29:09.988 [http-nio-9000-exec-1] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Start completed.
2023-11-18 09:29:10.013 [http-nio-9000-exec-1] DEBUG c.m.springboot03.mapper.UserMapper.selectAll_COUNT - ==> Preparing: SELECT count(0) FROM USER
2023-11-18 09:29:10.026 [http-nio-9000-exec-1] DEBUG c.m.springboot03.mapper.UserMapper.selectAll_COUNT - ==> Parameters:
2023-11-18 09:29:10.038 [http-nio-9000-exec-1] DEBUG c.m.springboot03.mapper.UserMapper.selectAll_COUNT - <== Total: 1
2023-11-18 09:29:10.041 [http-nio-9000-exec-1] DEBUG com.msb.springboot03.mapper.UserMapper.selectAll - ==> Preparing: SELECT * FROM USER LIMIT ?
2023-11-18 09:29:10.041 [http-nio-9000-exec-1] DEBUG com.msb.springboot03.mapper.UserMapper.selectAll - ==> Parameters: 20(Integer)
2023-11-18 09:29:10.043 [http-nio-9000-exec-1] DEBUG com.msb.springboot03.mapper.UserMapper.selectAll - <== Total: 20
2023-11-18 09:29:22.176 [http-nio-9000-exec-2] DEBUG c.m.springboot03.mapper.UserMapper.selectAll_COUNT - ==> Preparing: SELECT count(0) FROM USER
2023-11-18 09:29:22.176 [http-nio-9000-exec-2] DEBUG c.m.springboot03.mapper.UserMapper.selectAll_COUNT - ==> Parameters:
2023-11-18 09:29:22.177 [http-nio-9000-exec-2] DEBUG c.m.springboot03.mapper.UserMapper.selectAll_COUNT - <== Total: 1
2023-11-18 09:29:22.177 [http-nio-9000-exec-2] DEBUG com.msb.springboot03.mapper.UserMapper.selectAll - ==> Preparing: SELECT * FROM USER LIMIT ?, ?
2023-11-18 09:29:22.178 [http-nio-9000-exec-2] DEBUG com.msb.springboot03.mapper.UserMapper.selectAll - ==> Parameters: 6(Integer), 1(Integer)
2023-11-18 09:29:22.178 [http-nio-9000-exec-2] DEBUG com.msb.springboot03.mapper.UserMapper.selectAll - <== Total: 1
2023-11-18 09:30:37.994 [SpringContextShutdownHook] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor - Shutting down ExecutorService 'applicationTaskExecutor'
2023-11-18 09:30:37.995 [SpringContextShutdownHook] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Shutdown initiated...
2023-11-18 09:30:37.998 [SpringContextShutdownHook] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Shutdown completed.
2023-11-18 09:30:41.876 [main] INFO com.msb.springboot03.SpringBoot03Application - Starting SpringBoot03Application using Java 1.8.0_382 on Nakami-12gen with PID 15976 (C:\Users\Nakam\IdeaProjects\SpringBoot\SpringBoot03\target\classes started by Nakam in C:\Users\Nakam\IdeaProjects\SpringBoot)
2023-11-18 09:30:41.878 [main] INFO com.msb.springboot03.SpringBoot03Application - No active profile set, falling back to default profiles: default
2023-11-18 09:30:42.511 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat initialized with port(s): 9000 (http)
2023-11-18 09:30:42.518 [main] INFO org.apache.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-9000"]
2023-11-18 09:30:42.518 [main] INFO org.apache.catalina.core.StandardService - Starting service [Tomcat]
2023-11-18 09:30:42.518 [main] INFO org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.45]
2023-11-18 09:30:42.559 [main] INFO o.a.c.c.ContainerBase.[Tomcat].[localhost].[/yml] - Initializing Spring embedded WebApplicationContext
2023-11-18 09:30:42.559 [main] INFO o.s.b.w.s.c.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 651 ms
2023-11-18 09:30:42.814 [main] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor - Initializing ExecutorService 'applicationTaskExecutor'
2023-11-18 09:30:42.978 [main] INFO org.apache.coyote.http11.Http11NioProtocol - Starting ProtocolHandler ["http-nio-9000"]
2023-11-18 09:30:42.990 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat started on port(s): 9000 (http) with context path '/yml'
2023-11-18 09:30:42.996 [main] INFO com.msb.springboot03.SpringBoot03Application - Started SpringBoot03Application in 1.419 seconds (JVM running for 1.916)
2023-11-18 09:30:45.988 [http-nio-9000-exec-1] INFO o.a.c.c.ContainerBase.[Tomcat].[localhost].[/yml] - Initializing Spring DispatcherServlet 'dispatcherServlet'
2023-11-18 09:30:45.988 [http-nio-9000-exec-1] INFO org.springframework.web.servlet.DispatcherServlet - Initializing Servlet 'dispatcherServlet'
2023-11-18 09:30:45.989 [http-nio-9000-exec-1] INFO org.springframework.web.servlet.DispatcherServlet - Completed initialization in 1 ms
2023-11-18 09:30:46.018 [http-nio-9000-exec-1] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Starting...
2023-11-18 09:30:46.093 [http-nio-9000-exec-1] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Start completed.
2023-11-18 09:30:46.119 [http-nio-9000-exec-1] DEBUG c.m.springboot03.mapper.UserMapper.selectAll_COUNT - ==> Preparing: SELECT count(0) FROM USER
2023-11-18 09:30:46.132 [http-nio-9000-exec-1] DEBUG c.m.springboot03.mapper.UserMapper.selectAll_COUNT - ==> Parameters:
2023-11-18 09:30:46.145 [http-nio-9000-exec-1] DEBUG c.m.springboot03.mapper.UserMapper.selectAll_COUNT - <== Total: 1
2023-11-18 09:30:46.147 [http-nio-9000-exec-1] DEBUG com.msb.springboot03.mapper.UserMapper.selectAll - ==> Preparing: SELECT * FROM USER LIMIT ?, ?
2023-11-18 09:30:46.148 [http-nio-9000-exec-1] DEBUG com.msb.springboot03.mapper.UserMapper.selectAll - ==> Parameters: 6(Integer), 1(Integer)
2023-11-18 09:30:46.149 [http-nio-9000-exec-1] DEBUG com.msb.springboot03.mapper.UserMapper.selectAll - <== Total: 1
2023-11-18 09:31:25.563 [SpringContextShutdownHook] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor - Shutting down ExecutorService 'applicationTaskExecutor'
2023-11-18 09:31:25.563 [SpringContextShutdownHook] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Shutdown initiated...
2023-11-18 09:31:25.568 [SpringContextShutdownHook] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Shutdown completed.
2023-11-18 09:31:28.664 [main] INFO com.msb.springboot03.SpringBoot03Application - Starting SpringBoot03Application using Java 1.8.0_382 on Nakami-12gen with PID 26604 (C:\Users\Nakam\IdeaProjects\SpringBoot\SpringBoot03\target\classes started by Nakam in C:\Users\Nakam\IdeaProjects\SpringBoot)
2023-11-18 09:31:28.665 [main] INFO com.msb.springboot03.SpringBoot03Application - No active profile set, falling back to default profiles: default
2023-11-18 09:31:29.275 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat initialized with port(s): 9000 (http)
2023-11-18 09:31:29.281 [main] INFO org.apache.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-9000"]
2023-11-18 09:31:29.282 [main] INFO org.apache.catalina.core.StandardService - Starting service [Tomcat]
2023-11-18 09:31:29.282 [main] INFO org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.45]
2023-11-18 09:31:29.321 [main] INFO o.a.c.c.ContainerBase.[Tomcat].[localhost].[/yml] - Initializing Spring embedded WebApplicationContext
2023-11-18 09:31:29.321 [main] INFO o.s.b.w.s.c.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 627 ms
2023-11-18 09:31:29.566 [main] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor - Initializing ExecutorService 'applicationTaskExecutor'
2023-11-18 09:31:29.717 [main] INFO org.apache.coyote.http11.Http11NioProtocol - Starting ProtocolHandler ["http-nio-9000"]
2023-11-18 09:31:29.729 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat started on port(s): 9000 (http) with context path '/yml'
2023-11-18 09:31:29.734 [main] INFO com.msb.springboot03.SpringBoot03Application - Started SpringBoot03Application in 1.331 seconds (JVM running for 1.778)
2023-11-18 09:31:31.305 [http-nio-9000-exec-1] INFO o.a.c.c.ContainerBase.[Tomcat].[localhost].[/yml] - Initializing Spring DispatcherServlet 'dispatcherServlet'
2023-11-18 09:31:31.305 [http-nio-9000-exec-1] INFO org.springframework.web.servlet.DispatcherServlet - Initializing Servlet 'dispatcherServlet'
2023-11-18 09:31:31.306 [http-nio-9000-exec-1] INFO org.springframework.web.servlet.DispatcherServlet - Completed initialization in 0 ms
2023-11-18 09:31:31.334 [http-nio-9000-exec-1] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Starting...
2023-11-18 09:31:31.409 [http-nio-9000-exec-1] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Start completed.
2023-11-18 09:31:31.434 [http-nio-9000-exec-1] DEBUG c.m.springboot03.mapper.UserMapper.selectAll_COUNT - ==> Preparing: SELECT count(0) FROM USER
2023-11-18 09:31:31.448 [http-nio-9000-exec-1] DEBUG c.m.springboot03.mapper.UserMapper.selectAll_COUNT - ==> Parameters:
2023-11-18 09:31:31.461 [http-nio-9000-exec-1] DEBUG c.m.springboot03.mapper.UserMapper.selectAll_COUNT - <== Total: 1
2023-11-18 09:31:54.796 [http-nio-9000-exec-2] DEBUG c.m.springboot03.mapper.UserMapper.selectAll_COUNT - ==> Preparing: SELECT count(0) FROM USER
2023-11-18 09:31:54.796 [http-nio-9000-exec-2] DEBUG c.m.springboot03.mapper.UserMapper.selectAll_COUNT - ==> Parameters:
2023-11-18 09:31:54.797 [http-nio-9000-exec-2] DEBUG c.m.springboot03.mapper.UserMapper.selectAll_COUNT - <== Total: 1
2023-11-18 09:32:44.177 [http-nio-9000-exec-4] DEBUG c.m.springboot03.mapper.UserMapper.selectAll_COUNT - ==> Preparing: SELECT count(0) FROM USER
2023-11-18 09:32:44.178 [http-nio-9000-exec-4] DEBUG c.m.springboot03.mapper.UserMapper.selectAll_COUNT - ==> Parameters:
2023-11-18 09:32:44.180 [http-nio-9000-exec-4] DEBUG c.m.springboot03.mapper.UserMapper.selectAll_COUNT - <== Total: 1
2023-11-18 09:38:10.363 [SpringContextShutdownHook] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor - Shutting down ExecutorService 'applicationTaskExecutor'
2023-11-18 09:38:10.364 [SpringContextShutdownHook] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Shutdown initiated...
2023-11-18 09:38:10.367 [SpringContextShutdownHook] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Shutdown completed.
2023-11-18 09:38:14.023 [main] INFO com.msb.springboot03.SpringBoot03Application - Starting SpringBoot03Application using Java 1.8.0_382 on Nakami-12gen with PID 27396 (C:\Users\Nakam\IdeaProjects\SpringBoot\SpringBoot03\target\classes started by Nakam in C:\Users\Nakam\IdeaProjects\SpringBoot)
2023-11-18 09:38:14.025 [main] INFO com.msb.springboot03.SpringBoot03Application - No active profile set, falling back to default profiles: default
2023-11-18 09:38:14.631 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat initialized with port(s): 9000 (http)
2023-11-18 09:38:14.637 [main] INFO org.apache.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-9000"]
2023-11-18 09:38:14.637 [main] INFO org.apache.catalina.core.StandardService - Starting service [Tomcat]
2023-11-18 09:38:14.637 [main] INFO org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.45]
2023-11-18 09:38:14.676 [main] INFO o.a.c.c.ContainerBase.[Tomcat].[localhost].[/yml] - Initializing Spring embedded WebApplicationContext
2023-11-18 09:38:14.676 [main] INFO o.s.b.w.s.c.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 625 ms
2023-11-18 09:38:14.912 [main] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor - Initializing ExecutorService 'applicationTaskExecutor'
2023-11-18 09:38:15.079 [main] INFO org.apache.coyote.http11.Http11NioProtocol - Starting ProtocolHandler ["http-nio-9000"]
2023-11-18 09:38:15.089 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat started on port(s): 9000 (http) with context path '/yml'
2023-11-18 09:38:15.096 [main] INFO com.msb.springboot03.SpringBoot03Application - Started SpringBoot03Application in 1.33 seconds (JVM running for 1.766)
2023-11-18 09:38:18.681 [http-nio-9000-exec-1] INFO o.a.c.c.ContainerBase.[Tomcat].[localhost].[/yml] - Initializing Spring DispatcherServlet 'dispatcherServlet'
2023-11-18 09:38:18.681 [http-nio-9000-exec-1] INFO org.springframework.web.servlet.DispatcherServlet - Initializing Servlet 'dispatcherServlet'
2023-11-18 09:38:18.681 [http-nio-9000-exec-1] INFO org.springframework.web.servlet.DispatcherServlet - Completed initialization in 0 ms
2023-11-18 09:38:18.710 [http-nio-9000-exec-1] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Starting...
2023-11-18 09:38:18.786 [http-nio-9000-exec-1] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Start completed.
2023-11-18 09:38:18.812 [http-nio-9000-exec-1] DEBUG c.m.springboot03.mapper.UserMapper.selectAll_COUNT - ==> Preparing: SELECT count(0) FROM USER
2023-11-18 09:38:18.825 [http-nio-9000-exec-1] DEBUG c.m.springboot03.mapper.UserMapper.selectAll_COUNT - ==> Parameters:
2023-11-18 09:38:18.839 [http-nio-9000-exec-1] DEBUG c.m.springboot03.mapper.UserMapper.selectAll_COUNT - <== Total: 1
2023-11-18 09:38:18.841 [http-nio-9000-exec-1] DEBUG com.msb.springboot03.mapper.UserMapper.selectAll - ==> Preparing: SELECT * FROM USER LIMIT ?, ?
2023-11-18 09:38:18.842 [http-nio-9000-exec-1] DEBUG com.msb.springboot03.mapper.UserMapper.selectAll - ==> Parameters: 6(Integer), 1(Integer)
2023-11-18 09:38:18.843 [http-nio-9000-exec-1] DEBUG com.msb.springboot03.mapper.UserMapper.selectAll - <== Total: 1
2023-11-18 09:38:29.695 [http-nio-9000-exec-2] DEBUG c.m.springboot03.mapper.UserMapper.selectAll_COUNT - ==> Preparing: SELECT count(0) FROM USER
2023-11-18 09:38:29.696 [http-nio-9000-exec-2] DEBUG c.m.springboot03.mapper.UserMapper.selectAll_COUNT - ==> Parameters:
2023-11-18 09:38:29.697 [http-nio-9000-exec-2] DEBUG c.m.springboot03.mapper.UserMapper.selectAll_COUNT - <== Total: 1
2023-11-18 09:38:50.258 [http-nio-9000-exec-3] DEBUG c.m.springboot03.mapper.UserMapper.selectAll_COUNT - ==> Preparing: SELECT count(0) FROM USER
2023-11-18 09:38:50.259 [http-nio-9000-exec-3] DEBUG c.m.springboot03.mapper.UserMapper.selectAll_COUNT - ==> Parameters:
2023-11-18 09:38:50.260 [http-nio-9000-exec-3] DEBUG c.m.springboot03.mapper.UserMapper.selectAll_COUNT - <== Total: 1
2023-11-18 09:38:50.260 [http-nio-9000-exec-3] DEBUG com.msb.springboot03.mapper.UserMapper.selectAll - ==> Preparing: SELECT * FROM USER LIMIT ?
2023-11-18 09:38:50.260 [http-nio-9000-exec-3] DEBUG com.msb.springboot03.mapper.UserMapper.selectAll - ==> Parameters: 20(Integer)
2023-11-18 09:38:50.263 [http-nio-9000-exec-3] DEBUG com.msb.springboot03.mapper.UserMapper.selectAll - <== Total: 20
2023-11-18 09:38:59.657 [http-nio-9000-exec-4] DEBUG c.m.springboot03.mapper.UserMapper.selectAll_COUNT - ==> Preparing: SELECT count(0) FROM USER
2023-11-18 09:38:59.658 [http-nio-9000-exec-4] DEBUG c.m.springboot03.mapper.UserMapper.selectAll_COUNT - ==> Parameters:
2023-11-18 09:38:59.659 [http-nio-9000-exec-4] DEBUG c.m.springboot03.mapper.UserMapper.selectAll_COUNT - <== Total: 1
2023-11-18 09:39:35.740 [http-nio-9000-exec-6] DEBUG c.m.springboot03.mapper.UserMapper.selectAll_COUNT - ==> Preparing: SELECT count(0) FROM USER
2023-11-18 09:39:35.740 [http-nio-9000-exec-6] DEBUG c.m.springboot03.mapper.UserMapper.selectAll_COUNT - ==> Parameters:
2023-11-18 09:39:35.741 [http-nio-9000-exec-6] DEBUG c.m.springboot03.mapper.UserMapper.selectAll_COUNT - <== Total: 1
2023-11-18 09:39:35.741 [http-nio-9000-exec-6] DEBUG com.msb.springboot03.mapper.UserMapper.selectAll - ==> Preparing: SELECT * FROM USER LIMIT ?
2023-11-18 09:39:35.741 [http-nio-9000-exec-6] DEBUG com.msb.springboot03.mapper.UserMapper.selectAll - ==> Parameters: 20(Integer)
2023-11-18 09:39:35.742 [http-nio-9000-exec-6] DEBUG com.msb.springboot03.mapper.UserMapper.selectAll - <== Total: 20
2023-11-18 09:39:43.562 [http-nio-9000-exec-7] DEBUG c.m.springboot03.mapper.UserMapper.selectAll_COUNT - ==> Preparing: SELECT count(0) FROM USER
2023-11-18 09:39:43.563 [http-nio-9000-exec-7] DEBUG c.m.springboot03.mapper.UserMapper.selectAll_COUNT - ==> Parameters:
2023-11-18 09:39:43.563 [http-nio-9000-exec-7] DEBUG c.m.springboot03.mapper.UserMapper.selectAll_COUNT - <== Total: 1
2023-11-18 09:39:43.564 [http-nio-9000-exec-7] DEBUG com.msb.springboot03.mapper.UserMapper.selectAll - ==> Preparing: SELECT * FROM USER LIMIT ?, ?
2023-11-18 09:39:43.564 [http-nio-9000-exec-7] DEBUG com.msb.springboot03.mapper.UserMapper.selectAll - ==> Parameters: 20(Integer), 20(Integer)
2023-11-18 09:39:43.565 [http-nio-9000-exec-7] DEBUG com.msb.springboot03.mapper.UserMapper.selectAll - <== Total: 20
2023-11-18 09:40:08.540 [http-nio-9000-exec-8] DEBUG c.m.springboot03.mapper.UserMapper.selectAll_COUNT - ==> Preparing: SELECT count(0) FROM USER
2023-11-18 09:40:08.540 [http-nio-9000-exec-8] DEBUG c.m.springboot03.mapper.UserMapper.selectAll_COUNT - ==> Parameters:
2023-11-18 09:40:08.541 [http-nio-9000-exec-8] DEBUG c.m.springboot03.mapper.UserMapper.selectAll_COUNT - <== Total: 1
2023-11-18 09:40:08.541 [http-nio-9000-exec-8] DEBUG com.msb.springboot03.mapper.UserMapper.selectAll - ==> Preparing: SELECT * FROM USER LIMIT ?, ?
2023-11-18 09:40:08.541 [http-nio-9000-exec-8] DEBUG com.msb.springboot03.mapper.UserMapper.selectAll - ==> Parameters: 10(Integer), 10(Integer)
2023-11-18 09:40:08.542 [http-nio-9000-exec-8] DEBUG com.msb.springboot03.mapper.UserMapper.selectAll - <== Total: 10
2023-11-18 09:54:46.880 [SpringContextShutdownHook] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor - Shutting down ExecutorService 'applicationTaskExecutor'
2023-11-18 09:54:46.880 [SpringContextShutdownHook] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Shutdown initiated...
2023-11-18 09:54:46.885 [SpringContextShutdownHook] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Shutdown completed.
2023-11-18 10:21:29.105 [main] INFO com.msb.springboot03.SpringBoot03Application - Starting SpringBoot03Application using Java 1.8.0_382 on Nakami-12gen with PID 25320 (C:\Users\Nakam\IdeaProjects\SpringBoot\SpringBoot03\target\classes started by Nakam in C:\Users\Nakam\IdeaProjects\SpringBoot)
2023-11-18 10:21:29.107 [main] INFO com.msb.springboot03.SpringBoot03Application - No active profile set, falling back to default profiles: default
2023-11-18 10:21:29.735 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat initialized with port(s): 9000 (http)
2023-11-18 10:21:29.740 [main] INFO org.apache.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-9000"]
2023-11-18 10:21:29.741 [main] INFO org.apache.catalina.core.StandardService - Starting service [Tomcat]
2023-11-18 10:21:29.741 [main] INFO org.apache.catalina.core.StandardEngine - Starting Servlet engine: [Apache Tomcat/9.0.45]
2023-11-18 10:21:29.779 [main] INFO o.a.c.c.ContainerBase.[Tomcat].[localhost].[/yml] - Initializing Spring embedded WebApplicationContext
2023-11-18 10:21:29.780 [main] INFO o.s.b.w.s.c.ServletWebServerApplicationContext - Root WebApplicationContext: initialization completed in 645 ms
2023-11-18 10:21:29.843 [main] INFO c.a.d.s.b.a.DruidDataSourceAutoConfigure - Init DruidDataSource
2023-11-18 10:21:29.912 [main] INFO com.alibaba.druid.pool.DruidDataSource - {dataSource-1} inited
2023-11-18 10:21:30.096 [main] INFO o.s.scheduling.concurrent.ThreadPoolTaskExecutor - Initializing ExecutorService 'applicationTaskExecutor'
2023-11-18 10:21:30.223 [main] INFO org.apache.coyote.http11.Http11NioProtocol - Starting ProtocolHandler ["http-nio-9000"]
2023-11-18 10:21:30.233 [main] INFO o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat started on port(s): 9000 (http) with context path '/yml'
2023-11-18 10:21:30.239 [main] INFO com.msb.springboot03.SpringBoot03Application - Started SpringBoot03Application in 1.397 seconds (JVM running for 1.847)

Loading…
Cancel
Save