update
This commit is contained in:
parent
3fb6e95bb9
commit
747e6bdcd0
4
pom.xml
4
pom.xml
|
|
@ -15,7 +15,7 @@
|
|||
<!-- 编译jdk版本 -->
|
||||
<jdk.version>1.7</jdk.version>
|
||||
<!-- 依赖版本 -->
|
||||
<spring.version>4.3.6.RELEASE</spring.version>
|
||||
<spring.version>4.3.7.RELEASE</spring.version>
|
||||
<shiro.version>1.3.2</shiro.version>
|
||||
<log4j2.version>2.7</log4j2.version>
|
||||
<beetlsql.version>2.8.5</beetlsql.version>
|
||||
|
|
@ -285,7 +285,7 @@
|
|||
<!-- 生产环境 -->
|
||||
<id>production</id>
|
||||
<properties>
|
||||
<profiles.active>production</profiles.active>
|
||||
<profiles.active>prod</profiles.active>
|
||||
</properties>
|
||||
</profile>
|
||||
</profiles>
|
||||
|
|
|
|||
|
|
@ -1,28 +1,22 @@
|
|||
package com.smallchill.test.beetlsql;
|
||||
|
||||
import com.smallchill.core.beetl.ReportInterceptor;
|
||||
import com.smallchill.core.toolbox.CMap;
|
||||
import com.smallchill.core.toolbox.kit.CharsetKit;
|
||||
import org.beetl.sql.core.*;
|
||||
import org.beetl.sql.core.db.PostgresStyle;
|
||||
import org.springframework.core.io.ClassPathResource;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Properties;
|
||||
|
||||
import org.beetl.sql.core.ClasspathLoader;
|
||||
import org.beetl.sql.core.DefaultNameConversion;
|
||||
import org.beetl.sql.core.Interceptor;
|
||||
import org.beetl.sql.core.SQLLoader;
|
||||
import org.beetl.sql.core.SQLManager;
|
||||
import org.beetl.sql.core.db.PostgresStyle;
|
||||
import org.junit.Test;
|
||||
import org.springframework.core.io.ClassPathResource;
|
||||
|
||||
import com.smallchill.core.beetl.ReportInterceptor;
|
||||
import com.smallchill.core.toolbox.CMap;
|
||||
import com.smallchill.core.toolbox.kit.CharsetKit;
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
public class BeetlTest {
|
||||
|
||||
@Test
|
||||
//@Test
|
||||
public void test() {
|
||||
List<Map> list = getSqlManager().execute("select * from blade_notice where id = #{id}", Map.class, CMap.init().set("id", 1), 1, 10);
|
||||
System.out.println(list);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user