micyo202 / yan Goto Github PK
View Code? Open in Web Editor NEW使用Maven构建,整合Dubbo+Zookeeper+SpringMVC+Spring+MyBatis+Redis支持分布式的高效率便捷开发框架
License: MIT License
使用Maven构建,整合Dubbo+Zookeeper+SpringMVC+Spring+MyBatis+Redis支持分布式的高效率便捷开发框架
License: MIT License
yan-service生成jar包启动之后,控制台无报错,提示启动成功,但是服务无法成功发布到zookeeper中心!
请问,能否提供详细的打包步骤以及打包完成后的目录结构截图,谢谢!
项目启动后没有报错,依次启动了Zookeeper,redis,dubbo服务,最后tomcat(tomcat版本是8.0)也正常启动,也没有报错信息,但是访问localhost:8080提示404
yan-service如何打jar包,一直报错
我想问一下,如果core层想要调用dao层,该怎么弄呢?
对于新手有点不适合啊 楼主 组件和用到的东西太多了 有没有基本配置的
我的zookeeper正常启动了。服务也在zookeeper上正常看到了。但是输入http://localhost:8080/yan-web无法访问该项目。我是在eclipse里面测试的。导入的maven项目。我没有redis.我看你描述这些都是非必要项。想知道问题出在哪里
您好,按照您的方法先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应如何打包?多谢!
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
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]
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.