![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
springboot
一壶酒笑江湖
There is only one success to be able to spend your life in your own favorite way
展开
-
mybatis update mapper.xml
User user =new User(); user.setId("dsfgsdfgdsfgds"); user.setUsername("wyw"); user.setPassword("wyw"); user.setEmail("wyw@163.com"); XxxMapper.updateByPrimaryKey(user); //相当于:update user set username='wyw', password='wyw', email='wyw@163.com' where id='ds.原创 2020-10-29 14:01:29 · 831 阅读 · 0 评论 -
创建 spring boot maven 工程
pom.xml <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.2.6.RELEASE</version> <relativePath/> <!-- lookup parent fr...原创 2020-07-09 15:35:12 · 133 阅读 · 0 评论 -
spring boot 多环境(dev、test、prod)配置文件
properties配置格式 在Spring boot 中多环境配置文件名需要满足application-{profile}.properties的格式,其中{profile}对于你的环境标识 resources 下创建文件: application.properties application-dev.properties application-prod.properties 在application.properties 中配置 spring.profiles.active=dev #.原创 2020-06-16 11:47:57 · 538 阅读 · 0 评论