![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
SpringBoot
梦之翔者
这个作者很懒,什么都没留下…
展开
-
SpringBoot+JPA进行增删改查
这篇博客差不多是2018年写的。现在重构一下。开篇: 项目结构如下。第一步.POM文件的配置<?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-in...原创 2018-04-23 00:46:36 · 16288 阅读 · 17 评论 -
SpringBoot集成JPA
应项目经理的要求,使用springboot建立MVC框架,集成JPA。建立maven工程,跳过骨架选择。遇到的第一个坑,Failure to transfer org.apache.maven.plugins:maven-resources-plugin:pom:2.6 from http://maven.aliyun.com/nexus/content/groups/public/ was ca...原创 2018-04-13 15:12:57 · 132 阅读 · 0 评论 -
SpringBoot集成jpa找不到类,接口,控制的问题
出现的问题Caused by: java.lang.IllegalArgumentException: Not a managed type: class com.entity.Person结构图如下产生的原因是RunApp没有与Entity在同一目录下。解决办法在启动的App上方加个包扫描器@EntityScan({"com.entity"})还有两个同样原因产生的BUG@ComponentSc...原创 2018-04-13 15:37:05 · 2020 阅读 · 0 评论 -
RESTFUL 风格API
去年刚入职这家公司的时候要求用restful,微服务。给整的一脸懵逼。最后发现restful一点也不神奇。特此 记录一下精华,给需要的小伙伴。 精华 1 ,http的请求方式 表示动作 !http的请求方式 表示动作 !!http的请求方式 表示动作 !!! 常用的四种 get,post,put,delete 得...原创 2019-04-19 11:06:51 · 2640 阅读 · 0 评论