摘要: 6.构建代码 Spring Boot不需要任何特定的代码布局即可工作。但是,有一些最佳实践可以提供帮助。 6.1“默认”包 当一个类不包含package声明时,它被认为是在“默认包”中。通常不鼓励使用“默认包”,应该避免使用。 6.2主应用程序类 我们通常建议您将主应用程序类放在其他类之上的根包中。 阅读全文
posted @ 2019-07-29 18:41 大强的博客 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 5.构建系统 强烈建议您选择支持依赖关系管理且可以使用发布到“Maven Central”存储库的工件的构建系统 。我们建议您选择Maven。 5.1依赖管理 每个版本的Spring Boot都提供了它支持的依赖项的精选列表。 5.2 使用Maven构建 Maven用户可以从spring-boot- 阅读全文
posted @ 2019-07-29 18:37 大强的博客 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 4.第一个Spring Boot程序 本节介绍如何开发一个简单的“Hello World!”Web应用程序。 我们使用Maven来构建这个项目,因为大多数IDE都支持它。 4.1使用Spring Initializr构建 Spring Initializr提供了一个简单的Web 界面,用于自定义项目 阅读全文
posted @ 2019-07-29 18:36 大强的博客 阅读(332) 评论(0) 推荐(0) 编辑
摘要: 3.安装Spring Boot环境 Spring Boot可以使用任何文本编辑器或IDE。 可以像运行任何其他Java程序一样运行和调试Spring Boot应用程序。 3.1安装JDK Spring Boot需要Java SDK v1.8或更高版本。 配置JAVA_HOME环境变量 配置PATH路 阅读全文
posted @ 2019-07-29 18:35 大强的博客 阅读(310) 评论(0) 推荐(0) 编辑
摘要: 2. Spring Boot简介 Spring Boot可以轻松创建独立的,生产级的基于Spring的应用程序。 2.1 Spring Boot概述 大多数Spring Boot应用程序只需要很少的Spring配置。 Spring Boot可以使用java -jar或更传统的war部署启动Java应 阅读全文
posted @ 2019-07-29 18:32 大强的博客 阅读(369) 评论(0) 推荐(0) 编辑
摘要: 1.Spring简介 Spring可以轻松创建Java企业应用程序。 Spring是开源的,它拥有一个庞大而活跃的社区。 1.1 Spring概述 Spring框架核心是容器模块,包括配置模型和依赖注入。 Spring框架还提供了基础模块,包括消息传递,事务数据,持久化和Web。 1.2 Sprin 阅读全文
posted @ 2019-07-29 18:31 大强的博客 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 热烈庆祝大华软件学院CAS学习视频《CAS实战教程》上线啦! 视频地址:腾讯课堂 https://ke.qq.com/course/422841 欢迎加入大华软件学院QQ群,群号:665714453。 阅读全文
posted @ 2019-07-09 16:03 大强的博客 阅读(278) 评论(0) 推荐(0) 编辑
摘要: 报错信息: 2019-07-06 19:18:38,398 ERROR [org.apache.catalina.core.ContainerBase] - <A child container failed during start>java.util.concurrent.ExecutionEx 阅读全文
posted @ 2019-07-09 16:02 大强的博客 阅读(1935) 评论(0) 推荐(0) 编辑
摘要: 错误信息: Whitelabel Error PageThis application has no explicit mapping for /error, so you are seeing this as a fallback. Sat Jul 06 18:30:42 CST 2019 The 阅读全文
posted @ 2019-07-09 16:02 大强的博客 阅读(1328) 评论(0) 推荐(0) 编辑
摘要: CAS官网:https://www.apereo.org/projects/cashttp://www.ja-sig.org/products/cas/http://www.ja-sig.org/wiki/display/CASUM/Home Spring Security官网:https://do 阅读全文
posted @ 2019-07-09 16:01 大强的博客 阅读(208) 评论(0) 推荐(0) 编辑