SpringStudy
- 修改为官方Druid(优化文件名)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
package com.ycjy;
|
||||
|
||||
import com.ycjy.Entity.DeptEntity;
|
||||
import com.ycjy.Service.DeptService;
|
||||
import com.ycjy.entity.DeptEntity;
|
||||
import com.ycjy.service.DeptService;
|
||||
import jakarta.servlet.ServletException;
|
||||
import jakarta.servlet.annotation.WebServlet;
|
||||
import jakarta.servlet.http.HttpServlet;
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
package com.ycjy.DAO;
|
||||
package com.ycjy.dao;
|
||||
|
||||
import com.ycjy.Entity.DeptEntity;
|
||||
import com.ycjy.entity.DeptEntity;
|
||||
|
||||
import javax.sql.DataSource;
|
||||
import java.sql.Connection;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.ycjy.Entity;
|
||||
package com.ycjy.entity;
|
||||
|
||||
// 部门实体
|
||||
public class DeptEntity {
|
||||
+3
-3
@@ -1,7 +1,7 @@
|
||||
package com.ycjy.Service;
|
||||
package com.ycjy.service;
|
||||
|
||||
import com.ycjy.DAO.SelectData;
|
||||
import com.ycjy.Entity.DeptEntity;
|
||||
import com.ycjy.dao.SelectData;
|
||||
import com.ycjy.entity.DeptEntity;
|
||||
|
||||
import java.sql.SQLException;
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.ycjy.Util;
|
||||
package com.ycjy.util;
|
||||
|
||||
import com.alibaba.druid.pool.DruidDataSource;
|
||||
|
||||
@@ -36,12 +36,12 @@
|
||||
</bean>
|
||||
|
||||
<!-- DAO -->
|
||||
<bean id="selectData" class="com.ycjy.DAO.SelectData">
|
||||
<bean id="selectData" class="com.ycjy.dao.SelectData">
|
||||
<property name="dataSource" ref="dataSource"/>
|
||||
</bean>
|
||||
|
||||
<!-- Service -->
|
||||
<bean id="deptService" class="com.ycjy.Service.DeptService">
|
||||
<bean id="deptService" class="com.ycjy.service.DeptService">
|
||||
<property name="selectData" ref="selectData"/>
|
||||
</bean>
|
||||
</beans>
|
||||
Reference in New Issue
Block a user