wosyingjun / beauty_ssm Goto Github PK
View Code? Open in Web Editor NEW优雅的SSM(Spring+SpringMVC+Mybatis)框架
优雅的SSM(Spring+SpringMVC+Mybatis)框架
逻辑上,应该支持缓存/提取长度为0的结果列表。没有缓存和缓存结果集大小为0是两回事,应该区分。
启动项目Cannot get Jedis connection nested exception is redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
没用过Jedis和redies,是不是redies的配置文件需要改呀
redis.pass=yingjun
redis.pool.maxTotal=105
redis.pool.maxIdle=10
redis.pool.maxWaitMillis=5000
redis.pool.testOnBorrow=true
redis.ip=192.168.xx.xxx
redis.port=6379
七月 25, 2016 5:51:43 下午 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet [spring-dispatcher] in context with path [] threw exception [Request processing failed; nested exception is java.lang.NullPointerException] with root cause
java.lang.NullPointerException
at com.yingjun.ssm.exception.GlobalExceptionResolver.resolveException(GlobalExceptionResolver.java:32)
at org.springframework.web.servlet.DispatcherServlet.processHandlerException(DispatcherServlet.java:1183)
做新项目的时候,比如用户表就有大大滴不同,需要重新生成
用MBG生成代码又会破坏现有的配置,比如我用户mapper中配置的查找角色之类的语句都唔见塞
内推,欢迎联系 [email protected]
job.youzan.com
我先玩玩
怎么下一部啊
可以访问controller但是无法访问jsp
项目启动起来,显示空白页啊?对于示例项目是不是不太友好?怎么玩呢?
我对redis只是了解作用,具体应用不熟悉,麻烦那位朋友有空指点下redis如何修改才能使项目跑起来
首先购买的操作controller goods/**/buy RequestMapping的method应该改为RequestMethod.POST。其次购买成功后的删除缓存操作 cache.deleteCacheWithPattern("getGoodsList")失效问题。 应该改为cache.deleteCacheWithPattern(cache.CAHCENAME+"|getGoodsList*");
jsonp跨域怎么解决
Caused by: java.lang.ClassNotFoundException: com.yingjun.ssm.exception.GlobalExceptionResolver
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1285)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1119)
at org.springframework.util.ClassUtils.forName(ClassUtils.java:250)
at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:394)
at org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1396)
at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1343)
... 39 more
日期处理@JsonSerialize(using = CustomDateSerializer.class)
@jsonformat(pattern = "yyyy-MM-dd")貌似没实现啊,是靠着jsp界面的
用户列表查询中文乱码的问题有人碰到吗?
项目这样配置的话dispatcher会初始化两次,且配置文件相当于load了两次,quartz定时任务是会同时执行两次的
looks like most of the code is deprecated now. Better if you update , will really help.
没有注释的maper
没有增删改的demo
myeclips还需要处理一些bug才能导入运行
并没有什么学习价值不建议浪费时间
支持代码自动生成吗?
@RequestMapping(value = "/{goodsId}/buy" 我去掉了 method = RequestMethod.GET,因为handler.js里的 $.post总是提示错误,导致点击购买无效;
现在点击购买后,提示购买成功,数据库里的数量也少了,但是需要手动刷新,页面上的数量才会减少。
慢慢学习中。。。代码写的很好,很容易看懂
是不是handler.js中请求有错误,点击购买无法生效,我调试通后,我提了一个pr
导入的时候没发现项目
没有数据库表,无法连接
springMVC用注解reponsebody怎么也获取不到表单提交过来的参数
说当前的tomcat7 只能支持1.3 1.4 1.5 版本我想问楼主的tomcat版本是 tomcat8吗 还有jDK版本是多少?
每次访问都要开着redis吗?还是我不会用?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.