Skip to content

5.6.0 拆分sqltoy-core和sqltoy-spring,让sqltoy不依赖spring

Compare
Choose a tag to compare
@chenrenfei chenrenfei released this 11 Mar 01:45
· 212 commits to 5.6 since this release

1、拆分sqltoy-orm-core\sqltoy-orm-spring\sqltoy-orm-spring-starter 三个子项目,剥离对spring的依赖
2、分5.6.x 和 5.6.x.jre8 两个分支版本,5.6.x 以jdk17、springboot3.x 为起点

<!-- 其他非spring框架可以基于sagacity-sqltoy 进行扩展 -->
<dependency>
	<groupId>com.sagframe</groupId>
	<artifactId>sagacity-sqltoy</artifactId>
        <!-- jdk8 对应的版本号为:5.6.0.jre8 -->
	<version>5.6.0</version>
</dependency>

<!-- 纯粹springboot项目只需引入sagacity-sqltoy-spring-starter依赖即可  -->
<dependency>
	<groupId>com.sagframe</groupId>
	<artifactId>sagacity-sqltoy-spring-starter</artifactId>
        <!-- jdk8 对应的版本号为:5.6.0.jre8 -->
	<version>5.6.0</version>
</dependency>

3、传统spring项目只需引入sagacity-sqltoy-spring依赖

<dependency>
	<groupId>com.sagframe</groupId>
	<artifactId>sagacity-sqltoy-spring</artifactId>
        <!-- jdk8 对应的版本号为:5.6.0.jre8 -->
	<version>5.6.0</version>
</dependency>

<!-- spring sqltoy xml 配置-->
<!-- 配置sqltoy框架的上下文 -->
<bean id="sqlToyContext" class="org.sagacity.sqltoy.SqlToyContext"
		init-method="initialize" destroy-method="destroy">
	<!-- sqltoy5.6.x 传统spring项目需设置appContext、connectionFactory -->
	<property name="appContext">
		<bean class="org.sagacity.sqltoy.integration.impl.SpringAppContext"/>
	</property>
	<property name="connectionFactory">
		<bean class="org.sagacity.sqltoy.integration.impl.SpringConnectionFactory"/>
	</property>
	<!-- 指定sql.xml 文件的路径实现目录的递归查找,多个路径则用逗号分隔 -->
	<property name="sqlResourcesDir"
			value="classpath:com/sqltoy/quickstart" />
	<!--非必须属性:默认值为false -->
	<property name="debug" value="${sqltoy.debug}" />
</bean>