avatar
文章
34
标签
23
分类
2

首页
时间轴
标签
分类
清单
  • 音乐
  • 照片
  • 电影
友链
关于
caicai-blog
首页
时间轴
标签
分类
清单
  • 音乐
  • 照片
  • 电影
友链
关于
Spring Boot Jpa
发表于2019-03-31|更新于2024-03-14|Spring Boot
全称Java Persistence API,通过JDK 5.0注解或XML描述对象-关系表的映射关系,并将运行期的实体对象持久化到数据库中。 ​ JPA的出现有两个原因: 其一,简化现有Java EE和Java SE应用的对象持久化的开发工作; 其二,Sun希望整合对ORM技术,实现持久化领域的统一。 ​ JPA提供的技术: 1)ORM映射元数据:JPA支持XML和JDK 5.0注解两种元数据的形式,元数据描述对象和表之间的映射关系,框架据此将实体对象持久化到数据库表中; 2)JPA 的API:用来操作实体对象,执行CRUD操作,框架在后台替我们完成所有的事情,开发者从繁琐的JDBC和SQL代码中解脱出来。 3)查询语言:通过面向对象而非面向数据库的查询语言查询数据,避免程序的SQL语句紧密耦合。 <The rest of contents | 余下全文> pom.xml中导入依赖12345678910111213141516171819202122232425262728293031323334353637383940414243444546 ...
Spring Boot 整合Mybatis(基于注解)
发表于2019-03-31|更新于2024-03-15|Spring Boot•Mybatis
基于注解的Spring Boot 整合Mybatis <Excerpt in index | 首页摘要> <The rest of contents | 余下全文> 项目结构 pom.xml123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xs ...
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)异常处理
发表于2019-03-31|更新于2024-03-14|Spring Boot•Mybatis
在SpringBoot整合Mybatis出现org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): 错误 <Excerpt in index | 首页摘要> <The rest of contents | 余下全文> 报错信息:12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.caicai.springbootspringmvcmybatis.mapper.UsersMapper.insertUser at org.apache.ibatis.binding.Mapp ...
JDBC连接Mysql8.0驱动版本过低报错
发表于2019-03-29|更新于2024-03-14|MYSQL
JDBC连接Mysql8.0.11版本出现问题,不停循环报错 错误信息如下: <Excerpt in index | 首页摘要> <The rest of contents | 余下全文> 报错信息:12345678910111213141516171819202122232425262728293031323334Fri Mar 29 21:39:01 CST 2019 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the ...
Spring Boot 整合mybatis
发表于2019-03-29|更新于2024-03-14|Spring Boot•Mybatis
Spring Boot 整合mybatis <Excerpt in index | 首页摘要> <The rest of contents | 余下全文> 创建项目 pom.xml中添加依赖123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.o ...
thymeleaf的整合和使用
发表于2019-03-29|更新于2024-03-14|Spring Boot•thymeleaf
Thymeleaf是用于Web和独立环境的现代服务器端Java模板引擎。Thymeleaf的主要目标是将优雅的自然模板带到您的开发工作流程中—HTML能够在浏览器中正确显示,并且可以作为静态原型,从而在开发团队中实现更强大的协作。Thymeleaf能够处理HTML,XML,JavaScript,CSS甚至纯文本。 <Excerpt in index | 首页摘要> <The rest of contents | 余下全文> 整合thymeleaf修改pom.xml文件,添加依赖123456789101112131415161718192021222324252627282930313233343536373839404142434445464748<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.o ...
Spring Boot 整合Freemarker
发表于2019-03-28|更新于2024-03-14|Spring Boot
FreeMarker 是一个模板引擎,一个基于模板生成文本输出的通用工具,使用纯 Java 编写,FreeMarker 被设计用来生成 HTML Web 页面,特别是基于 MVC 模式的应用程序,虽然 FreeMarker 具有一些编程的能力,但通常由 Java 程序准备要显示的数据,由FreeMarker 生成页面,通过模板显示准备的数据。符合MVC模式,采用哈希表存储,你可以专注于如何展现数据, 而在模板之外可以专注于要展示什么数据 <Excerpt in index | 首页摘要> <The rest of contents | 余下全文> 整合Freemarker创建maven项目,添加依赖12345678910111213141516<dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-freemarker</artifa ...
Spring Boot 整合jsp
发表于2019-03-28|更新于2024-03-15|Spring Boot
Spring Boot 整合jsp <Excerpt in index | 首页摘要> <The rest of contents | 余下全文> 创建maven项目,添加pom依赖12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd ...
Spring-Boot-文件上传
发表于2019-03-27|更新于2024-03-14|Spring Boot
Spring-Boot-文件上传 <Excerpt in index | 首页摘要> <The rest of contents | 余下全文> 编写Controller1234567891011121314151617181920212223242526272829303132package com.caicai.springbootstaticresources1.controller;import org.springframework.web.bind.annotation.RequestMapping;import org.springframework.web.bind.annotation.RequestParam;import org.springframework.web.bind.annotation.RestController;import org.springframework.web.multipart.MultipartFile;import java.io.File;import java.io.IOException;/** ...
Spring-Boot 整合Servlet和Filter
发表于2019-03-27|更新于2024-03-14|Spring Boot•Servlet
Spring-Boot 整合Servlet和Filter <Excerpt in index | 首页摘要> <The rest of contents | 余下全文> 整合Servlet传统方式配置1234567891011<servlet><servlet-name>FirstServlet</servlet-name><servlet-class>com.caicai.springbootservlet.filter.FirstFilter</servlet-class></servlet><servlet-mapping><servlet-name>FirstServlet</servlet-name><url-pattern>/first</url-pattern></servlet-mapping> 通过注解扫描注册Servlet使用@WebServlet注解并在启动类上使用@ServletCompon ...
1234
avatar
caicai
由于太菜,不得不学习。
文章
34
标签
23
分类
2
Follow Me
最新文章
网络相关知识梳理2033-07-13
docker安装mysql2019-07-15
SpringBoot+ajax跨域请求2019-07-11
SpringBoot整合Activiti7使用2019-07-10
Thumbnailator图片处理2019-06-18
分类
  • 面试1
    • 计算机网络1
标签
Sprint Boot lucene Spring Boot thymeleaf SpringBoot git 计算机网络 MYSQL mysql docker JAVA java Echarts JPA Activiti7 ajax Servlet gogs Thumbnailator hexo String Mybatis 面试
归档
  • 七月 20331
  • 七月 20193
  • 六月 20192
  • 五月 20198
  • 四月 20196
  • 三月 201914
网站资讯
文章数目 :
34
本站访客数 :
本站总访问量 :
最后更新时间 :
©2020 - 2024 By caicai
框架 Hexo|主题 Butterfly