摘要: 查看网上的资料,应该是报错的实体类com.example.domain.p.User中没有添加加主键的注解@Id,这个是必须的。但是我的实体类中明明已经添加了@Id,为什么还会报这个错误呢? 后来检查了很久,发现是我import的包出现了错误,正确的应该是import javax.persisten 阅读全文
posted @ 2021-02-08 15:41 bnewky0319 阅读(557) 评论(0) 推荐(0) 编辑
摘要: 使用mybatis查询mysql数据库,只有查询的那个字段sequence的值存在其他值都是null。 原因是对应的实体类写的不对。在mysql中,表中字段除了sequence其他都带_,比如vessel_code,像这样的字段写实体类entity时候是不可以定义这个字段为vessel_code的, 阅读全文
posted @ 2021-02-08 14:29 bnewky0319 阅读(517) 评论(0) 推荐(0) 编辑
摘要: xml和properties文件不包含在target中,想要包括在target则需要在Pom文件 <build>标签中加入下面的配置 <resources> <resource> <directory>src/main/java</directory> <includes> <include>**/ 阅读全文
posted @ 2021-02-02 14:18 bnewky0319 阅读(290) 评论(0) 推荐(0) 编辑
摘要: Gradle syncd 阅读全文
posted @ 2021-02-01 14:46 bnewky0319 阅读(28) 评论(0) 推荐(0) 编辑
摘要: 可以利用网址创建一个SpringCloud的项目 https://start.spring.io/ 阅读全文
posted @ 2021-02-01 11:13 bnewky0319 阅读(54) 评论(0) 推荐(0) 编辑
摘要: SpringBoot <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.0.6.RELEASE</version> < 阅读全文
posted @ 2021-02-01 10:55 bnewky0319 阅读(279) 评论(0) 推荐(0) 编辑
摘要: cloudapp-3.0.1中froscloud-demo需要访问的地址为http://localhost:6420/Demo/info?name=Chill 没有找到可以使用网关访问的接口 Fros校验管理平台地址:http://172.30.254.65:8090/manage 阅读全文
posted @ 2021-01-29 14:46 bnewky0319 阅读(28) 评论(0) 推荐(0) 编辑
摘要: 参考资料持续更新 博客文章:https://blog.csdn.net/qq_41402200/article/details/94333830 https://github.com/intomylife/SpringCloud 阅读全文
posted @ 2021-01-29 10:18 bnewky0319 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-01-29 10:15 bnewky0319 阅读(40) 评论(0) 推荐(0) 编辑
摘要: 1.Thymeleaf官网:https://www.thymeleaf.org/ 2.Thymeleaf在Github的主页:http://github.com/thymeleaf/thymeleaf 3.Spring官方文档:https://docs.spring.io/spring-boot/d 阅读全文
posted @ 2021-01-12 19:07 bnewky0319 阅读(235) 评论(0) 推荐(0) 编辑