myeclipse高版本项目导入到低版本出错(急)

在myeclipse10里面的web项目运行访问完全没问题,但是导出后,导入到其他电脑的myeclipse8.6就一直报错,代码一样的,在访问的时候控制台报错
严重: Servlet.service() for servlet [springmvc] in context with path [/typhon] threw exception [Handler processing failed; nested exception is java.lang.NoClassDefFoundError: antlr/SemanticException] with root cause
java.lang.ClassNotFoundException: antlr.SemanticException

4个回答

升级一下eclipse版本,换成高版本

建议你还是在10上面运行,高版本的里面有些东西低版本的不支持

改一下运行环境和编译环境 右击项目 classpath 里改成8.6里面的就好

可以把控制台报的错截图贴出来不

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
MyEclipse导入项目出错,急
MyEclipse导入项目出错,代码中的中文也变成奇怪字![图片说明](https://img-ask.csdn.net/upload/201603/31/1459355173_806728.png)求大神详细讲解怎么做
myeclipse的maven工程怎么导入到eclipse?
如题,小弟一直用eclipse做maven项目,但是来个同事用Myeclipse建了个maven项目,我导入到我eclipse上死活都出错,求大神解答如何将myeclipse的maven工程正确导入到eclipse中
导入一个myeclipse项目本来正确的代码出错,求大神讲解
做一个项目我myeclipse的配置jdk1.7的 ,不是一个人做,在导入项目后报出的错误很难理解,一个 ); 号错误,一直不知道怎么回事。 ![图片说明](https://img-ask.csdn.net/upload/201505/26/1432628761_196922.png) ![图片说明](https://img-ask.csdn.net/upload/201505/26/1432628788_991712.png) 如图;为了与项目配置一致,我特意将jdk换成1.6的并且重新配置了环境变量,但是代码莫名其妙的报错,而且还不是全报错,是有的java类报错,有的配置文件报错。
Myeclipse导入webmagic项目运行时出错求大神!!!!
[INFO] Scanning for projects... [ERROR] [ERROR] Some problems were encountered while processing the POMs: [FATAL] Non-resolvable parent POM for us.codecraft:webmagic-scripts:[unknown-version]: Could not find artifact us.codecraft:webmagic-parent:pom:0.5.3-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 3, column 13 [FATAL] Non-resolvable parent POM for us.codecraft:webmagic-selenium:[unknown-version]: Could not find artifact us.codecraft:webmagic-parent:pom:0.5.3-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 3, column 10 [FATAL] Non-resolvable parent POM for us.codecraft:webmagic-saxon:[unknown-version]: Could not find artifact us.codecraft:webmagic-parent:pom:0.5.3-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 3, column 13 [FATAL] Non-resolvable parent POM for us.codecraft:webmagic-samples:[unknown-version]: Could not find artifact us.codecraft:webmagic-parent:pom:0.5.3-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 3, column 13 [WARNING] 'parent.relativePath' of POM us.codecraft:webmagic-admin:[unknown-version] (C:\Users\hp\Desktop\webmagic\webmagic-avalon\pom.xml) points at us.codecraft:webmagic-parent instead of us.codecraft:webmagic-avalon, please verify your project structure @ line 3, column 13 [FATAL] Non-resolvable parent POM for us.codecraft:webmagic-admin:[unknown-version]: Could not find artifact us.codecraft:webmagic-avalon:pom:0.5.3-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 3, column 13 [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-jar-plugin is missing. @ us.codecraft:webmagic-parent:0.5.3, C:\Users\hp\Desktop\webmagic\pom.xml, line 199, column 21 [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-jar-plugin is missing. @ us.codecraft:webmagic-parent:0.5.3, C:\Users\hp\Desktop\webmagic\pom.xml, line 199, column 21 [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-jar-plugin is missing. @ line 199, column 21 @ [ERROR] The build could not read 5 projects -> [Help 1] [ERROR] [ERROR] The project us.codecraft:webmagic-scripts:[unknown-version] (C:\Users\hp\Desktop\webmagic\webmagic-scripts\pom.xml) has 1 error [ERROR] Non-resolvable parent POM for us.codecraft:webmagic-scripts:[unknown-version]: Could not find artifact us.codecraft:webmagic-parent:pom:0.5.3-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 3, column 13 -> [Help 2] [ERROR] [ERROR] The project us.codecraft:webmagic-selenium:[unknown-version] (C:\Users\hp\Desktop\webmagic\webmagic-selenium\pom.xml) has 1 error [ERROR] Non-resolvable parent POM for us.codecraft:webmagic-selenium:[unknown-version]: Could not find artifact us.codecraft:webmagic-parent:pom:0.5.3-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 3, column 10 -> [Help 2] [ERROR] [ERROR] The project us.codecraft:webmagic-saxon:[unknown-version] (C:\Users\hp\Desktop\webmagic\webmagic-saxon\pom.xml) has 1 error [ERROR] Non-resolvable parent POM for us.codecraft:webmagic-saxon:[unknown-version]: Could not find artifact us.codecraft:webmagic-parent:pom:0.5.3-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 3, column 13 -> [Help 2] [ERROR] [ERROR] The project us.codecraft:webmagic-samples:[unknown-version] (C:\Users\hp\Desktop\webmagic\webmagic-samples\pom.xml) has 1 error [ERROR] Non-resolvable parent POM for us.codecraft:webmagic-samples:[unknown-version]: Could not find artifact us.codecraft:webmagic-parent:pom:0.5.3-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 3, column 13 -> [Help 2] [ERROR] [ERROR] The project us.codecraft:webmagic-admin:[unknown-version] (C:\Users\hp\Desktop\webmagic\webmagic-avalon\pom.xml) has 1 error [ERROR] Non-resolvable parent POM for us.codecraft:webmagic-admin:[unknown-version]: Could not find artifact us.codecraft:webmagic-avalon:pom:0.5.3-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 3, column 13 -> [Help 2] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException 求大神解决!
myeclipse building workspace出错
问题: Errors occurred during the build. Errors running builder 'Java Builder' on project 'Bos'. Could not initialize class org.hibernate.console.ConfigurationConsoleRepositoryExtManager 描述: 用的 myeclipse2015 一直都是没有问题的,自从有一次对一个项目添加了hibernate支持,逆向生成实体和映射以后,只要一动项目文件(比如加个空格再保存)就会出现这个错误。 我把项目复制出去,然后删除从新导入,就没问题了,可是关闭myeclipse再打开就又出现问题。。。 我以为是那个项目的问题。新建了一个项目,一直都正常,可只要添加了hibernate包就会出现这个问题。 org.hibernate.console.ConfigurationConsoleRepositoryExtManager这个类小弟一直找不到是哪的。也不知道怎么移除hibernate fact。各位兄弟帮帮忙啊。。。 ![图片说明](https://img-ask.csdn.net/upload/201705/06/1494062354_365036.png) ![图片说明](https://img-ask.csdn.net/upload/201705/06/1494062376_658214.png)
网上下载的java web导入myeclipse之后出错,接下来怎么解决和运行?
![图片说明](https://img-ask.csdn.net/upload/201812/24/1545636759_585639.png) 网上下载的java web导入myeclipse之后出错,接下来怎么解决和运行?
myeclipse2014导入sshweb项目后,刚启动服务器就出错了!哪位大神给看看!!
信息: Initializing Spring root WebApplicationContext log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader). log4j:WARN Please initialize the log4j system properly. SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. 一月 25, 2017 4:44:48 下午 org.apache.catalina.core.StandardContext listenerStart 严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.InvalidMappingException: Unable to read XML at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1482) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:610) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479) at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:389) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5003) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5517) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1263) at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1978) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Caused by: org.hibernate.InvalidMappingException: Unable to read XML at org.hibernate.util.xml.MappingReader.readMappingDocument(MappingReader.java:101) at org.hibernate.cfg.Configuration.add(Configuration.java:513) at org.hibernate.cfg.Configuration.add(Configuration.java:509) at org.hibernate.cfg.Configuration.add(Configuration.java:716) at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:756) at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:680) at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:188) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1541) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1479) ... 25 more Caused by: org.dom4j.DocumentException: 1 字节的 UTF-8 序列的字节 1 无效。 Nested exception: 1 字节的 UTF-8 序列的字节 1 无效。 at org.dom4j.io.SAXReader.read(SAXReader.java:484) at org.hibernate.util.xml.MappingReader.readMappingDocument(MappingReader.java:75) ... 33 more
myeclipse验证应该关么?
导入新项目的时候通常会出现building workspace缓慢的问题,这些都是由于各种验证导致的,不过只要第一次验证通过后,以后就不会那么慢了。网上查很多说把这些验证关掉,应该关么?关了以后不就不会验证了,出错了也不知道?
在Myeclipse 中导入一个struts工程,该工程已经包含了struts的jar文件,工程没有提示出错。但是运行就提示资源is not available
相关文件: [size=large][color=red]struts.xml[/color][/size] <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" "http://struts.apache.org/dtds/struts-2.0.dtd"> <struts> <!-- Add packages here --> <constant name="struts.devMode" value="true" /> <package name="front" extends="struts-default" namespace="/front"> <action name="index"> <result>/Namespace.jsp</result> </action> </package> <package name="main" extends="struts-default" namespace="/"> <action name="index"> <result>/Namespace.jsp</result> </action> </package> </struts> [size=large][color=red] web.xml:[/color][/size] <?xml version="1.0" encoding="UTF-8"?> <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> <welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list> <filter> <filter-name>struts2</filter-name> <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class> </filter> <filter-mapping> <filter-name>struts2</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> </web-app> [size=large][color=red] 控制台提示出错:[/color][/size] java.lang.NullPointerException at com.opensymphony.xwork2.util.FileManager$FileRevision.needsReloading(FileManager.java:209) at com.opensymphony.xwork2.util.FileManager.fileNeedsReloading(FileManager.java:60) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.needsReload(XmlConfigurationProvider.java:325) at org.apache.struts2.config.StrutsXmlConfigurationProvider.needsReload(StrutsXmlConfigurationProvider.java:168) at com.opensymphony.xwork2.config.ConfigurationManager.conditionalReload(ConfigurationManager.java:220) at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:61) at org.apache.struts2.dispatcher.Dispatcher.getContainer(Dispatcher.java:774) at org.apache.struts2.dispatcher.ng.InitOperations.initStaticContentLoader(InitOperations.java:77) at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:49) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:295) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422) at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:115) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3838) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4488) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:785) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:519) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:581) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) 2010-7-1 21:59:10 org.apache.catalina.core.StandardContext start 严重: Error filterStart 2010-7-1 21:59:10 org.apache.catalina.core.StandardContext start 严重: Context [/Struts2_0200_Namespace] startup failed due to previous errors 2010-7-1 21:59:10 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap 严重: A web application created a ThreadLocal with key of type [null] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@dc9065]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@8beff2]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed. 2010-7-1 21:59:10 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap 严重: A web application created a ThreadLocal with key of type [null] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@c67a88]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@96ad7c]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed. [size=large][color=red]网页中提示的错误是:[/color][/size]The requested resource () is not available. [size=medium][color=darkred]我在浏览器里输入的是:http://localhost:8080/t/heStruts2_0200_Namespace/front/index[/color][/size] 倒腾了很久,就是解决不了,希望大家给看一下,谢谢!!
myeclipse tomcat7.0无法启动,报错
之前导入过ssh项目,运行后报错,然后把ssh项目删掉了,原本存在的一个项目中没有ssh框架,现在启动tomcat就开始报错了,在出错时去网页上试过不能打开网页。 配置的tomcat7.0,jdk1.7,myeclipse10 三月 16, 2017 4:20:07 下午 org.apache.catalina.startup.SetAllPropertiesRule begin 警告: [SetAllPropertiesRule]{Server/Service/Connector} Setting property 'URLEncoding' to 'utf-8' did not find a matching property. 三月 16, 2017 4:20:07 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: Server version: Apache Tomcat/7.0.70 三月 16, 2017 4:20:07 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: Server built: Jun 15 2016 16:27:45 UTC 三月 16, 2017 4:20:07 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: Server number: 7.0.70.0 三月 16, 2017 4:20:07 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: OS Name: Windows 7 三月 16, 2017 4:20:07 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: OS Version: 6.1 三月 16, 2017 4:20:07 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: Architecture: amd64 三月 16, 2017 4:20:07 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: Java Home: C:\Program Files\Java\jdk1.7.0_79\jre 三月 16, 2017 4:20:07 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: JVM Version: 1.7.0_79-b15 三月 16, 2017 4:20:07 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: JVM Vendor: Oracle Corporation 三月 16, 2017 4:20:07 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: CATALINA_BASE: D:\apache-tomcat-7.0.70 三月 16, 2017 4:20:07 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: CATALINA_HOME: D:\apache-tomcat-7.0.70 三月 16, 2017 4:20:07 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: Command line argument: -agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:54505 三月 16, 2017 4:20:07 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: Command line argument: -Dcatalina.home=D:\apache-tomcat-7.0.70 三月 16, 2017 4:20:07 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: Command line argument: -Dcatalina.base=D:\apache-tomcat-7.0.70 三月 16, 2017 4:20:07 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: Command line argument: -Djava.endorsed.dirs=D:\apache-tomcat-7.0.70/common/endorsed 三月 16, 2017 4:20:07 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: Command line argument: -Djava.io.tmpdir=D:\apache-tomcat-7.0.70\temp 三月 16, 2017 4:20:07 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: Command line argument: -Djava.library.path=C:\Program Files\Java\jdk1.7.0_79\bin;D:\apache-tomcat-7.0.70\bin 三月 16, 2017 4:20:07 下午 org.apache.catalina.startup.VersionLoggerListener log 信息: Command line argument: -Dsun.io.useCanonCaches=false 三月 16, 2017 4:20:07 下午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent 信息: Loaded APR based Apache Tomcat Native library 1.2.7 using APR version 1.5.2. 三月 16, 2017 4:20:07 下午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent 信息: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true]. 三月 16, 2017 4:20:08 下午 org.apache.catalina.core.AprLifecycleListener initializeSSL 信息: OpenSSL successfully initialized (OpenSSL 1.0.2h 3 May 2016) 三月 16, 2017 4:20:08 下午 org.apache.coyote.AbstractProtocol init 信息: Initializing ProtocolHandler ["http-apr-8080"] 三月 16, 2017 4:20:08 下午 org.apache.coyote.AbstractProtocol init 信息: Initializing ProtocolHandler ["ajp-apr-8009"] 三月 16, 2017 4:20:08 下午 org.apache.catalina.startup.Catalina load 信息: Initialization processed in 2141 ms 三月 16, 2017 4:20:08 下午 org.apache.catalina.core.StandardService startInternal 信息: Starting service Catalina 三月 16, 2017 4:20:08 下午 org.apache.catalina.core.StandardEngine startInternal 信息: Starting Servlet Engine: Apache Tomcat/7.0.70 三月 16, 2017 4:20:08 下午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deploying web application directory D:\apache-tomcat-7.0.70\webapps\coding 三月 16, 2017 4:20:10 下午 org.apache.catalina.core.ApplicationContext log 信息: No Spring WebApplicationInitializer types detected on classpath 三月 16, 2017 4:20:10 下午 org.apache.catalina.core.ApplicationContext log 信息: Initializing Spring root WebApplicationContext [org.springframework.web.context.ContextLoader]Root WebApplicationContext: initialization started [org.springframework.web.context.support.XmlWebApplicationContext]Refreshing Root WebApplicationContext: startup date [Thu Mar 16 16:20:11 CST 2017]; root of context hierarchy [org.springframework.beans.factory.xml.XmlBeanDefinitionReader]Loading XML bean definitions from class path resource [spring.xml] [org.springframework.context.annotation.ClassPathBeanDefinitionScanner]JSR-250 'javax.annotation.ManagedBean' found and supported for component scanning [org.springframework.beans.factory.xml.XmlBeanDefinitionReader]Loading XML bean definitions from class path resource [spring-hibernate.xml] [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer]Loading properties file from class path resource [config.properties] [org.springframework.beans.factory.support.DefaultListableBeanFactory]Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@6be0e7a9: defining beans [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0,baseDao,demoAuthService,demoBugService,demoLogUserService,demoMenuService,demoOnlineService,demoRepairService,demoRoleService,demoUserService,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,dataSource,sessionFactory,transactionManager,transactionAdvice,org.springframework.aop.config.internalAutoProxyCreator,transactionPointcut,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0,druid-stat-interceptor,druid-stat-pointcut,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#1,org.springframework.context.annotation.ConfigurationClassPostProcessor$ImportAwareBeanPostProcessor#0]; root of factory hierarchy [com.alibaba.druid.pool.DruidAbstractDataSource]maxIdle is deprecated [com.alibaba.druid.pool.DruidDataSource]{dataSource-1} inited [org.hibernate.annotations.common.Version]HCANN000001: Hibernate Commons Annotations {4.0.1.Final} [org.hibernate.Version]HHH000412: Hibernate Core {4.1.7.Final} [org.hibernate.cfg.Environment]HHH000206: hibernate.properties not found [org.hibernate.cfg.Environment]HHH000021: Bytecode provider name : javassist [com.alibaba.druid.pool.DruidDataSource]create connection error com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at com.mysql.jdbc.Util.handleNewInstance(Util.java:411) at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1117) at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:350) at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2393) at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2430) at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2215) at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:813) at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at com.mysql.jdbc.Util.handleNewInstance(Util.java:411) at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:399) at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:334) at com.alibaba.druid.filter.FilterChainImpl.connection_connect(FilterChainImpl.java:142) at com.alibaba.druid.filter.stat.StatFilter.connection_connect(StatFilter.java:211) at com.alibaba.druid.filter.FilterChainImpl.connection_connect(FilterChainImpl.java:136) at com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java:1207) at com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java:1261) at com.alibaba.druid.pool.DruidDataSource$CreateConnectionThread.run(DruidDataSource.java:1197) Caused by: java.net.ConnectException: Connection refused: connect at java.net.DualStackPlainSocketImpl.connect0(Native Method) at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:579) at java.net.Socket.connect(Socket.java:528) at java.net.Socket.<init>(Socket.java:425) at java.net.Socket.<init>(Socket.java:241) at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:257) at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:300) ... 18 more
急求解答,对象实例化问题!!!
是JSP+Servlet+JavaBean+mysql,用MyEclipse做的一个简单网站,遇到了如下问题:定义了类,在jsp页面引用时,用import导入了之后还是出错! package wyf.zrk; public class AdminBean { private int curPage = 1; private String sql; private int totalPage = 1; public int getCurPage() { return this.curPage; } public void setCurPage(int curPage) { this.curPage = curPage; } public void setSql(String sql) { this.sql = sql; } public String getSql() { return this.sql; } public int getTotalPage() { return this.totalPage; } public void setTotalPage(int totalPage) { this.totalPage = totalPage; } public String manageStr(String str) { String info = ""; String[] msg = str.split("\\|"); for(String temp:msg) { info = info+temp+" "; } return info; } } <%@ page contentType="text/html;charset=utf8" pageEncoding="utf8"%> <%@ page import="wyf.zrk.AdminBean,wyf.zrk.DBcart,java.util.*"%> <table border="0" width="100%"> <% Vector<String[]> vgoods = (Vector<String[]>)request.getAttribute("vgoods"); if(vgoods==null) { adBean.setCurPage(1); String gsql = "select Gimgurl,Gname,Gintro,Gclass,"+ "Gprice,Glook,Gid,Gdate from GoodsInfo"; int totalpage = DBcart.getTotalPage("select count(*) from GoodsInfo"); adBean.setTotalPage(totalpage); adBean.setSql(gsql); vgoods = DBcart.getPageContent(1,gsql); }
JAX-WS webservice部署到weblogic11出错
用myeclipse生成的JAX-WS webservice服务端在tomcat下运行正常,部署到weblogic11上出错,期望大虾能帮忙,在网上找了好久说是要导入weblogic的几个jar包具体怎么样也没有说明 错误代码和 java代码如下 如下 2013-8-22 19:23:03 com.sun.xml.ws.transport.http.servlet.WSServletContextListener parseAdaptersAndCreateDelegate 严重: WSSERVLET11: failed to parse runtime descriptor: com.sun.xml.ws.util.ServiceConfigurationError: com.sun.xml.ws.api.wsdl.writer.WSDLGeneratorExte nsion: Provider weblogic.wsee.jaxws.framework.policy.WSDLGeneratorExtension is specified in jar:file:/D:/oracle/Middleware/wlserver_10.3/server/lib/we blogic.jar!/META-INF/services/com.sun.xml.ws.api.wsdl.writer.WSDLGeneratorExtensionbut could not be instantiated: java.lang.ClassCastException com.sun.xml.ws.util.ServiceConfigurationError: com.sun.xml.ws.api.wsdl.writer.WSDLGeneratorExtension: Provider weblogic.wsee.jaxws.framework.policy.WS DLGeneratorExtension is specified in jar:file:/D:/oracle/Middleware/wlserver_10.3/server/lib/weblogic.jar!/META-INF/services/com.sun.xml.ws.api.wsdl.w riter.WSDLGeneratorExtensionbut could not be instantiated: java.lang.ClassCastException at com.sun.xml.ws.util.ServiceFinder.fail(ServiceFinder.java:233) at com.sun.xml.ws.util.ServiceFinder.access$300(ServiceFinder.java:141) at com.sun.xml.ws.util.ServiceFinder$LazyIterator.next(ServiceFinder.java:379) at com.sun.xml.ws.util.ServiceFinder.toArray(ServiceFinder.java:225) at com.sun.xml.ws.server.EndpointFactory.generateWSDL(EndpointFactory.java:442) at com.sun.xml.ws.server.EndpointFactory.createEndpoint(EndpointFactory.java:209) at com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:509) at com.sun.xml.ws.transport.http.DeploymentDescriptorParser.parseAdapters(DeploymentDescriptorParser.java:253) at com.sun.xml.ws.transport.http.DeploymentDescriptorParser.parse(DeploymentDescriptorParser.java:147) at com.sun.xml.ws.transport.http.servlet.WSServletContextListener.parseAdaptersAndCreateDelegate(WSServletContextListener.java:127) at com.sun.xml.ws.transport.http.servlet.WSServletContextListener.contextInitialized(WSServletContextListener.java:148) at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:481) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120) at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:181) at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1872) at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3153) at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1508) at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:482) at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52) at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119) at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200) at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:247) at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52) at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119) at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27) at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:636) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52) at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:205) at weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:43) at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161) at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79) at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:184) at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:361) at weblogic.management.deploy.internal.DeploymentAdapter$1.doActivate(DeploymentAdapter.java:51) at weblogic.management.deploy.internal.DeploymentAdapter.activate(DeploymentAdapter.java:200) at weblogic.management.deploy.internal.AppTransition$2.transitionApp(AppTransition.java:30) at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:240) at weblogic.management.deploy.internal.ConfiguredDeployments.activate(ConfiguredDeployments.java:169) at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:123) at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:180) at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:96) at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207) at weblogic.work.ExecuteThread.run(ExecuteThread.java:176) Caused by: java.lang.ClassCastException at java.lang.Class.cast(Class.java:2990) at com.sun.xml.ws.util.ServiceFinder$LazyIterator.next(ServiceFinder.java:374) ... 44 more <2013-8-22 下午07时23分03秒 CST> <Warning> <HTTP> <BEA-101162> <User defined listener com.sun.xml.ws.transport.http.servlet.WSServletContextListener f ailed: com.sun.xml.ws.transport.http.servlet.WSServletException: WSSERVLET11: failed to parse runtime descriptor: com.sun.xml.ws.util.ServiceConfigura tionError: com.sun.xml.ws.api.wsdl.writer.WSDLGeneratorExtension: Provider weblogic.wsee.jaxws.framework.policy.WSDLGeneratorExtension is specified in jar:file:/D:/oracle/Middleware/wlserver_10.3/server/lib/weblogic.jar!/META-INF/services/com.sun.xml.ws.api.wsdl.writer.WSDLGeneratorExtensionbut coul d not be instantiated: java.lang.ClassCastException. com.sun.xml.ws.transport.http.servlet.WSServletException: WSSERVLET11: failed to parse runtime descriptor: com.sun.xml.ws.util.ServiceConfigurationErr or: com.sun.xml.ws.api.wsdl.writer.WSDLGeneratorExtension: Provider weblogic.wsee.jaxws.framework.policy.WSDLGeneratorExtension is specified in jar:fi le:/D:/oracle/Middleware/wlserver_10.3/server/lib/weblogic.jar!/META-INF/services/com.sun.xml.ws.api.wsdl.writer.WSDLGeneratorExtensionbut could not b e instantiated: java.lang.ClassCastException at com.sun.xml.ws.transport.http.servlet.WSServletContextListener.parseAdaptersAndCreateDelegate(WSServletContextListener.java:137) at com.sun.xml.ws.transport.http.servlet.WSServletContextListener.contextInitialized(WSServletContextListener.java:148) at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:481) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120) Truncated. see log file for complete stacktrace Caused By: com.sun.xml.ws.util.ServiceConfigurationError: com.sun.xml.ws.api.wsdl.writer.WSDLGeneratorExtension: Provider weblogic.wsee.jaxws.framewor k.policy.WSDLGeneratorExtension is specified in jar:file:/D:/oracle/Middleware/wlserver_10.3/server/lib/weblogic.jar!/META-INF/services/com.sun.xml.ws .api.wsdl.writer.WSDLGeneratorExtensionbut could not be instantiated: java.lang.ClassCastException at com.sun.xml.ws.util.ServiceFinder.fail(ServiceFinder.java:233) at com.sun.xml.ws.util.ServiceFinder.access$300(ServiceFinder.java:141) at com.sun.xml.ws.util.ServiceFinder$LazyIterator.next(ServiceFinder.java:379) at com.sun.xml.ws.util.ServiceFinder.toArray(ServiceFinder.java:225) at com.sun.xml.ws.server.EndpointFactory.generateWSDL(EndpointFactory.java:442) Truncated. see log file for complete stacktrace Caused By: java.lang.ClassCastException at java.lang.Class.cast(Class.java:2990) at com.sun.xml.ws.util.ServiceFinder$LazyIterator.next(ServiceFinder.java:374) at com.sun.xml.ws.util.ServiceFinder.toArray(ServiceFinder.java:225) at com.sun.xml.ws.server.EndpointFactory.generateWSDL(EndpointFactory.java:442) at com.sun.xml.ws.server.EndpointFactory.createEndpoint(EndpointFactory.java:209) Truncated. see log file for complete stacktrace > 2013-8-22 19:23:03 com.sun.xml.ws.transport.http.servlet.WSServletContextListener contextDestroyed 信息: WSSERVLET13: JAX-WS context listener destroyed <2013-8-22 下午07时23分03秒 CST> <Error> <Deployer> <BEA-149231> <Unable to set the activation state to true for the application 'webapp'. weblogic.application.ModuleException: at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1510) at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:482) at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52) at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119) Truncated. see log file for complete stacktrace Caused By: java.lang.ClassCastException at java.lang.Class.cast(Class.java:2990) at com.sun.xml.ws.util.ServiceFinder$LazyIterator.next(ServiceFinder.java:374) at com.sun.xml.ws.util.ServiceFinder.toArray(ServiceFinder.java:225) at com.sun.xml.ws.server.EndpointFactory.generateWSDL(EndpointFactory.java:442) at com.sun.xml.ws.server.EndpointFactory.createEndpoint(EndpointFactory.java:209) Truncated. see log file for complete stacktrace > <2013-8-22 下午07时23分03秒 CST> <Notice> <LoggingService> <BEA-320400> <The log file D:\oracle\Middleware\user_projects\domains\base_domain3\servers\ AdminServer\logs\base_domain3.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms like Windows.> <2013-8-22 下午07时23分03秒 CST> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to D:\oracle\Middleware\user_projects\domains\b ase_domain3\servers\AdminServer\logs\base_domain3.log00019. Log messages will continue to be logged in D:\oracle\Middleware\user_projects\domains\base _domain3\servers\AdminServer\logs\base_domain3.log.> <2013-8-22 下午07时23分03秒 CST> <Notice> <Log Management> <BEA-170027> <The Server has established connection with the Domain level Diagnostic Servic e successfully.> <2013-8-22 下午07时23分04秒 CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN> <2013-8-22 下午07时23分04秒 CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING> <2013-8-22 下午07时23分04秒 CST> <Notice> <Server> <BEA-002613> <Channel "Default[1]" is now listening on fe80:0:0:0:0:100:7f:fffe:7001 for protocols iiop, t3, ldap, snmp, http.> <2013-8-22 下午07时23分04秒 CST> <Notice> <Server> <BEA-002613> <Channel "Default[3]" is now listening on fe80:0:0:0:3c8d:4043:6cbd:c03c:7001 for prot ocols iiop, t3, ldap, snmp, http.> <2013-8-22 下午07时23分04秒 CST> <Warning> <Server> <BEA-002611> <Hostname "huyrjb-PC", maps to multiple IP addresses: 192.168.220.217, fe80:0:0:0:3c8 d:4043:6cbd:c03c%11> <2013-8-22 下午07时23分04秒 CST> <Notice> <Server> <BEA-002613> <Channel "Default[2]" is now listening on fe80:0:0:0:0:5efe:c0a8:dcd9:7001 for protoco ls iiop, t3, ldap, snmp, http.> <2013-8-22 下午07时23分04秒 CST> <Notice> <Server> <BEA-002613> <Channel "Default[5]" is now listening on 0:0:0:0:0:0:0:1:7001 for protocols iiop, t3, ldap, snmp, http.> <2013-8-22 下午07时23分04秒 CST> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 192.168.220.217:7001 for protocols iiop, t3, ld ap, snmp, http.> <2013-8-22 下午07时23分04秒 CST> <Notice> <Server> <BEA-002613> <Channel "Default[4]" is now listening on 127.0.0.1:7001 for protocols iiop, t3, ldap, snmp, http.> <2013-8-22 下午07时23分04秒 CST> <Notice> <WebLogicServer> <BEA-000331> <Started WebLogic Admin Server "AdminServer" for domain "base_domain3" running in Development Mode> <2013-8-22 下午07时23分04秒 CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING> <2013-8-22 下午07时23分04秒 CST> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode> java---------------------------代码如下 @WebService(targetNamespace = "http://www.***.***/", serviceName = "QueryTaskInfosService" ) public class QueryTaskInfosDelegate { com.huiye.webservice.server.QueryTaskInfos queryTaskInfos = new com.huiye.webservice.server.QueryTaskInfos(); @WebMethod(action = " queryTaskInfoBySource " , operationName = " queryTaskInfoBySource " ) public String queryTaskInfoBySource(@WebParam(name = " taskSource " )String taskSource) { return queryTaskInfos.queryTaskInfoBySource(taskSource); } }
java编程中使用solrj,数据传递过程中出了问题,请帮忙看看到底是哪里出了问题并告诉我一下原因
## 使用tomcat7,myeclipse2017 C1,JDK 1.7,maven 3.2.3,solr 4.10.2 ## 通过浏览器访问http://search.taotao.com/search.html?q=tcl ,进入controller后, ## 错误信息: ![图片说明](https://img-ask.csdn.net/upload/201708/05/1501924252_501906.jpg) ![报错1](https://img-ask.csdn.net/upload/201708/05/1501924263_876276.jpg) ## controller: ![图片说明](https://img-ask.csdn.net/upload/201708/05/1501924317_113467.jpg) ## service: ![图片说明](https://img-ask.csdn.net/upload/201708/05/1501924345_921561.jpg) ![图片说明](https://img-ask.csdn.net/upload/201708/05/1501924354_916923.jpg) ## pojo:![图片说明](https://img-ask.csdn.net/upload/201708/05/1501924384_588215.jpg) ## solr中的schema.xml中的cid ![图片说明](https://img-ask.csdn.net/upload/201708/05/1501924421_73630.jpg) ## solr中cid的属性: ![图片说明](https://img-ask.csdn.net/upload/201708/05/1501924453_371269.jpg) ## 自己debug后发现映射过程中出问题的地方: ![图片说明](https://img-ask.csdn.net/upload/201708/05/1501924524_329295.jpg) ## 对queryResponse进行查看: ![图片说明](https://img-ask.csdn.net/upload/201708/05/1501924546_987631.jpg) ## 发现确实取到值了并贴出: ![图片说明](https://img-ask.csdn.net/upload/201708/05/1501924571_697979.jpg) ## 说一下程序中的数据来源吧,mysql中是直接导入的几千条数据 ![这是表的结构](https://img-ask.csdn.net/upload/201708/05/1501922858_408822.jpg) ## 然后用solrj将表中的数据导入到solr服务器中 的代码: ``` public class DataImportTest { private HttpSolrServer httpSolrServer; private static final ObjectMapper MAPPER = new ObjectMapper(); @Before public void setUp() throws Exception { // 在url中指定core名称:taotao //"http://solr.taotao.com/#/taotao"--界面操作 String url = "http://solr.taotao.com/taotao";//服务地址 HttpSolrServer httpSolrServer = new HttpSolrServer(url); //定义solr的server httpSolrServer.setParser(new XMLResponseParser()); // 设置响应解析器 httpSolrServer.setMaxRetries(1); // 设置重试次数,推荐设置为1 httpSolrServer.setConnectionTimeout(500); // 建立连接的最长时间 this.httpSolrServer = httpSolrServer; } @Test public void testData() throws Exception{ String url = "http://manage.taotao.com/rest/item?page={page}&rows=100"; int page = 1; int pageSize=0; do { String u = StringUtils.replace(url, "{page}", ""+page); String jsonData =doGet(u); JsonNode jsonNode = MAPPER.readTree(jsonData); String rowsStr = jsonNode.get("rows").toString(); List<Item> items=MAPPER.readValue(rowsStr, MAPPER.getTypeFactory().constructCollectionType(List.class, Item.class)); pageSize=items.size(); httpSolrServer.addBeans(items); this.httpSolrServer.commit(); page++; } while (pageSize == 100); } private String doGet(String url) throws Exception{ // 创建Httpclient对象 CloseableHttpClient httpclient = HttpClients.createDefault(); // 创建http GET请求 HttpGet httpGet = new HttpGet(url); CloseableHttpResponse response = null; try { // 执行请求 response = httpclient.execute(httpGet); // 判断返回状态是否为200 if (response.getStatusLine().getStatusCode() == 200) { return EntityUtils.toString(response.getEntity(), "UTF-8"); } } finally { if (response != null) { response.close(); } httpclient.close(); } return null; } } ``` ## 然后就是出了文章开头报的错误。 ![图片说明](https://img-ask.csdn.net/upload/201708/05/1501923430_422663.jpg) ## 在后续的编程过程中,我发现将item中的cid改为Integer,可以解决这个报错。 ## ## 但是通过后台新增的数据,查询就会报错,报的错为 ![报错2](https://img-ask.csdn.net/upload/201708/05/1501923241_176200.jpg) ## 与之前报的错(文章第一张图中的报错)刚好相反。但是将Item类中的cid改为Long型,那么查询新增数据(自己添加的数据)就没问题,查询导入的数据则报文章开头帖子中的错。 ## 这样,我的分析是导入的数据可能存在问题,是否是导入过程中将本来为long型的cid转为了Integer类型? ## ## 但是我确实不知道在哪个地方出错了,麻烦懂的大神帮忙给看看,并告之我详情,十分之感谢~需要什么地方的代码请跟我说,谢谢
关于struts2的问题,严重
我的struts2.1.6工程。利用myeclipse6.6.0开发。 导入了最基本5包后,配置好xml后,启动tomcat无错。 但是用浏览器不能打开工程,报告File "/WEB-INF/web.xml" not found和File "/struts-tags" not found。 重新覆盖web.xml文件配置信息后,第一个错误消失。(1)myeclipse6.6.0自动生成的头信息有错吗? 第一个错误消失但第二个错误依旧。于是将struts标签改为html标签。(2)为什么服务器找不到struts2标签呢? 重启服务器仍然打不开,在工程名后面加/WebRoot/index.jsp可以打开首页,但是跳转出错not available,服务器没报错。(3)这是这么回事? [b]问题补充:[/b] 我已经描述的很详细了,不过有人还是侥幸的希望我的问题出在配置上。我的各种配置都是按照2.0的教程来的,人家让干嘛就干嘛。人家运行成功了,我的旧失败了。
Jsp+JavaBean+MySql实现登陆及增删改查出错。The value for the useBean class attribute bean.Sql
Jsp+JavaBean+MySql实现登陆及增删改查出错。The value for the useBean class attribute bean.SqlConn is invalid. 运行环境:Tomcat6.0+jdk1.6+MyEclipse6.0 报错信息: type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: /ADMS/WebRoot/add.jsp(2,0) The value for the useBean class attribute bean.SqlConn is invalid. org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40) org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407) org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:148) org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1200) org.apache.jasper.compiler.Node$UseBean.accept(Node.java:1155) org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2336) org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2386) org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2392) org.apache.jasper.compiler.Node$Root.accept(Node.java:489) org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2336) org.apache.jasper.compiler.Generator.generate(Generator.java:3394) org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:210) org.apache.jasper.compiler.Compiler.compile(Compiler.java:306) org.apache.jasper.compiler.Compiler.compile(Compiler.java:286) org.apache.jasper.compiler.Compiler.compile(Compiler.java:273) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:308) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) note The full stack trace of the root cause is available in the Apache Tomcat/6.0.10 logs. 我的代码 1.SqlConn.java package bean; import java.sql.*; public class SqlConn { private String url = "jdbc:mysql://localhost:3036/adms"; private String user = "root"; private String password = "root"; private Connection conn = null; private Statement stmt = null; private ResultSet rs = null; public SqlConn(){ try{ Class.forName("com.mysql.jdbc.Driver"); } catch(java.lang.ClassNotFoundException e){ System.err.println("SqlConn():"+e.getMessage()); } } public ResultSet executeQuery(String sql){ try{ conn = DriverManager.getConnection(url,user,password); stmt = conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_READ_ONLY); rs = stmt.executeQuery(sql); }catch(SQLException ex){ System.err.println("SqlConn.executeQuery:"+ex.getMessage()); } return rs; } public void executeUpdate(String sql){ try{ conn = DriverManager.getConnection(url,user,password); stmt = conn.createStatement(); stmt.executeUpdate(sql); stmt.close(); conn.close(); }catch(SQLException ex){ System.err.println("SqlConn.executeUpdate:"+ex.getMessage()); } } public void closeStmt(){ try{ stmt.close(); }catch(SQLException e){ e.printStackTrace(); } } public void closeConn(){ try{ conn.close(); }catch(SQLException e){ e.printStackTrace(); } } public static void main(String[] args) { // TODO Auto-generated method stub } } 2.login.jsp <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <%--使用SqlConn.class--%> <jsp:useBean id="sqlbean" scope="page" class="bean.SqlConn"/> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>My JSP 'login.jsp' starting page</title> <meta http-equiv="pragma" content="no-cache"> <meta http-equiv="cache-control" content="no-cache"> <meta http-equiv="expires" content="0"> <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"> <meta http-equiv="description" content="This is my page"> <!-- <link rel="stylesheet" type="text/css" href="styles.css"> --> </head> <body> <form name="form1" action="loginto.jsp" method="post"> <table width="225" border="1" align="center"> <tbody> <tr> <td>用户名</td> <td><input type="text" name="username"> </td> </tr> <tr> <td>密码 </td> <td><input type="password" name="password"></td> </tr> <tr> <td colspan="2" align="center"> <input type="radio" checked="checked" value="1" name="role">用户 &nbsp;&nbsp;&nbsp; <input type="radio" value="0" name="role">管理员 </td> </tr> <tr> <td>&nbsp;</td> <td><input type="submit" value="登陆" name="login"> &nbsp;&nbsp; <input type="reset" value="重置" name="reset"> </td> </tr> </tbody> </table> </form> </body> </html> 3.loginto.jsp <%@ page language="java" import="java.sql.*" pageEncoding="UTF-8"%> <jsp:useBean id="sqlbean" scope="page" class="bean.SqlConn"/> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>My JSP 'loginto.jsp' starting page</title> <meta http-equiv="pragma" content="no-cache"> <meta http-equiv="cache-control" content="no-cache"> <meta http-equiv="expires" content="0"> <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"> <meta http-equiv="description" content="This is my page"> <!-- <link rel="stylesheet" type="text/css" href="styles.css"> --> </head> <body> <% String username = request.getParameter("username").trim(); String password = request.getParameter("password").trim(); String role = request.getParameter("role").trim(); try{ if(role.equals("0")) { String sql = "select * from admin where admin_id='"+username+"'and admin_psw='"+password+"'"; ResultSet rs = sqlbean.executeQuery(sql); if(rs.next()) response.sendRedirect("adms.jsp"); else out.println("错误的用户名或密码!"); } else if(role.equals("1")) { String sql = "select * from user where user_id='"+username+"'and user_psw='"+password+"'"; ResultSet rs = sqlbean.executeQuery(sql); if(rs.next()) out.println("您好,"+username); else out.println("错误的用户名或密码!"); } }catch(Exception ee){ ee.printStackTrace(); } %> </body> </html> 还有添加,删除,修改,查找等jsp页面。 我用JSP页面直接连接就能运行,没有错。只要是有JavaBean,就会报错。希望大家多多指教。 这个问题出现好久了,不仅这一个项目有这样的问题,所有的导入和新建的web project 只要有JavaBean都会有这样的错误。 搞不清是什么原因。数据库是SQLServer2000的时候也是这样的错误。
SSH小程序tomcat部署错误提示
[color=red]严重: Exception starting filter OnlineFilter java.lang.Error: Unresolved compilation problems: Syntax error, annotations are only available if source level is 5.0[/color] The method setAttribute(String, Object) in the type ServletRequest is not applicable for the arguments (String, long) The method setAttribute(String, Object) in the type ServletRequest is not applicable for the arguments (String, int) The type Map is not generic; it cannot be parameterized with arguments <String, String> Syntax error, parameterized types are only available if source level is 5.0 ForumInit.settings cannot be resolved ForumInit.settings cannot be resolved The method updateCache(String[]) in the type Cache is not applicable for the arguments () Syntax error, parameterized types are only available if source level is 5.0 The type Map is not generic; it cannot be parameterized with arguments <String, Object> Syntax error, parameterized types are only available if source level is 5.0 The type Map is not generic; it cannot be parameterized with arguments <String, Object> Syntax error, parameterized types are only available if source level is 5.0 The type Map is not generic; it cannot be parameterized with arguments <String, Object> The type Map is not generic; it cannot be parameterized with arguments <String, Object> Syntax error, parameterized types are only available if source level is 5.0 The operator > is undefined for the argument type(s) Integer, int The operator > is undefined for the argument type(s) Integer, int Type mismatch: cannot convert from int to Integer Type mismatch: cannot convert from Short to short Type mismatch: cannot convert from Byte to byte The operator > is undefined for the argument type(s) Short, int The method setAttribute(String, Object) in the type HttpSession is not applicable for the arguments (String, short) The method setAttribute(String, Object) in the type HttpSession is not applicable for the arguments (String, byte) The method setAttribute(String, Object) in the type ServletRequest is not applicable for the arguments (String, boolean) Type mismatch: cannot convert from Boolean to boolean ForumInit.settings cannot be resolved The type Map is not generic; it cannot be parameterized with arguments <String, String> Syntax error, parameterized types are only available if source level is 5.0 The type HashMap is not generic; it cannot be parameterized with arguments <String, String> Syntax error, parameterized types are only available if source level is 5.0 Syntax error, parameterized types are only available if source level is 5.0 The type Map is not generic; it cannot be parameterized with arguments <String, String> The method executeQuery(String, String[]) in the type DataBaseService is not applicable for the arguments (String) [color=red]at cn.jsprun.filter.OnlineFilter.<init>(OnlineFilter.java:37)[/color] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:255) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397) at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3693) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4340) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:719) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:566) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) 2011-6-24 21:29:27 org.apache.catalina.core.StandardContext start 严重: Error filterStart 2011-6-24 21:29:27 org.apache.catalina.core.StandardContext start 严重: Context [/jsprungbk] startup failed due to previous errors log4j:WARN No appenders could be found for logger (org.apache.struts.util.PropertyMessageResources). log4j:WARN Please initialize the log4j system properly. 2011-6-24 21:29:30 org.apache.catalina.core.ApplicationContext log 信息: Initializing WebApplicationContext for Struts ActionServlet 'action', module '' 2011-6-24 21:29:36 org.apache.coyote.http11.Http11AprProtocol start 信息: Starting Coyote HTTP/1.1 on http-8080 2011-6-24 21:29:36 org.apache.coyote.ajp.AjpAprProtocol start 信息: Starting Coyote AJP/1.3 on ajp-8009 2011-6-24 21:29:36 org.apache.catalina.startup.Catalina start 信息: Server startup in 9476 ms 我确定我的myeclipse中project-Compiler compliance setting设置的是5.0,也导入了Java ee 5的包 另外我还没写任何filter,不明白为什么会有Exception starting filter OnlineFilter 标红的cn.jsprun.filter.OnlineFilter.<init>(OnlineFilter.java:37)这个包我也很确定没有主观导入过 我不记得自己是不是下载过jsprun的东西 cn.jsprun.filter.OnlineFilter.<init>(OnlineFilter.java:37) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883) 这种点击出错代码段的话提示source not found
终于明白阿里百度这样的大公司,为什么面试经常拿ThreadLocal考验求职者了
点击上面↑「爱开发」关注我们每晚10点,捕获技术思考和创业资源洞察什么是ThreadLocalThreadLocal是一个本地线程副本变量工具类,各个线程都拥有一份线程私有的数
程序员必须掌握的核心算法有哪些?
由于我之前一直强调数据结构以及算法学习的重要性,所以就有一些读者经常问我,数据结构与算法应该要学习到哪个程度呢?,说实话,这个问题我不知道要怎么回答你,主要取决于你想学习到哪些程度,不过针对这个问题,我稍微总结一下我学过的算法知识点,以及我觉得值得学习的算法。这些算法与数据结构的学习大多数是零散的,并没有一本把他们全部覆盖的书籍。下面是我觉得值得学习的一些算法以及数据结构,当然,我也会整理一些看过...
《奇巧淫技》系列-python!!每天早上八点自动发送天气预报邮件到QQ邮箱
此博客仅为我业余记录文章所用,发布到此,仅供网友阅读参考,如有侵权,请通知我,我会删掉。 补充 有不少读者留言说本文章没有用,因为天气预报直接打开手机就可以收到了,为何要多此一举发送到邮箱呢!!!那我在这里只能说:因为你没用,所以你没用!!! 这里主要介绍的是思路,不是天气预报!不是天气预报!!不是天气预报!!!天气预报只是用于举例。请各位不要再刚了!!! 下面是我会用到的两个场景: 每日下
面试官问我:什么是消息队列?什么场景需要他?用了会出现什么问题?
你知道的越多,你不知道的越多 点赞再看,养成习惯 GitHub上已经开源 https://github.com/JavaFamily 有一线大厂面试点脑图、个人联系方式,欢迎Star和完善 前言 消息队列在互联网技术存储方面使用如此广泛,几乎所有的后端技术面试官都要在消息队列的使用和原理方面对小伙伴们进行360°的刁难。 作为一个在互联网公司面一次拿一次Offer的面霸,打败了无数
8年经验面试官详解 Java 面试秘诀
    作者 | 胡书敏 责编 | 刘静 出品 | CSDN(ID:CSDNnews) 本人目前在一家知名外企担任架构师,而且最近八年来,在多家外企和互联网公司担任Java技术面试官,前后累计面试了有两三百位候选人。在本文里,就将结合本人的面试经验,针对Java初学者、Java初级开发和Java开发,给出若干准备简历和准备面试的建议。   Java程序员准备和投递简历的实
究竟你适不适合买Mac?
我清晰的记得,刚买的macbook pro回到家,开机后第一件事情,就是上了淘宝网,花了500元钱,找了一个上门维修电脑的师傅,上门给我装了一个windows系统。。。。。。 表砍我。。。 当时买mac的初衷,只是想要个固态硬盘的笔记本,用来运行一些复杂的扑克软件。而看了当时所有的SSD笔记本后,最终决定,还是买个好(xiong)看(da)的。 已经有好几个朋友问我mba怎么样了,所以今天尽量客观
程序员一般通过什么途径接私活?
二哥,你好,我想知道一般程序猿都如何接私活,我也想接,能告诉我一些方法吗? 上面是一个读者“烦不烦”问我的一个问题。其实不止是“烦不烦”,还有很多读者问过我类似这样的问题。 我接的私活不算多,挣到的钱也没有多少,加起来不到 20W。说实话,这个数目说出来我是有点心虚的,毕竟太少了,大家轻喷。但我想,恰好配得上“一般程序员”这个称号啊。毕竟苍蝇再小也是肉,我也算是有经验的人了。 唾弃接私活、做外
大学四年自学走来,这些珍藏的「实用工具/学习网站」我全贡献出来了
知乎高赞:文中列举了互联网一线大厂程序员都在用的工具集合,涉及面非常广,小白和老手都可以进来看看,或许有新收获。
《阿里巴巴开发手册》读书笔记-编程规约
Java编程规约命名风格 命名风格 类名使用UpperCamelCase风格 方法名,参数名,成员变量,局部变量都统一使用lowerCamelcase风格 常量命名全部大写,单词间用下划线隔开, 力求语义表达完整清楚,不要嫌名字长 ...
Python爬虫爬取淘宝,京东商品信息
小编是一个理科生,不善长说一些废话。简单介绍下原理然后直接上代码。 使用的工具(Python+pycharm2019.3+selenium+xpath+chromedriver)其中要使用pycharm也可以私聊我selenium是一个框架可以通过pip下载 pip install selenium -i https://pypi.tuna.tsinghua.edu.cn/simple/ 
阿里程序员写了一个新手都写不出的低级bug,被骂惨了。
你知道的越多,你不知道的越多 点赞再看,养成习惯 本文 GitHub https://github.com/JavaFamily 已收录,有一线大厂面试点思维导图,也整理了很多我的文档,欢迎Star和完善,大家面试可以参照考点复习,希望我们一起有点东西。 前前言 为啥今天有个前前言呢? 因为你们的丙丙啊,昨天有牌面了哟,直接被微信官方推荐,知乎推荐,也就仅仅是还行吧(心里乐开花)
Java工作4年来应聘要16K最后没要,细节如下。。。
前奏: 今天2B哥和大家分享一位前几天面试的一位应聘者,工作4年26岁,统招本科。 以下就是他的简历和面试情况。 基本情况: 专业技能: 1、&nbsp;熟悉Sping了解SpringMVC、SpringBoot、Mybatis等框架、了解SpringCloud微服务 2、&nbsp;熟悉常用项目管理工具:SVN、GIT、MAVEN、Jenkins 3、&nbsp;熟悉Nginx、tomca
Python爬虫精简步骤1 获取数据
爬虫的工作分为四步: 1.获取数据。爬虫程序会根据我们提供的网址,向服务器发起请求,然后返回数据。 2.解析数据。爬虫程序会把服务器返回的数据解析成我们能读懂的格式。 3.提取数据。爬虫程序再从中提取出我们需要的数据。 4.储存数据。爬虫程序把这些有用的数据保存起来,便于你日后的使用和分析。 这一篇的内容就是:获取数据。 首先,我们将会利用一个强大的库——requests来获取数据。 在电脑上安装
Python绘图,圣诞树,花,爱心 | Turtle篇
1.画圣诞树 import turtle screen = turtle.Screen() screen.setup(800,600) circle = turtle.Turtle() circle.shape('circle') circle.color('red') circle.speed('fastest') circle.up() square = turtle.Turtle()
作为一个程序员,CPU的这些硬核知识你必须会!
CPU对每个程序员来说,是个既熟悉又陌生的东西? 如果你只知道CPU是中央处理器的话,那可能对你并没有什么用,那么作为程序员的我们,必须要搞懂的就是CPU这家伙是如何运行的,尤其要搞懂它里面的寄存器是怎么一回事,因为这将让你从底层明白程序的运行机制。 随我一起,来好好认识下CPU这货吧 把CPU掰开来看 对于CPU来说,我们首先就要搞明白它是怎么回事,也就是它的内部构造,当然,CPU那么牛的一个东
破14亿,Python分析我国存在哪些人口危机!
2020年1月17日,国家统计局发布了2019年国民经济报告,报告中指出我国人口突破14亿。 猪哥的朋友圈被14亿人口刷屏,但是很多人并没有看到我国复杂的人口问题:老龄化、男女比例失衡、生育率下降、人口红利下降等。 今天我们就来分析一下我们国家的人口数据吧! 更多有趣分析教程,扫描下方二维码关注vx公号「裸睡的猪」 即可查看! 一、背景 1.人口突破14亿 2020年1月17日,国家统计局发布
听说想当黑客的都玩过这个Monyer游戏(1~14攻略)
第零关 进入传送门开始第0关(游戏链接) 请点击链接进入第1关: 连接在左边→ ←连接在右边 看不到啊。。。。(只能看到一堆大佬做完的留名,也能看到菜鸡的我,在后面~~) 直接fn+f12吧 &lt;span&gt;连接在左边→&lt;/span&gt; &lt;a href="first.php"&gt;&lt;/a&gt; &lt;span&gt;←连接在右边&lt;/span&gt; o
在家远程办公效率低?那你一定要收好这个「在家办公」神器!
相信大家都已经收到国务院延长春节假期的消息,接下来,在家远程办公可能将会持续一段时间。 但是问题来了。远程办公不是人在电脑前就当坐班了,相反,对于沟通效率,文件协作,以及信息安全都有着极高的要求。有着非常多的挑战,比如: 1在异地互相不见面的会议上,如何提高沟通效率? 2文件之间的来往反馈如何做到及时性?如何保证信息安全? 3如何规划安排每天工作,以及如何进行成果验收? ......
作为一个程序员,内存和磁盘的这些事情,你不得不知道啊!!!
截止目前,我已经分享了如下几篇文章: 一个程序在计算机中是如何运行的?超级干货!!! 作为一个程序员,CPU的这些硬核知识你必须会! 作为一个程序员,内存的这些硬核知识你必须懂! 这些知识可以说是我们之前都不太重视的基础知识,可能大家在上大学的时候都学习过了,但是嘞,当时由于老师讲解的没那么有趣,又加上这些知识本身就比较枯燥,所以嘞,大家当初几乎等于没学。 再说啦,学习这些,也看不出来有什么用啊!
别低估自己的直觉,也别高估自己的智商
所有群全部吵翻天,朋友圈全部沦陷,公众号疯狂转发。这两周没怎么发原创,只发新闻,可能有人注意到了。我不是懒,是文章写了却没发,因为大家的关注力始终在这次的疫情上面,发了也没人看。当然,我...
这个世界上人真的分三六九等,你信吗?
偶然间,在知乎上看到一个问题 一时间,勾起了我深深的回忆。 以前在厂里打过两次工,做过家教,干过辅导班,做过中介。零下几度的晚上,贴过广告,满脸、满手地长冻疮。   再回首那段岁月,虽然苦,但让我学会了坚持和忍耐。让我明白了,在这个世界上,无论环境多么的恶劣,只要心存希望,星星之火,亦可燎原。   下文是原回答,希望能对你能有所启发。   如果我说,这个世界上人真的分三六九等,
为什么听过很多道理,依然过不好这一生?
记录学习笔记是一个重要的习惯,不希望学习过的东西成为过眼云烟。做总结的同时也是一次复盘思考的过程。 本文是根据阅读得到 App上《万维钢·精英日课》部分文章后所做的一点笔记和思考。学习是一个系统的过程,思维模型的建立需要相对完整的学习和思考过程。以下观点是在碎片化阅读后总结的一点心得总结。
B 站上有哪些很好的学习资源?
哇说起B站,在小九眼里就是宝藏般的存在,放年假宅在家时一天刷6、7个小时不在话下,更别提今年的跨年晚会,我简直是跪着看完的!! 最早大家聚在在B站是为了追番,再后来我在上面刷欧美新歌和漂亮小姐姐的舞蹈视频,最近两年我和周围的朋友们已经把B站当作学习教室了,而且学习成本还免费,真是个励志的好平台ヽ(.◕ฺˇд ˇ◕ฺ;)ノ 下面我们就来盘点一下B站上优质的学习资源: 综合类 Oeasy: 综合
如何优雅地打印一个Java对象?
你好呀,我是沉默王二,一个和黄家驹一样身高,和刘德华一样颜值的程序员。虽然已经写了十多年的 Java 代码,但仍然觉得自己是个菜鸟(请允许我惭愧一下)。 在一个月黑风高的夜晚,我思前想后,觉得再也不能这么蹉跎下去了。于是痛下决心,准备通过输出的方式倒逼输入,以此来修炼自己的内功,从而进阶成为一名真正意义上的大神。与此同时,希望这些文章能够帮助到更多的读者,让大家在学习的路上不再寂寞、空虚和冷。 ...
雷火神山直播超两亿,Web播放器事件监听是怎么实现的?
Web播放器解决了在手机浏览器和PC浏览器上播放音视频数据的问题,让视音频内容可以不依赖用户安装App,就能进行播放以及在社交平台进行传播。在视频业务大数据平台中,播放数据的统计分析非常重要,所以Web播放器在使用过程中,需要对其内部的数据进行收集并上报至服务端,此时,就需要对发生在其内部的一些播放行为进行事件监听。 那么Web播放器事件监听是怎么实现的呢? 01 监听事件明细表 名
3万字总结,Mysql优化之精髓
本文知识点较多,篇幅较长,请耐心学习 MySQL已经成为时下关系型数据库产品的中坚力量,备受互联网大厂的青睐,出门面试想进BAT,想拿高工资,不会点MySQL优化知识,拿offer的成功率会大大下降。 为什么要优化 系统的吞吐量瓶颈往往出现在数据库的访问速度上 随着应用程序的运行,数据库的中的数据会越来越多,处理时间会相应变慢 数据是存放在磁盘上的,读写速度无法和内存相比 如何优化 设计
Linux 命令(122)—— watch 命令
1.命令简介 2.命令格式 3.选项说明 4.常用示例 参考文献 [1] watch(1) manual
Linux 命令(121)—— cal 命令
1.命令简介 2.命令格式 3.选项说明 4.常用示例 参考文献 [1] cal(1) manual
记jsp+servlet+jdbc实现的新闻管理系统
1.工具:eclipse+SQLyog 2.介绍:实现的内容就是显示新闻的基本信息,然后一个增删改查的操作。 3.数据库表设计 列名 中文名称 数据类型 长度 非空 newsId 文章ID int 11 √ newsTitle 文章标题 varchar 20 √ newsContent 文章内容 text newsStatus 是否审核 varchar 10 news...
Python新型冠状病毒疫情数据自动爬取+统计+发送报告+数据屏幕(三)发送篇
今天介绍的项目是使用 Itchat 发送统计报告 项目功能设计: 定时爬取疫情数据存入Mysql 进行数据分析制作疫情报告 使用itchat给亲人朋友发送分析报告(本文) 基于Django做数据屏幕 使用Tableau做数据分析 来看看最终效果 目前已经完成,预计2月12日前更新 使用 itchat 发送数据统计报告 itchat 是一个基于 web微信的一个框架,但微信官方并不允
作为程序员的我,大学四年一直自学,全靠这些实用工具和学习网站!
我本人因为高中沉迷于爱情,导致学业荒废,后来高考,毫无疑问进入了一所普普通通的大学,实在惭愧...... 我又是那么好强,现在学历不行,没办法改变的事情了,所以,进入大学开始,我就下定决心,一定要让自己掌握更多的技能,尤其选择了计算机这个行业,一定要多学习技术。 在进入大学学习不久后,我就认清了一个现实:我这个大学的整体教学质量和学习风气,真的一言难尽,懂的人自然知道怎么回事? 怎么办?我该如何更好的提升
新来个技术总监,禁止我们使用Lombok!
我有个学弟,在一家小型互联网公司做Java后端开发,最近他们公司新来了一个技术总监,这位技术总监对技术细节很看重,一来公司之后就推出了很多"政策",比如定义了很多开发规范、日志规范、甚至是要求大家统一使用某一款IDE。 但是这些都不是我这个学弟和我吐槽的点,他真正和我吐槽的是,他很不能理解,这位新来的技术总监竟然禁止公司内部所有开发使用Lombok。但是又没给出十分明确的,可以让人信服的理由。 于...
前端JS初级面试题二 (。•ˇ‸ˇ•。)老铁们!快来瞧瞧自己都会了么
1. 传统事件绑定和符合W3C标准的事件绑定有什么区别? 传统事件绑定 &lt;div onclick=""&gt;123&lt;/div&gt; div1.onclick = function(){}; &lt;button onmouseover=""&gt;&lt;/button&gt; 注意: 如果给同一个元素绑定了两次或多次相同类型的事件,那么后面的绑定会覆盖前面的绑定 (不支持DOM事...
相关热词 c# 数组类型 泛型约束 c#的赛狗日程序 c# 传递数组 可变参数 c# 生成存储过程 c# list 补集 c#获得所有窗体 c# 当前秒数转成年月日 c#中的枚举 c# 计算校验和 连续随机数不重复c#
立即提问