摘要:
1、<!-- 使用用devtools,监听classPath下的文件变动,并且会立即重启应用,因为采用的是虚拟机机制,改项重启是很快的 --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-bo 阅读全文
摘要:
public PageInfo<User> findListUser(int startPage,int pageSize){ PageHelper.startPage(startPage, pageSize); List<User> users=userMapper.findListUser(); 阅读全文
摘要:
package com.xiangwen.service; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org 阅读全文
摘要:
package com.xiangwen.config; import org.springframework.boot.context.properties.ConfigurationProperties; import lombok.Data; @Data @ConfigurationPrope 阅读全文
摘要:
package com.xiangwen.datasource; import java.sql.SQLException; import javax.sql.DataSource; import org.apache.ibatis.session.SqlSessionFactory;import 阅读全文
摘要:
# Mysql 1mysql.datasource.test1.url = jdbc:mysql://localhost:3306/xiangwen?useUnicode=true&characterEncoding=utf-8mysql.datasource.test1.username = ro 阅读全文
摘要:
<dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupI 阅读全文
摘要:
package com.xiangwen.datasource; import javax.sql.DataSource; import org.apache.ibatis.session.SqlSessionFactory; import org.mybatis.spring.SqlSession 阅读全文
摘要:
###datasource1 spring.datasource.test1.driver-class-name = com.mysql.jdbc.Driver spring.datasource.test1.jdbc-url = jdbc:mysql://localhost:3306/xiangw 阅读全文