/**PageBeginHtml Block Begin **/ /***自定义返回顶部小火箭***/ /*生成博客目录的JS 开始*/ /*生成博客目录的JS 结束*/

随笔分类 -  Java_SpringBoot

摘要:,稳步前进 第一步 看caused by后的内容 第二步 看配置文件(一般都是配置文件出错) 第三步 查看mysql数据库服务器是否开启 或数据库信息名称是否匹配 我的caused by后报错代码如下: 我的报错信息如下: 阅读全文
posted @ 2021-05-02 22:09 一品堂.技术学习笔记 阅读(5746) 评论(0) 推荐(0) 编辑
摘要:pom.xml UsersRepository Users UsersService UsersServiceImpl App application.properties ehcache.xml UsersServiceTest 阅读全文
posted @ 2021-05-02 21:57 一品堂.技术学习笔记 阅读(93) 评论(0) 推荐(0) 编辑
摘要:注:本文来源于: Elinice 《Spring之注解注入bean》 1.引入jar包。配置log4j.properties文件 2.创建Person类 1 package com.hy.spring.pojo; 2 3 import org.springframework.stereotype.C 阅读全文
posted @ 2021-04-22 11:57 一品堂.技术学习笔记 阅读(160) 评论(0) 推荐(0) 编辑
摘要:Idea配置热部署 一、概念 热部署就是正在运行状态的应用,修改了他的源码之后,在不重新启动的情况下能够自动把增量内容编译并部署到服务器上,使得修改立即生效。热部署为了解决的问题有两个, 一是在开发的时候,修改代码后不需要重启应用就能看到效果,大大提升开发效率;二是生产上运行的程序,可以在不停止运行 阅读全文
posted @ 2021-04-20 23:01 一品堂.技术学习笔记 阅读(380) 评论(0) 推荐(0) 编辑
摘要:一:SpringBoot 中 异常处理方式 1:Springboot 中对 异常处理提供了五种处理方式 1.自定义错误页面 一:展示springboot 默认的错误 页面内容 SpringBoot 默认的处理异常的机制:SpringBoot 默认的已经提供了一套处理异常的机制。 一旦程序中出现了异常 阅读全文
posted @ 2021-04-16 22:19 一品堂.技术学习笔记 阅读(183) 评论(0) 推荐(0) 编辑
摘要:SpringBoot 第一章服务端表单数据校验 一:代码结构 pom.xml UsersController Users App add.html ok.html 运行效果 其他校验规则: 内置约束 阅读全文
posted @ 2021-04-16 21:24 一品堂.技术学习笔记 阅读(151) 评论(0) 推荐(0) 编辑
摘要:一、 实现添加用户功能 1 创建项目 2 修改 POM 文件 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/ 阅读全文
posted @ 2021-03-29 15:56 一品堂.技术学习笔记 阅读(213) 评论(0) 推荐(0) 编辑
摘要:官方访问路径: http://hibernate.org/validator/ https://docs.jboss.org/hibernate/stable/validator/reference/en-US/html_single/#validator-annotationprocessor-k 阅读全文
posted @ 2021-03-29 10:02 一品堂.技术学习笔记 阅读(1087) 评论(0) 推荐(0) 编辑
摘要:创建SpringBoot项目,启动后,默认的访问路径即主机IP+默认端口号8080:http://localhost:8080/ 此时,我们就可以访问Controller层的接口了,如:http://localhost:8080/hello package com.springboot.test; 阅读全文
posted @ 2021-03-29 09:32 一品堂.技术学习笔记 阅读(1631) 评论(0) 推荐(0) 编辑
摘要:Spring Boot 警告:An illegal reflective access operation has occurred 博主: ifu25 问题描述 最新将Spring Boot项目升级到JDK 11,运行时发现警告如下: WARNING: An illegal reflective 阅读全文
posted @ 2021-03-27 17:25 一品堂.技术学习笔记 阅读(1942) 评论(0) 推荐(0) 编辑
摘要:SpringBoot 整合 Mybatis 数据库持久层 一:springboot 整合 mybatis 1:项目过程结构: 2:pom.xml 整合配置 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apac 阅读全文
posted @ 2021-03-26 15:50 一品堂.技术学习笔记 阅读(163) 评论(0) 推荐(0) 编辑
摘要:一个SpringBoot项目在STS中是正常的,没有任何问题,但是导入到IDEA中之后启动就提示org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)错误 2017-05-01 20:29:30. 阅读全文
posted @ 2021-03-26 11:44 一品堂.技术学习笔记 阅读(137) 评论(0) 推荐(0) 编辑
摘要:一、问题描述 使用mybatis的项目在本地可以正常运行,但当使用maven或Jenkins打包部署到服务器上时出现了绑定错误,异常信息为:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): 阅读全文
posted @ 2021-03-26 11:34 一品堂.技术学习笔记 阅读(1948) 评论(0) 推荐(0) 编辑
摘要:一:用idea 创建 springboot 项目: 二:具体代码内容: 1:看项目代码结构 2:看项目启动访问效果 DemoController Users ThymeleafApplication index.html POM。xml 阅读全文
posted @ 2021-02-20 00:46 一品堂.技术学习笔记 阅读(197) 评论(0) 推荐(0) 编辑
摘要:一:用idea 创建 springboot 项目: 详情请参考:《使用IDEA创建一个springboot项目》 二:具体代码内容: 1:代码结构 2:启动项目 3:访问项目 UserController HelloWorld ExceptionHandler Users FreemarkerApp 阅读全文
posted @ 2021-02-18 21:47 一品堂.技术学习笔记 阅读(276) 评论(0) 推荐(0) 编辑
摘要:IDEA Spring Boot 创建 freemarker 文件模板 在 Spring Boot 项目的 resources 目录下的 templates 包下,右键-->new-->Edit File Templates, 如下图: 然后点击 + 号,新建一个 freemarker file t 阅读全文
posted @ 2021-02-17 23:21 一品堂.技术学习笔记 阅读(1169) 评论(0) 推荐(0) 编辑
摘要:一:用idea 创建 springboot 项目: 二:具体代码内容: 1:代码结构 2:JspApplication 3:HelloWorld 4:UserController 5:Users 6:application.properties 7:userList.jsp 8:pom.xml 9: 阅读全文
posted @ 2021-02-17 21:47 一品堂.技术学习笔记 阅读(286) 评论(0) 推荐(0) 编辑
摘要:一:用idea 创建 springboot 项目: 二:具体代码内容: 1:代码结构 FileUploadController DemoApplication ServletInitializer Upload.html application.properties pom.xml 启动项目: 上传 阅读全文
posted @ 2021-02-16 17:52 一品堂.技术学习笔记 阅读(1022) 评论(0) 推荐(0) 编辑
摘要:一:用idea 创建 springboot 项目: 二:具体代码内容: 1:访问静态资源文件 1:代码结构 2:启动项目 3:访问静态资源:图片 4:DemoApplication 5:访问资源 html 文件 6:访问静态资源(static)文件夹的子文件夹中的资源方式 7:静态资源(static 阅读全文
posted @ 2021-02-16 14:20 一品堂.技术学习笔记 阅读(562) 评论(0) 推荐(0) 编辑