01 2020 档案

摘要:1,配置文件可以配置的属性 参考官方文档 https://docs.spring.io/spring-boot/docs/2.2.2.RELEASE/reference/html/appendix-application-properties.html#common-application-prop 阅读全文
posted @ 2020-01-10 16:35 JayMu 阅读(573) 评论(0) 推荐(0) 编辑
摘要:先创建一个peron类,然后需要注解configurationProperties(prefix ="person")然后需要加一个@component因为只有在springboot的容器才能提供容器提供的@configurationProperties@Component @Configurati 阅读全文
posted @ 2020-01-09 15:48 JayMu 阅读(1466) 评论(0) 推荐(0) 编辑
摘要:1.IDE提供了支持使用Spring的项目创建向导快速创建一个springboot项目; 创建spring starter project! 填写基本信息,点击next spring把每个功能都提取成一个启动器,根据自己的需要,勾选 然后点击finish,会链接到spring官网进行下载依赖jar包 阅读全文
posted @ 2020-01-09 14:33 JayMu 阅读(424) 评论(0) 推荐(0) 编辑
摘要:@springbootapplication注解标注在类中,这个类作为spring boot的主配置类 运行spring boot需要运行这个类的main方法。 @SpringBootApplication public class FirstApp { public static void mai 阅读全文
posted @ 2020-01-08 18:11 JayMu 阅读(242) 评论(0) 推荐(0) 编辑
摘要:1.springboot简化部署 之前的J2EE项目部署需要打包成jar文件,放在tomcat服务器中,如果没有tomcat还需要配置。 现在springboot将项目打包成可执行的jar包。需要在maven依赖中导入以下扩展程序; insert the following lines just b 阅读全文
posted @ 2020-01-06 15:59 JayMu 阅读(349) 评论(0) 推荐(0) 编辑
摘要:1.psyco psyco是一个pvm的增强工具,这个工具收集并使用信息,在程序运行时,可以将程序的字节码转化为底层的真正的二进制机器代码,从而实现更快的执行速度。 在开发过程中,psyco无需代码的修改和独立的编译步骤可完成这一转换。 概况的讲,当程序进行运行时,psyco收集正在传递过程中的对象 阅读全文
posted @ 2020-01-03 11:19 JayMu 阅读(1296) 评论(0) 推荐(0) 编辑