184 Star 317 Fork 186

alexgaoyh / alexgaoyh

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

项目名为alexgaoyh 但是发布的时候,设定的context root 为web 即发布到容器中之后,使用的是web项目名 后台登陆为: http://localhost:8080/web/admin/login 如果导入项目包含的web.sql 文件的话,登录名密码为admin/admin

1: 发送邮件的功能,需要手动更改 spring-smtp-mail.xml 配置文件的username&&password两个参数, 调用方法为直接调用EmailUtil.send(subject, content, to);

2: 本例数据库使用的是mysql5.5版本,并且在项目启动前,需要更改 db-config.properties 文件的数据库对应的ip,username,password

3: 使用ueditor,后期需要更改/WEB-INF/jsp/config.json 包含的*UrlPrefix部分,现在写死为项目名称 已经与2014/11/10修改此问题

4: 20141124 增加ehcache缓存逻辑,1、配置相关实体;2、ehcache.xml增加对应配置;3、重写baseDaoImpl相关方法,增加.setCacheable(true)属性; 已验证

1、默认情况下二级缓存只会对load get 之类的方法缓存, 想list iterator 之类的方法也使用缓存 必须跟查询缓存一起使用, 
	在BaseDaoImpl中重写方法,增加.setCacheable(true) 
	Eg:   criteria.setCacheable(true).list();         				criteria.setCacheable(true).setProjection(Projections.rowCount()).uniqueResult();
	
2、实体关系中增加注解 @Cache(usage = CacheConcurrencyStrategy.READ_WRITE, region="newsTemplete")  
	ehcache.xml 文件中增加相关配置  注意名称要一致(newsTemplete);
	
3、window下java.io.tmpdir/ehcache 路径对应 C:\Users\{当前用户}\AppData\Local\Temp\ehcache 可以打印输出进行验证.

5: 20141212 整合redis2.6 win32/64的redis服务端在附件位置,请先下载并运行进行配置。

1、 com.alexgaoyh.redis.util.RedisClient 为客户端,注入RedisTemplate(redis-config.xml)
2、 测试方法 在Action中引入 RedisClient对应的bean 直接调用相关方法即可。
	如下:
	
		@Controller
		@RequestMapping(value="test")
		public class TestAction {
		
			@Resource
			private RedisClient<String, String> redisClient;
			
			@RequestMapping(value="test")  
			public ModelAndView test(){
				redisClient.add("aaaa", "aaaa");
				System.out.println(redisClient.get("aaaa"));
    			return new ModelAndView("views/test");
			}
			
		}
MIT License Copyright (c) 2020 alexgaoyh Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

项目整合shiro,完成后台权限控制,封装baseDao 实现简单的CRUD和分页操作, 整合百度ueditor,实现资源上传等功能,前端页面使用freemarker模板,配置ehcache缓存逻辑,增加查询缓存,二级缓存。 同时整合配置redis2.6,另一种缓存逻辑。 springmvc4.x hibernate4.x mysql5.x shiro ehcache ueditor freemarker redis2.6 maven 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Java
1
https://gitee.com/alexgaoyh/alexgaoyh.git
git@gitee.com:alexgaoyh/alexgaoyh.git
alexgaoyh
alexgaoyh
alexgaoyh
master

搜索帮助