上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 42 下一页
摘要: 最近用springboot构建rest接口,考虑到最方便的验证接口,想到了引入swagger。 基本的步骤大致如下: 1.pom中引入swagger依赖: 2.创建swagger的配置类: 3.添加文档内容 4.启动springboot,访问http://localhost:8081/swagger 阅读全文
posted @ 2018-03-05 14:51 雨花梦 阅读(1039) 评论(0) 推荐(0)
摘要: 1.pom.xml增加依赖包 <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-swagger2</artifactId> <version>2.2.2</version> </dependency> <depend 阅读全文
posted @ 2018-03-05 14:48 雨花梦 阅读(989) 评论(0) 推荐(0)
摘要: SELECT * FROM datav.a_current_per_entry_01 WHERE intime = (SELECT MAX(intime) FROM a_current_per_entry_01) ORDER BY hour ASC , CASE WHEN entry = '东1入... 阅读全文
posted @ 2018-02-23 16:33 雨花梦 阅读(495) 评论(0) 推荐(0)
摘要: 举个例子吧: order by id desc,time desc先是按 id 降序排列 (优先)如果 id 字段 有些是一样的话 再按time 降序排列 (前提是满足id降序排列) 阅读全文
posted @ 2018-02-23 16:25 雨花梦 阅读(218) 评论(0) 推荐(0)
摘要: 这个需要在排序语句中使用条件判断 例如:表【Table_temp】中列【col1】为字符,属性为varchar(10),排序时需要按照B、A、C的顺序显示,则可按照以下SQL语句: 阅读全文
posted @ 2018-02-23 16:23 雨花梦 阅读(900) 评论(0) 推荐(0)
摘要: 一、单个参数: 二、多参数: 方案1 方案2(推荐)基于注解 三、Map封装多参数: 四、List封装in: 五、selectList()只能传递一个参数,但实际所需参数既要包含String类型,又要包含List类型时的处理方法: 将参数放入Map,再取出Map中的List遍历。如下: List<S 阅读全文
posted @ 2018-01-17 11:12 雨花梦 阅读(15880) 评论(0) 推荐(1)
摘要: at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:433) ~[mybatis-spring-1.3.1.jar:1.3.1] ... 21 common fra 阅读全文
posted @ 2018-01-15 16:44 雨花梦 阅读(4772) 评论(0) 推荐(0)
摘要: Could not open JDBC Connection for transaction; nested exception is java.sql.SQLTransientConnectionException: HikariPool-1 - Connection is not availab 阅读全文
posted @ 2017-12-22 17:02 雨花梦 阅读(13030) 评论(0) 推荐(0)
摘要: (去掉事务也是一样的问题) 数据操作出错,出错的消息:; uncategorized SQLException for SQL [insert into account (available, create_time, email, id, is_enterprise_user, mobile, n 阅读全文
posted @ 2017-12-21 19:50 雨花梦 阅读(334) 评论(0) 推荐(0)
摘要: public class Client { public static void main(String[] args) { // Interceptor interceptor = new Interceptor(); // System.out.println(interceptor.process()); String str="ss";... 阅读全文
posted @ 2017-11-29 18:21 雨花梦 阅读(230) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 42 下一页