Giter Site home page Giter Site logo

micyo202 / yan Goto Github PK

View Code? Open in Web Editor NEW
295.0 19.0 147.0 3.95 MB

使用Maven构建,整合Dubbo+Zookeeper+SpringMVC+Spring+MyBatis+Redis支持分布式的高效率便捷开发框架

License: MIT License

Java 39.80% CSS 15.68% JavaScript 42.74% HTML 0.77% PLpgSQL 1.01%
distribution java spring-framework spring-mvc mybatis mybatis-pagehelper mybatis-generator maven jquery bootstrap

yan's People

Contributors

micyo202 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

yan's Issues

关于@ResponseBody返回乱码问题

你好,我改造过你这个项目,在使用过程中出现调用DemoController
image
这个方法的时候,前端页面显示乱码。
image
我最先想到是去看配置,一开始没看出什么问题,后来跟了CharacterEncodingFilter过滤器发现,这个版本的过滤器
image
有发生变化,于是过滤器改了
image
之后发现还是乱码,于是将RequestMappingHandlerAdapter适配器的StringHttpMessageConverter的bean配置移动到spring-beans.xml里面,解决问题。

yan-service生成jar包问题

yan-service生成jar包启动之后,控制台无报错,提示启动成功,但是服务无法成功发布到zookeeper中心!
请问,能否提供详细的打包步骤以及打包完成后的目录结构截图,谢谢!

启动后没有报错

项目启动后没有报错,依次启动了Zookeeper,redis,dubbo服务,最后tomcat(tomcat版本是8.0)也正常启动,也没有报错信息,但是访问localhost:8080提示404

层层调用

我想问一下,如果core层想要调用dao层,该怎么弄呢?

yan-service打好包后运行无法正常注册zookeeper

您好,按照您的方法先install,然后package,在yan-service/target中生成yan-service-1.0-SNAPSHOT.jar
使用java -jar 运行,报没有主清单属性。
随后,我在Project Structure中Artifacts新增JAR->From modules with depenencies,并配置了主函数,如此打包后的jar,可以使用java -jar 执行成功,没有任何报错,但是就是zookeeper没有任何注册信息,即注册失败。
所以我想请教一下,如果使用java -jar 运行,且能正常注册zookeeper,这个yan-service应如何打包?多谢!

jetty:run运行异常

2018-04-19 10:04:42.067 [main] ERROR org.springframework.web.context.ContextLoader - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'enableRedisKeyspaceNotificationsInitializer' defined in class path resource [org/springframework/session/data/redis/config/annotation/web/http/RedisHttpSessionConfiguration.class]: Invocation of init method failed; nested exception is org.springframework.data.redis.RedisConnectionFailureException: Cannot get Jedis connection; nested exception is redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1628)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)

网上说需要配置redis打开notify-keyspace-events,不知道怎么配置redis

jetty:run运行异常

Failed to execute goal on project yan-web: Could not resolve dependencies for project com.yan:yan-web:war:1.0-SNAPSHOT: Could not find artifact com.yan:yan-core:jar:1.0-SNAPSHOT -> [Help 1]

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.