随笔分类 - SpringBoot
摘要:###打包SpringBoot项目 ###部署方式一:手动部署 #####1、将打包好的jar包上传到Linux服务器中 mkdir -p /opt/java62/app #####2、前台启动SpringBoot应用 编译jar包:java -jar helloworld-1.0-SNAPSHOT
阅读全文
摘要:==The dependencies of some of the beans in the application context form a cycle== 场景: 启动Spring Boot项目时报循环依赖错误:The dependencies of some of the beans in
阅读全文
摘要:一、嵌入式Servlet容器 在传统的Web开发中,需要将项目打成 war 包,在外部配置部署好 Tomcat 服务器,而这个 Tomcat 就是 Servlet 容器,在使用 SpringBoot 开发时,我们无需再外部部署 Servlet 容器,使用的是==嵌入式(内置) Servlet 容器=
阅读全文
摘要:在 web 开发中,静态资源的访问是必不可少的,如图片、js、css等资源的访问 SpringBoot 对静态资源访问提供了很好的支持,基本使用默认配置就能满足开发需求 (嵌入式 servlet 容器)先决知识 request.getSession().getServletContext().get
阅读全文