- 博客(4)
- 资源 (2)
- 收藏
- 关注
原创 tomcat部署项目报错,More than one fragment with the name [spring_web] was found.
tomcat部署项目报错,More than one fragment with the name [spring_web] was found.tomcat部署项目报错,More than one fragment with the name [spring_web] was found. This is not legal with relative ordering. See sectio...
2019-04-22 13:40:40
10404
原创 Springdata--jpa入门
jpa是面向对象的,而非面向数据库,所以这里我们不需要去写sql语句操作数据库,只需要通过操作对象就能达到修改和查询数据库的操作。在这里我就先使用jpa创建一个数据库t_user表。创建一个springboot项目,添加mysql和jpa取好项目名,next然后修改pom文件中mysql依赖,加上版本号,不然等会在yml文件中会无法解析driver-class-name<d...
2019-01-26 19:25:45
411
2
原创 大话设计模式读后感---策略模式
大话设计模式读后感—策略模式策略模式是一种定义一系列算法的技巧,每一个算法完成的都是相同工作,都是一个独立的类,继承了相同的抽象类,减少了各种算法类与使用算法类的耦合。Strategy类是抽象父类,Context是实现多个算法类的类ConcreteStrategyA是具体的算法类AConcreteStrategyB是具体的算法类BConcreteStrategyC是具体的算法类C//Strategy类是抽象父类public abstract class Strategy { //算法
2020-05-26 14:23:35
263
原创 Column 'id' in where clause is ambiguous
Column 'id' in where clause is ambiguousColumn 'userid' in where clause is ambiguous表示userid这个字段在多表查询时,两个表都有该字段,程序不知道查哪个表的userid,所以需要指定表别名,将其区分。Column ‘userid’ in where clause is ambiguous表示userid这个字...
2019-06-19 13:47:09
2788
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅