摘要: Maven启动指定Profile通过-P,如mvn spring-boot:run -Ptest,但这是Maven的Profile。 如果要指定spring-boot的spring.profiles.active,则必须使用mvn spring-boot:run -Drun.profiles=tes 阅读全文
posted @ 2019-11-20 16:18 Bwrauncge 阅读(2237) 评论(0) 推荐(0) 编辑
摘要: 随笔记录--摘自https://www.liaoxuefeng.com/wiki/896043488029600/1163625339727712 项目名称最好与本地库保持一致: 然后,我们在本地库上使用命令git remote add把它和码云的远程库关联: git remote add orig 阅读全文
posted @ 2019-11-06 15:07 Bwrauncge 阅读(256) 评论(0) 推荐(0) 编辑
摘要: @DynamicInsert属性:设置为true,设置为true,表示insert对象的时候,生成动态的insert语句,如果这个字段的值是null就不会加入到insert语句当中.默认false。 @DynamicUpdate属性:设置为true,设置为true,表示update对象的时候,生成动 阅读全文
posted @ 2019-10-25 13:27 Bwrauncge 阅读(666) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2019-10-21 13:54 Bwrauncge 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 1.加载配置文件 2.创建SqlSessionFactory对象 3.创建SqlSession对象 4.获取代理对象 5.执行业务方法 ... 6.关闭资源 阅读全文
posted @ 2019-10-21 13:11 Bwrauncge 阅读(92) 评论(0) 推荐(0) 编辑
摘要: 1 public static void main(String[] args) throws Exception{ 2 //1.注册驱动 3 //DriverManager.registerDriver(new com.mysql.jdbc.Driver()); 4 Class.forName(" 阅读全文
posted @ 2019-10-10 16:08 Bwrauncge 阅读(122) 评论(0) 推荐(0) 编辑