Giter Site home page Giter Site logo

beauty_ssm's Issues

启动项目Cannot get Jedis connection,有没有大神知道一下

启动项目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)

mybaits怎么方便生成代码

做新项目的时候,比如用户表就有大大滴不同,需要重新生成
用MBG生成代码又会破坏现有的配置,比如我用户mapper中配置的查找角色之类的语句都唔见塞

redis配置如何更改

我对redis只是了解作用,具体应用不熟悉,麻烦那位朋友有空指点下redis如何修改才能使项目跑起来

发现的一些小bug

首先购买的操作controller goods/**/buy RequestMapping的method应该改为RequestMethod.POST。其次购买成功后的删除缓存操作 cache.deleteCacheWithPattern("getGoodsList")失效问题。 应该改为cache.deleteCacheWithPattern(cache.CAHCENAME+"|getGoodsList*");

ClassNotFoundException

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界面的

才实现的,但是后台的日期处理貌似并没有作用。

中文乱码

用户列表查询中文乱码的问题有人碰到吗?

不建议学习

没有注释的maper
没有增删改的demo
myeclips还需要处理一些bug才能导入运行
并没有什么学习价值不建议浪费时间

点击购买后,数量更新的速度没那么快?

@RequestMapping(value = "/{goodsId}/buy" 我去掉了 method = RequestMethod.GET,因为handler.js里的 $.post总是提示错误,导致点击购买无效;

现在点击购买后,提示购买成功,数据库里的数量也少了,但是需要手动刷新,页面上的数量才会减少。
慢慢学习中。。。代码写的很好,很容易看懂

点击购买不生效

是不是handler.js中请求有错误,点击购买无法生效,我调试通后,我提了一个pr

redis服务

每次访问都要开着redis吗?还是我不会用?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.