添加业务配置控制层、事务层、数据层类

This commit is contained in:
dell
2018-01-09 16:50:39 +08:00
parent 23be5c17ea
commit 0597c974e8
33 changed files with 454 additions and 94 deletions

View File

@@ -26,6 +26,14 @@ import com.nis.web.service.OfficeService;
import com.nis.web.service.RoleService;
import com.nis.web.service.SystemService;
import com.nis.web.service.UserService;
import com.nis.web.service.configuration.AppCfgService;
import com.nis.web.service.configuration.FtpCfgService;
import com.nis.web.service.configuration.IpCfgService;
import com.nis.web.service.configuration.MailCfgService;
import com.nis.web.service.configuration.MediaCfgService;
import com.nis.web.service.configuration.SslCfgService;
import com.nis.web.service.configuration.TunnelCfgService;
import com.nis.web.service.configuration.WebCfgService;
public class BaseController {
@@ -56,6 +64,29 @@ public class BaseController {
@Autowired
protected DictService dictService;
@Autowired
protected IpCfgService ipCfgService;
@Autowired
protected WebCfgService webCfgService;
@Autowired
protected MailCfgService mailCfgService;
@Autowired
protected FtpCfgService ftpCfgService;
@Autowired
protected TunnelCfgService tunnCfgService;
@Autowired
protected SslCfgService sslCfgService;
@Autowired
protected MediaCfgService mediaCfgService;
@Autowired
protected AppCfgService appCfgService;
protected final Logger logger = Logger.getLogger(this.getClass());

View File

@@ -0,0 +1,13 @@
package com.nis.web.controller.configuration;
import org.springframework.stereotype.Controller;
/**
* 特定协议相关配置控制类
* @author dell
*
*/
@Controller
public class AppCfgController {
}

View File

@@ -0,0 +1,13 @@
package com.nis.web.controller.configuration;
import org.springframework.stereotype.Controller;
/**
* FTP相关配置控制类
* @author dell
*
*/
@Controller
public class FtpCfgController {
}

View File

@@ -0,0 +1,13 @@
package com.nis.web.controller.configuration;
import org.springframework.stereotype.Controller;
/**
* IP相关配置控制类
* @author dell
*
*/
@Controller
public class IpCfgController {
}

View File

@@ -0,0 +1,13 @@
package com.nis.web.controller.configuration;
import org.springframework.stereotype.Controller;
/**
* 邮件相关配置控制类
* @author dell
*
*/
@Controller
public class MailCfgController {
}

View File

@@ -0,0 +1,13 @@
package com.nis.web.controller.configuration;
import org.springframework.stereotype.Controller;
/**
* 在线媒体相关配置控制类
* @author dell
*
*/
@Controller
public class MediaCfgController {
}

View File

@@ -0,0 +1,13 @@
package com.nis.web.controller.configuration;
import org.springframework.stereotype.Controller;
/**
* 证书相关配置控制类
* @author dell
*
*/
@Controller
public class SslCfgController {
}

View File

@@ -0,0 +1,20 @@
package com.nis.web.controller.configuration;
import org.springframework.stereotype.Controller;
/**
* 隧道协议相关配置控制类
* @author dell
*
*/
@Controller
public class TunnelCfgController {
/**
*
* @return
*/
public String l2tpList(){
return "/configuration/tunnel/l2tpList";
}
}

View File

@@ -0,0 +1,13 @@
package com.nis.web.controller.configuration;
import org.springframework.stereotype.Controller;
/**
* WEB相关配置控制类
* @author dell
*
*/
@Controller
public class WebCfgController {
}

View File

@@ -0,0 +1,11 @@
package com.nis.web.dao.configuration;
/**
* 特定协议相关配置数据处理类
* @author dell
*
*/
public class AppCfgDao {
}

View File

@@ -0,0 +1,11 @@
package com.nis.web.dao.configuration;
/**
* FTP相关配置数据处理类
* @author dell
*
*/
public class FtpCfgDao {
}

View File

@@ -0,0 +1,11 @@
package com.nis.web.dao.configuration;
/**
* IP相关配置数据处理类
* @author dell
*
*/
public class IpCfgDao {
}

View File

@@ -0,0 +1,11 @@
package com.nis.web.dao.configuration;
/**
* 邮件相关配置数据处理类
* @author dell
*
*/
public class MailCfgDao {
}

View File

@@ -0,0 +1,11 @@
package com.nis.web.dao.configuration;
/**
* 在线媒体相关配置数据处理类
* @author dell
*
*/
public class MediaCfgDao {
}

View File

@@ -0,0 +1,11 @@
package com.nis.web.dao.configuration;
/**
* 证书相关配置数据处理类
* @author dell
*
*/
public class SslCfgDao {
}

View File

@@ -0,0 +1,20 @@
package com.nis.web.dao.configuration;
import java.util.List;
/**
* 隧道协议相关配置数据处理类
* @author dell
*
*/
public class TunnelCfgDao {
/**
*
* @return
*/
public List getL2tpList(){
return null;
}
}

View File

@@ -0,0 +1,11 @@
package com.nis.web.dao.configuration;
/**
* WEB相关配置数据处理类
* @author dell
*
*/
public class WebCfgDao {
}

View File

@@ -0,0 +1,13 @@
package com.nis.web.service.configuration;
import org.springframework.stereotype.Service;
/**
* 特定协议相关配置事务类
* @author dell
*
*/
@Service
public class AppCfgService {
}

View File

@@ -0,0 +1,13 @@
package com.nis.web.service.configuration;
import org.springframework.stereotype.Service;
/**
* FTP相关配置事务类
* @author dell
*
*/
@Service
public class FtpCfgService {
}

View File

@@ -0,0 +1,13 @@
package com.nis.web.service.configuration;
import org.springframework.stereotype.Service;
/**
* IP相关配置事务类
* @author dell
*
*/
@Service
public class IpCfgService {
}

View File

@@ -0,0 +1,13 @@
package com.nis.web.service.configuration;
import org.springframework.stereotype.Service;
/**
* 邮件相关配置事务类
* @author dell
*
*/
@Service
public class MailCfgService {
}

View File

@@ -0,0 +1,13 @@
package com.nis.web.service.configuration;
import org.springframework.stereotype.Service;
/**
* 在线媒体相关配置事务类
* @author dell
*
*/
@Service
public class MediaCfgService {
}

View File

@@ -0,0 +1,13 @@
package com.nis.web.service.configuration;
import org.springframework.stereotype.Service;
/**
* 证书相关配置事务类
* @author dell
*
*/
@Service
public class SslCfgService {
}

View File

@@ -0,0 +1,19 @@
package com.nis.web.service.configuration;
import java.util.List;
import org.springframework.stereotype.Service;
/**
* 隧道协议相关配置事务类
* @author dell
*
*/
@Service
public class TunnelCfgService {
public List getL2tpList(){
return null;
}
}

View File

@@ -0,0 +1,13 @@
package com.nis.web.service.configuration;
import org.springframework.stereotype.Service;
/**
* WEB相关配置事务类
* @author dell
*
*/
@Service
public class WebCfgService {
}

View File

@@ -15,35 +15,35 @@ jdbc.product.username=gk_pz
jdbc.product.key=3X3ZBejyxS7lkVsHVm9KTw==
jdbc.product.password=sHqDBZIUS0hYZCbC+1xN3A==
jdbc.log.driver=oracle.jdbc.driver.OracleDriver
jdbc.log.url=jdbc:oracle:thin:@10.0.6.212:1523:app
#jdbc.log.url=jdbc:oracle:thin:@10.174.196.22:1521:orcl
jdbc.log.username=gk_log
#jdbc.log.username=z2_5x9logb
jdbc.log.key=pHl+0udycGQWNZcN68Sv9A==
jdbc.log.password=Z/pVMDXcWNxzVGAX0yRp3Q==
jdbc.logA.driver=oracle.jdbc.driver.OracleDriver
#jdbc.logA.url=jdbc:oracle:thin:@10.0.6.212:1523:app
jdbc.logA.url=jdbc:oracle:thin:@10.174.196.21:1521:orcl
#jdbc.logA.username=gk_log_a
jdbc.logA.username=z2_5x9loga
jdbc.logA.key=SXHfLUwzPw0cQEc1wzwM4w==
jdbc.logA.password=auvtDoVZpGP6P4OqfBrWAg==
jdbc.logC.driver=oracle.jdbc.driver.OracleDriver
jdbc.logC.url=jdbc:oracle:thin:@10.0.6.212:1523:app
jdbc.logC.username=gk_log_c
jdbc.logC.key=MvwfUIYP0nLyiQeprHB/5A==
jdbc.logC.password=3HXvsqpbOoNBIkHDS5c9Aw==
jdbc.jk.driver=oracle.jdbc.driver.OracleDriver
jdbc.jk.url=jdbc:oracle:thin:@10.0.6.212:1523:app
#jdbc.jk.url=jdbc:oracle:thin:@10.174.196.20:1521:orcl
jdbc.jk.username=gk_jk
#jdbc.jk.username=z2_5x9jk
jdbc.jk.key=+FaavsHgQ0qBSebsAoochw==
jdbc.jk.password=wBrNar7gX/iQR7IyCSHuSg==
#jdbc.log.driver=oracle.jdbc.driver.OracleDriver
#jdbc.log.url=jdbc:oracle:thin:@10.0.6.212:1523:app
##jdbc.log.url=jdbc:oracle:thin:@10.174.196.22:1521:orcl
#jdbc.log.username=gk_log
##jdbc.log.username=z2_5x9logb
#jdbc.log.key=pHl+0udycGQWNZcN68Sv9A==
#jdbc.log.password=Z/pVMDXcWNxzVGAX0yRp3Q==
#
#jdbc.logA.driver=oracle.jdbc.driver.OracleDriver
##jdbc.logA.url=jdbc:oracle:thin:@10.0.6.212:1523:app
#jdbc.logA.url=jdbc:oracle:thin:@10.174.196.21:1521:orcl
##jdbc.logA.username=gk_log_a
#jdbc.logA.username=z2_5x9loga
#jdbc.logA.key=SXHfLUwzPw0cQEc1wzwM4w==
#jdbc.logA.password=auvtDoVZpGP6P4OqfBrWAg==
#
#jdbc.logC.driver=oracle.jdbc.driver.OracleDriver
#jdbc.logC.url=jdbc:oracle:thin:@10.0.6.212:1523:app
#jdbc.logC.username=gk_log_c
#jdbc.logC.key=MvwfUIYP0nLyiQeprHB/5A==
#jdbc.logC.password=3HXvsqpbOoNBIkHDS5c9Aw==
#
#jdbc.jk.driver=oracle.jdbc.driver.OracleDriver
#jdbc.jk.url=jdbc:oracle:thin:@10.0.6.212:1523:app
##jdbc.jk.url=jdbc:oracle:thin:@10.174.196.20:1521:orcl
#jdbc.jk.username=gk_jk
##jdbc.jk.username=z2_5x9jk
#jdbc.jk.key=+FaavsHgQ0qBSebsAoochw==
#jdbc.jk.password=wBrNar7gX/iQR7IyCSHuSg==
@@ -58,66 +58,66 @@ bonecp.statementsCacheSize=100
############################################################################################################################################
#数据中心神通数据库接口配置
############################################################################################################################################
bonecp.cluster.idleMaxAgeInMinutes=60
bonecp.cluster.idleConnectionTestPeriodInMinutes=240
bonecp.cluster.maxConnectionsPerPartition=10
bonecp.cluster.minConnectionsPerPartition=5
bonecp.cluster.partitionCount=3
bonecp.cluster.acquireIncrement=5
bonecp.cluster.statementsCacheSize=100
jdbc.log.cluster.driver=com.oscar.cluster.BulkDriver
jdbc.log.cluster.url=jdbc:oscarclusterbulk://10.3.129.125:2010/logdb
jdbc.log.cluster.username=xa_z2_iie
jdbc.log.cluster.key=2fa3hQn28+4AOdJXL4Ud2w==
jdbc.log.cluster.password=uut+weC9of5ocPheagBJ4A==
#bonecp.cluster.idleMaxAgeInMinutes=60
#bonecp.cluster.idleConnectionTestPeriodInMinutes=240
#bonecp.cluster.maxConnectionsPerPartition=10
#bonecp.cluster.minConnectionsPerPartition=5
#bonecp.cluster.partitionCount=3
#bonecp.cluster.acquireIncrement=5
#bonecp.cluster.statementsCacheSize=100
#
#jdbc.log.cluster.driver=com.oscar.cluster.BulkDriver
#jdbc.log.cluster.url=jdbc:oscarclusterbulk://10.3.129.125:2010/logdb
#jdbc.log.cluster.username=xa_z2_iie
#jdbc.log.cluster.key=2fa3hQn28+4AOdJXL4Ud2w==
#jdbc.log.cluster.password=uut+weC9of5ocPheagBJ4A==
############################################################################################################################################
#数据中心hive接口配置
############################################################################################################################################
#A版日志库
jdbc.hiveA.driver=org.apache.hive.jdbc.HiveDriver
jdbc.hiveA.url=jdbc:hive2://10.3.130.24:10000/default
jdbc.hiveA.username=xa_z2_mesa
jdbc.hiveA.key=aC/8fTC9vfPVhCk+CDzbAQ==
#加密后密码
#jdbc.hiveA.password=V3GyFlG8Mg01bTt8ykFVaA==
#实际密码
jdbc.hiveA.password=123!@#qwe
#B版日志库
jdbc.hiveB.driver=org.apache.hive.jdbc.HiveDriver
jdbc.hiveB.url=jdbc:hive2://10.3.130.25:10000/default
jdbc.hiveB.username=xa_z2_mesa
jdbc.hiveB.key=aC/8fTC9vfPVhCk+CDzbAQ==
#加密后密码
#jdbc.hiveB.password=V3GyFlG8Mg01bTt8ykFVaA==
#实际密码
jdbc.hiveB.password=123!@#qwe
bonecp.hive.idleMaxAgeInMinutes=60
bonecp.hive.idleConnectionTestPeriodInMinutes=240
bonecp.hive.maxConnectionsPerPartition=20
bonecp.hive.minConnectionsPerPartition=10
bonecp.hive.partitionCount=3
bonecp.hive.acquireIncrement=5
bonecp.hive.statementsCacheSize=100
############################################################################################################################################
#下面的库为测试库,测试完成后会删除
############################################################################################################################################
jdbc.test.driver=oracle.jdbc.driver.OracleDriver
jdbc.test.url=jdbc:oracle:thin:@10.0.6.212:1523:app
jdbc.test.username=gk_pztest
jdbc.test.key=cV9126WUYdojQjvuKNjidw==
jdbc.test.password=OrTu/cLwlduYPW/tmxqNgQ==
#jdbc.hiveA.driver=org.apache.hive.jdbc.HiveDriver
#jdbc.hiveA.url=jdbc:hive2://10.3.130.24:10000/default
#jdbc.hiveA.username=xa_z2_mesa
#jdbc.hiveA.key=aC/8fTC9vfPVhCk+CDzbAQ==
##加密后密码
##jdbc.hiveA.password=V3GyFlG8Mg01bTt8ykFVaA==
##实际密码
#jdbc.hiveA.password=123!@#qwe
#
#
#
#
#
##B版日志库
#jdbc.hiveB.driver=org.apache.hive.jdbc.HiveDriver
#jdbc.hiveB.url=jdbc:hive2://10.3.130.25:10000/default
#jdbc.hiveB.username=xa_z2_mesa
#jdbc.hiveB.key=aC/8fTC9vfPVhCk+CDzbAQ==
##加密后密码
##jdbc.hiveB.password=V3GyFlG8Mg01bTt8ykFVaA==
##实际密码
#jdbc.hiveB.password=123!@#qwe
#
#
#bonecp.hive.idleMaxAgeInMinutes=60
#bonecp.hive.idleConnectionTestPeriodInMinutes=240
#bonecp.hive.maxConnectionsPerPartition=20
#bonecp.hive.minConnectionsPerPartition=10
#bonecp.hive.partitionCount=3
#bonecp.hive.acquireIncrement=5
#bonecp.hive.statementsCacheSize=100
#
#
#
#############################################################################################################################################
##下面的库为测试库,测试完成后会删除
#############################################################################################################################################
#
#jdbc.test.driver=oracle.jdbc.driver.OracleDriver
#jdbc.test.url=jdbc:oracle:thin:@10.0.6.212:1523:app
#jdbc.test.username=gk_pztest
#jdbc.test.key=cV9126WUYdojQjvuKNjidw==
#jdbc.test.password=OrTu/cLwlduYPW/tmxqNgQ==