Dao层实现: ShopDao.xml: ShopDaoTest: ShopDao: 然后测试。 Service层实现: ShopServiceImpl: ImageUtil: ShopService: ShopServiceTest: 然后测试。。。这时候发现数据源还是服务器上的,测了很久没成功才 Read More
posted @ 2017-10-19 21:55
虚极静笃
Views(1435)
Comments(1)
Diggs(0)
下面看看读写分离的代码层实现: spring-dao.xml: 执行:AreaDaoTest成功,继续执行ShopServiceTest成功。 Read More
posted @ 2017-10-19 19:05
虚极静笃
Views(517)
Comments(0)
Diggs(0)
下面来学习:1、数据库层面的主从配置实现 2、代码层面的读写分离实现 主从同步工作原理: 先去阿里云买两个云服务器,然后重置密码,重启服务器,接着用Xshell远程连接。 下面介绍阿里云Centos7使用yum安装MySQL5.6(这里也介绍另外一个博客:http://blog.csdn.net/u Read More
posted @ 2017-10-19 13:49
虚极静笃
Views(583)
Comments(0)
Diggs(0)
调试: 在前后端debug的过程中发现总是获取不到为空: 在spring-web.xml中配置: 在pom.xml中加入依赖即可: 调试过程中又发现问题,修改如下(shopoperation.js): 继续调试,完成。 Read More
posted @ 2017-10-19 11:40
虚极静笃
Views(545)
Comments(0)
Diggs(1)
引入kaptcha实现验证码: 添加到pom.xml中。 web.xml中添加配置: 在shopoperation.html中添加: 创建目录及文件: 引入common.js: 启动项目访问:http://localhost:8080/o2o/shopadmin/shopoperate看效果。 另外 Read More
posted @ 2017-10-19 10:54
虚极静笃
Views(601)
Comments(0)
Diggs(0)

浙公网安备 33010602011771号