介绍
这篇文章主要讲解了“SpringBoot项目中优化和垃圾回收器的对比分析”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习“SpringBoot项目中优化和垃圾回收器的对比分析”吧!
<强>一、SpringBoot项目在外部Tomcat启动时加载两次强>
如下所示,春天的标志出现两次(截取部分代码)
只,____ ,,,, _ ,,,,, __ _ _ ,/\ \/,___ # 39;_ __ _ _ (_) _ __ __ _ \, \ \, \ (,(,)\ ___ |, & # 39; _ |, & # 39; _ |, |, & # 39; _ \/, _”, | \ \祝福;\,\ ,\ \/___)|,| _)|,|,|,|,|,| |,(_ |,|,),),,) & # 39;大敌;__ | |,.__ | _ |,| _ | _ |,| _ \ __,|,/,/,/,/,=========| _ |==============| ___/=/_/_/_/,::Spring Boot ::,,,, (v1.5.7.RELEASE) 2020 - 04 - 02,16:57:29.505 INFO 19964,——安康;[ost-startStop-1], com.pitt.kill.server.MainApplication ,,:, Starting MainApplication 提醒LAPTOP-1U9EARRO with PID 19964, (D: \ apache-tomcat-8.5.42 \ apache-tomcat-8.5.42 \ webapps \ kill-0.0.1-SNAPSHOT \ web - inf \ classes started by pitt 拷贝C: \皮特\ AppData \ \用户本地\ MyEclipse 2017年,CI) 2020 - 04 - 02,16:57:29.508 DEBUG 19964,——安康;[ost-startStop-1], com.pitt.kill.server.MainApplication ,,:, Running with Spring Boot v1.5.7.RELEASE, Spring v4.3.11.RELEASE 2020 - 04 - 02,16:57:29.509 INFO 19964,——安康;[ost-startStop-1], com.pitt.kill.server.MainApplication ,,:, No active profile ,, falling back 用default 概要:违约 2020 - 04 - 02,16:57:29.539 INFO 19964,——安康;[ost-startStop-1], ationConfigEmbeddedWebApplicationContext :, Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@1e20bc0d:, startup date [Thu Apr  02, 16:57:29 GMT + 08:00 2020];, root of context 层次结构 2020 - 04 - 02,16:57:30.097 INFO 19964,——安康;[ost-startStop-1], o.s.b.f.xml.XmlBeanDefinitionReader ,,:, Loading XML bean definitions 得到class path resource (春/spring-jdbc.xml) 2020 - 04 - 02,16:57:30.141 WARN 19964,——安康;[ost-startStop-1], o.m.s.mapper.ClassPathMapperScanner ,,:, No MyBatis mapper was found 拷贝& # 39;[com.pitt.kill.model.mapper] & # 39;,包只Please check your 配置。 2020 - 04 - 02,16:57:30.258 WARN 19964,——安康;[ost-startStop-1], o.m.s.mapper.ClassPathMapperScanner ,,:, No MyBatis mapper was found 拷贝& # 39;[com.pitt.kill.server] & # 39;,包只Please check your 配置。 2020 - 04 - 02,16:57:30.307 INFO 19964,——安康;[ost-startStop-1], .s.d.r.c.RepositoryConfigurationDelegate :, Multiple Spring Data modules 发现,entering strict repository configuration 模式! ,只____ ,,,, _ ,,,,, __ _ _ ,/\ \/,___ # 39;_ __ _ _ (_) _ __ __ _ \, \ \, \ (,(,)\ ___ |, & # 39; _ |, & # 39; _ |, |, & # 39; _ \/, _”, | \ \祝福;\,\ ,\ \/___)|,| _)|,|,|,|,|,| |,(_ |,|,),),,) & # 39;大敌;__ | |,.__ | _ |,| _ | _ |,| _ \ __,|,/,/,/,/,=========| _ |==============| ___/=/_/_/_/,::Spring Boot ::,,,, (v1.5.7.RELEASE) 2020 - 04 - 02,16:57:37.069 INFO 19964,——安康;[ost-startStop-1], com.pitt.kill.server.MainApplication ,,:, Starting MainApplication 提醒LAPTOP-1U9EARRO with PID 19964, (D: \ apache-tomcat-8.5.42 \ apache-tomcat-8.5.42 \ webapps \ server \ web - inf \ classes started by pitt 拷贝C: \皮特\ AppData \ \用户本地\ MyEclipse 2017年,CI) 2020 - 04 - 02,16:57:37.072 DEBUG 19964,——安康;[ost-startStop-1], com.pitt.kill.server.MainApplication ,,:, Running with Spring Boot v1.5.7.RELEASE, Spring v4.3.11.RELEASE 2020 - 04 - 02,16:57:37.072 INFO 19964,——安康;[ost-startStop-1], com.pitt.kill.server.MainApplication ,,:, No active profile ,, falling back 用default 概要:违约 null null null null null null null null null null null null null null null null null null null null null nullSpringBoot项目中优化和垃圾回收器的对比分析