
spring
老王海明威
这个作者很懒,什么都没留下…
展开
-
spring boot是如何启动的
spring boot是如何启动的?运行org.springframework.boot.loader.JarLauncher类,就是Main-ClassJarLauncher启动com.example.demo.DemoApplication,就是Start-Classxxx.jar\META-INF\MANIFEST.MF 文件内容如下:Manifest-Version: 1.0Created-By: Maven Jar Plugin 3.2.0Build-Jdk-Spec: 11原创 2021-06-30 23:17:00 · 301 阅读 · 0 评论 -
删除一个字符串中指定的多个字符的算法
删除一个字符串中指定的多个字符的算法源码出处:org.springframework.util.StringUtils#deleteAny /** * Delete any character in a given {@code String}. * @param inString the original {@code String} * @param charsToDelete a set of characters to delete. * E.g. "az\n" will del原创 2021-05-13 22:59:23 · 656 阅读 · 0 评论 -
spring InitializingBean 接口
InitializingBean接口为bean提供了初始化方法的方式,它只包括afterPropertiesSet方法,凡是继承该接口的类,在初始化bean的时候都会执行该方法public interface InitializingBean { /** * Invoked by the containing {@code BeanFactory} after it has set all bean properties * and satisfied {@link BeanFactoryAw原创 2021-05-12 23:11:54 · 124 阅读 · 0 评论