摘要: 本教程将介绍如何使用 mybatis-plus 工具自动给我们生成 controller、service、entity、Dao、Mapper.xml 层代码 以及springboot2.3整合druid、,mybaits-plus且mybatis-plus自动生成代码 先导入pom <?xml ve 阅读全文
posted @ 2020-08-16 21:27 散落人间 阅读(1276) 评论(0) 推荐(0) 编辑
摘要: MybatisPlus+Activiti6冲突导致mybatis plus包引入失败解决办法:将activiti中排除掉 <dependency> <groupId>org.activiti</groupId> <artifactId>activiti-spring-boot-starter-bas 阅读全文
posted @ 2020-08-16 20:53 散落人间 阅读(1286) 评论(0) 推荐(0) 编辑
interface food{} class A implements food{} class B implements food{} class C implements food{} public class StaticFactory { private StaticFactory(){} public static food getA(){ return new A(); } public static food getB(){ return new B(); } public static food getC(){ return new C(); } } class Client{ //客户端代码只需要将相应的参数传入即可得到对象 //用户不需要了解工厂类内部的逻辑。 public void get(String name){ food x = null ; if ( name.equals("A")) { x = StaticFactory.getA(); }else if ( name.equals("B")){ x = StaticFactory.getB(); }else { x = StaticFactory.getC(); } } }