技术标签: JAVA Spring Cloud
Error starting ApplicationContext. To display the auto-configuration report re-run your application with ‘debug’ enabled.
[2m2019-02-11 22:54:44.521[0;39m [31mERROR[0;39m [35m5060[0;39m [2m—[0;39m [2m[ main][0;39m [36mo.s.boot.SpringApplication [0;39m [2m:[0;39m Application startup failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘hystrixCommandAspect’ defined in class path resource [org/springframework/cloud/netflix/hystrix/HystrixCircuitBreakerConfiguration.class]: Post-processing of merged bean definition failed; nested exception is java.lang.NoClassDefFoundError: org/aspectj/lang/JoinPoint
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:524) ~[spring-beans-4.3.22.RELEASE.jar:4.3.22.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:481) ~[spring-beans-4.3.22.RELEASE.jar:4.3.22.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory 1. g e t O b j e c t ( A b s t r a c t B e a n F a c t o r y . j a v a : 312 ) [ s p r i n g − b e a n s − 4.3.22. R E L E A S E . j a r : 4.3.22. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . D e f a u l t S i n g l e t o n B e a n R e g i s t r y . g e t S i n g l e t o n ( D e f a u l t S i n g l e t o n B e a n R e g i s t r y . j a v a : 230 ) [ s p r i n g − b e a n s − 4.3.22. R E L E A S E . j a r : 4.3.22. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . A b s t r a c t B e a n F a c t o r y . d o G e t B e a n ( A b s t r a c t B e a n F a c t o r y . j a v a : 308 ) [ s p r i n g − b e a n s − 4.3.22. R E L E A S E . j a r : 4.3.22. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . A b s t r a c t B e a n F a c t o r y . g e t B e a n ( A b s t r a c t B e a n F a c t o r y . j a v a : 197 ) [ s p r i n g − b e a n s − 4.3.22. R E L E A S E . j a r : 4.3.22. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . D e f a u l t L i s t a b l e B e a n F a c t o r y . p r e I n s t a n t i a t e S i n g l e t o n s ( D e f a u l t L i s t a b l e B e a n F a c t o r y . j a v a : 761 ) [ s p r i n g − b e a n s − 4.3.22. R E L E A S E . j a r : 4.3.22. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . c o n t e x t . s u p p o r t . A b s t r a c t A p p l i c a t i o n C o n t e x t . f i n i s h B e a n F a c t o r y I n i t i a l i z a t i o n ( A b s t r a c t A p p l i c a t i o n C o n t e x t . j a v a : 867 ) [ s p r i n g − c o n t e x t − 4.3.22. R E L E A S E . j a r : 4.3.22. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . c o n t e x t . s u p p o r t . A b s t r a c t A p p l i c a t i o n C o n t e x t . r e f r e s h ( A b s t r a c t A p p l i c a t i o n C o n t e x t . j a v a : 543 ) [ s p r i n g − c o n t e x t − 4.3.22. R E L E A S E . j a r : 4.3.22. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . b o o t . c o n t e x t . e m b e d d e d . E m b e d d e d W e b A p p l i c a t i o n C o n t e x t . r e f r e s h ( E m b e d d e d W e b A p p l i c a t i o n C o n t e x t . j a v a : 124 ) [ s p r i n g − b o o t − 1.5.19. R E L E A S E . j a r : 1.5.19. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . b o o t . S p r i n g A p p l i c a t i o n . r e f r e s h ( S p r i n g A p p l i c a t i o n . j a v a : 693 ) [ s p r i n g − b o o t − 1.5.19. R E L E A S E . j a r : 1.5.19. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . b o o t . S p r i n g A p p l i c a t i o n . r e f r e s h C o n t e x t ( S p r i n g A p p l i c a t i o n . j a v a : 360 ) [ s p r i n g − b o o t − 1.5.19. R E L E A S E . j a r : 1.5.19. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . b o o t . S p r i n g A p p l i c a t i o n . r u n ( S p r i n g A p p l i c a t i o n . j a v a : 303 ) [ s p r i n g − b o o t − 1.5.19. R E L E A S E . j a r : 1.5.19. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . b o o t . S p r i n g A p p l i c a t i o n . r u n ( S p r i n g A p p l i c a t i o n . j a v a : 1118 ) [ s p r i n g − b o o t − 1.5.19. R E L E A S E . j a r : 1.5.19. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . b o o t . S p r i n g A p p l i c a t i o n . r u n ( S p r i n g A p p l i c a t i o n . j a v a : 1107 ) [ s p r i n g − b o o t − 1.5.19. R E L E A S E . j a r : 1.5.19. R E L E A S E ] a t c o m . l j r . c r o w d f u n d i n g . W e b M e m b e r A p p l i c a t i o n . m a i n ( W e b M e m b e r A p p l i c a t i o n . j a v a : 17 ) [ c l a s s e s / : n a ] C a u s e d b y : j a v a . l a n g . N o C l a s s D e f F o u n d E r r o r : o r g / a s p e c t j / l a n g / J o i n P o i n t a t j a v a . l a n g . C l a s s . g e t D e c l a r e d M e t h o d s 0 ( N a t i v e M e t h o d ) [ n a : 1.8. 0 1 72 ] a t j a v a . l a n g . C l a s s . p r i v a t e G e t D e c l a r e d M e t h o d s ( U n k n o w n S o u r c e ) [ n a : 1.8. 0 1 72 ] a t j a v a . l a n g . C l a s s . g e t D e c l a r e d M e t h o d s ( U n k n o w n S o u r c e ) [ n a : 1.8. 0 1 72 ] a t o r g . s p r i n g f r a m e w o r k . u t i l . R e f l e c t i o n U t i l s . g e t D e c l a r e d M e t h o d s ( R e f l e c t i o n U t i l s . j a v a : 612 ) [ s p r i n g − c o r e − 4.3.22. R E L E A S E . j a r : 4.3.22. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . u t i l . R e f l e c t i o n U t i l s . d o W i t h L o c a l M e t h o d s ( R e f l e c t i o n U t i l s . j a v a : 488 ) [ s p r i n g − c o r e − 4.3.22. R E L E A S E . j a r : 4.3.22. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . a n n o t a t i o n . I n i t D e s t r o y A n n o t a t i o n B e a n P o s t P r o c e s s o r . b u i l d L i f e c y c l e M e t a d a t a ( I n i t D e s t r o y A n n o t a t i o n B e a n P o s t P r o c e s s o r . j a v a : 206 ) [ s p r i n g − b e a n s − 4.3.22. R E L E A S E . j a r : 4.3.22. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . a n n o t a t i o n . I n i t D e s t r o y A n n o t a t i o n B e a n P o s t P r o c e s s o r . f i n d L i f e c y c l e M e t a d a t a ( I n i t D e s t r o y A n n o t a t i o n B e a n P o s t P r o c e s s o r . j a v a : 187 ) [ s p r i n g − b e a n s − 4.3.22. R E L E A S E . j a r : 4.3.22. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . a n n o t a t i o n . I n i t D e s t r o y A n n o t a t i o n B e a n P o s t P r o c e s s o r . p o s t P r o c e s s M e r g e d B e a n D e f i n i t i o n ( I n i t D e s t r o y A n n o t a t i o n B e a n P o s t P r o c e s s o r . j a v a : 125 ) [ s p r i n g − b e a n s − 4.3.22. R E L E A S E . j a r : 4.3.22. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . c o n t e x t . a n n o t a t i o n . C o m m o n A n n o t a t i o n B e a n P o s t P r o c e s s o r . p o s t P r o c e s s M e r g e d B e a n D e f i n i t i o n ( C o m m o n A n n o t a t i o n B e a n P o s t P r o c e s s o r . j a v a : 295 ) [ s p r i n g − c o n t e x t − 4.3.22. R E L E A S E . j a r : 4.3.22. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . A b s t r a c t A u t o w i r e C a p a b l e B e a n F a c t o r y . a p p l y M e r g e d B e a n D e f i n i t i o n P o s t P r o c e s s o r s ( A b s t r a c t A u t o w i r e C a p a b l e B e a n F a c t o r y . j a v a : 997 ) [ s p r i n g − b e a n s − 4.3.22. R E L E A S E . j a r : 4.3.22. R E L E A S E ] a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . A b s t r a c t A u t o w i r e C a p a b l e B e a n F a c t o r y . d o C r e a t e B e a n ( A b s t r a c t A u t o w i r e C a p a b l e B e a n F a c t o r y . j a v a : 521 ) [ s p r i n g − b e a n s − 4.3.22. R E L E A S E . j a r : 4.3.22. R E L E A S E ] . . . 15 c o m m o n f r a m e s o m i t t e d C a u s e d b y : j a v a . l a n g . C l a s s N o t F o u n d E x c e p t i o n : o r g . a s p e c t j . l a n g . J o i n P o i n t a t j a v a . n e t . U R L C l a s s L o a d e r . f i n d C l a s s ( U n k n o w n S o u r c e ) [ n a : 1.8. 0 1 72 ] a t j a v a . l a n g . C l a s s L o a d e r . l o a d C l a s s ( U n k n o w n S o u r c e ) [ n a : 1.8. 0 1 72 ] a t s u n . m i s c . L a u n c h e r 1.getObject(AbstractBeanFactory.java:312) ~[spring-beans-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308) ~[spring-beans-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) ~[spring-beans-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761) ~[spring-beans-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867) ~[spring-context-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543) ~[spring-context-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:124) ~[spring-boot-1.5.19.RELEASE.jar:1.5.19.RELEASE] at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:693) [spring-boot-1.5.19.RELEASE.jar:1.5.19.RELEASE] at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:360) [spring-boot-1.5.19.RELEASE.jar:1.5.19.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:303) [spring-boot-1.5.19.RELEASE.jar:1.5.19.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1118) [spring-boot-1.5.19.RELEASE.jar:1.5.19.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1107) [spring-boot-1.5.19.RELEASE.jar:1.5.19.RELEASE] at com.ljr.crowdfunding.WebMemberApplication.main(WebMemberApplication.java:17) [classes/:na] Caused by: java.lang.NoClassDefFoundError: org/aspectj/lang/JoinPoint at java.lang.Class.getDeclaredMethods0(Native Method) ~[na:1.8.0_172] at java.lang.Class.privateGetDeclaredMethods(Unknown Source) ~[na:1.8.0_172] at java.lang.Class.getDeclaredMethods(Unknown Source) ~[na:1.8.0_172] at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:612) ~[spring-core-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.springframework.util.ReflectionUtils.doWithLocalMethods(ReflectionUtils.java:488) ~[spring-core-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.buildLifecycleMetadata(InitDestroyAnnotationBeanPostProcessor.java:206) ~[spring-beans-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.findLifecycleMetadata(InitDestroyAnnotationBeanPostProcessor.java:187) ~[spring-beans-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessMergedBeanDefinition(InitDestroyAnnotationBeanPostProcessor.java:125) ~[spring-beans-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessMergedBeanDefinition(CommonAnnotationBeanPostProcessor.java:295) ~[spring-context-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyMergedBeanDefinitionPostProcessors(AbstractAutowireCapableBeanFactory.java:997) ~[spring-beans-4.3.22.RELEASE.jar:4.3.22.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521) ~[spring-beans-4.3.22.RELEASE.jar:4.3.22.RELEASE] ... 15 common frames omitted Caused by: java.lang.ClassNotFoundException: org.aspectj.lang.JoinPoint at java.net.URLClassLoader.findClass(Unknown Source) ~[na:1.8.0_172] at java.lang.ClassLoader.loadClass(Unknown Source) ~[na:1.8.0_172] at sun.misc.Launcher 1.getObject(AbstractBeanFactory.java:312) [spring−beans−4.3.22.RELEASE.jar:4.3.22.RELEASE]atorg.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) [spring−beans−4.3.22.RELEASE.jar:4.3.22.RELEASE]atorg.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308) [spring−beans−4.3.22.RELEASE.jar:4.3.22.RELEASE]atorg.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) [spring−beans−4.3.22.RELEASE.jar:4.3.22.RELEASE]atorg.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761) [spring−beans−4.3.22.RELEASE.jar:4.3.22.RELEASE]atorg.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867) [spring−context−4.3.22.RELEASE.jar:4.3.22.RELEASE]atorg.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543) [spring−context−4.3.22.RELEASE.jar:4.3.22.RELEASE]atorg.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:124) [spring−boot−1.5.19.RELEASE.jar:1.5.19.RELEASE]atorg.springframework.boot.SpringApplication.refresh(SpringApplication.java:693)[spring−boot−1.5.19.RELEASE.jar:1.5.19.RELEASE]atorg.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:360)[spring−boot−1.5.19.RELEASE.jar:1.5.19.RELEASE]atorg.springframework.boot.SpringApplication.run(SpringApplication.java:303)[spring−boot−1.5.19.RELEASE.jar:1.5.19.RELEASE]atorg.springframework.boot.SpringApplication.run(SpringApplication.java:1118)[spring−boot−1.5.19.RELEASE.jar:1.5.19.RELEASE]atorg.springframework.boot.SpringApplication.run(SpringApplication.java:1107)[spring−boot−1.5.19.RELEASE.jar:1.5.19.RELEASE]atcom.ljr.crowdfunding.WebMemberApplication.main(WebMemberApplication.java:17)[classes/:na]Causedby:java.lang.NoClassDefFoundError:org/aspectj/lang/JoinPointatjava.lang.Class.getDeclaredMethods0(NativeMethod) [na:1.8.0172]atjava.lang.Class.privateGetDeclaredMethods(UnknownSource) [na:1.8.0172]atjava.lang.Class.getDeclaredMethods(UnknownSource) [na:1.8.0172]atorg.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:612) [spring−core−4.3.22.RELEASE.jar:4.3.22.RELEASE]atorg.springframework.util.ReflectionUtils.doWithLocalMethods(ReflectionUtils.java:488) [spring−core−4.3.22.RELEASE.jar:4.3.22.RELEASE]atorg.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.buildLifecycleMetadata(InitDestroyAnnotationBeanPostProcessor.java:206) [spring−beans−4.3.22.RELEASE.jar:4.3.22.RELEASE]atorg.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.findLifecycleMetadata(InitDestroyAnnotationBeanPostProcessor.java:187) [spring−beans−4.3.22.RELEASE.jar:4.3.22.RELEASE]atorg.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessMergedBeanDefinition(InitDestroyAnnotationBeanPostProcessor.java:125) [spring−beans−4.3.22.RELEASE.jar:4.3.22.RELEASE]atorg.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessMergedBeanDefinition(CommonAnnotationBeanPostProcessor.java:295) [spring−context−4.3.22.RELEASE.jar:4.3.22.RELEASE]atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyMergedBeanDefinitionPostProcessors(AbstractAutowireCapableBeanFactory.java:997) [spring−beans−4.3.22.RELEASE.jar:4.3.22.RELEASE]atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521) [spring−beans−4.3.22.RELEASE.jar:4.3.22.RELEASE]...15commonframesomittedCausedby:java.lang.ClassNotFoundException:org.aspectj.lang.JoinPointatjava.net.URLClassLoader.findClass(UnknownSource) [na:1.8.0172]atjava.lang.ClassLoader.loadClass(UnknownSource) [na:1.8.0172]atsun.misc.LauncherAppClassLoader.loadClass(Unknown Source) ~[na:1.8.0_172]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[na:1.8.0_172]
… 26 common frames omitted
在引入Hystrix之后,运行项目报以上的错,一开始以为是依赖下载不完整的问题,删除本地依赖几次,重新安装之后还是没有解决,Spring Boot版本为1.5.19,
pom.xml文件:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.5.19.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.ljr.springcloud</groupId>
<artifactId>WebMember</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>MemberServiceClient</name>
<description>Demo project for Spring Boot</description>
<properties>
<java.version>1.8</java.version>
<spring-cloud.version>Edgware.SR5</spring-cloud.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-openfeign</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>
spring-cloud-starter-netflix-hystrix
</artifactId>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>${spring-cloud.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
参考以下连接的回答:
https://stackoverflow.com/questions/46448051/hystrix-fallback-method-gives-error
引入以下依赖解决:
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjrt</artifactId>
<version>1.7.1</version>
</dependency>
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjweaver</artifactId>
<version>1.7.1</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-aspects</artifactId>
</dependency>
curl虽然功能强大,但是只能伪造$_SERVER["HTTP_X_FORWARDED_FOR"],对于大多数IP地址检测程序来说,$_SERVER["REMOTE_ADDR"]很难被伪造:首先是client.php的代码 1 2 3 4 5 6 7 8 9 10 11 12 $headers['CLIENT-IP']='202.103.229.40'; $header...
基础篇通用语法及分类DDL: 数据定义语言,用来定义数据库对象(数据库、表、字段)DML: 数据操作语言,用来对数据库表中的数据进行增删改DQL: 数据查询语言,用来查询数据库中表的记录DCL: 数据控制语言,用来创建数据库用户、控制数据库的控制权限DDL(数据定义语言)数据定义语言数据库操作查询所有数据库:SHOW DATABASES;查询当前数据库:SELECT DATABASE();创建数据库:CREATE DATABASE [ IF NOT EXISTS ] 数据库名
全国高等学校(安徽考区)计算机水平考试(一级)模拟试题全国高等学校(安徽考区)计算机水平考试(一级)模拟试题一、单选题(每小题1分,共30分)1、下列叙述中,不是电子计算机特点的是____。A、运算精度高 B、运算速度快 C、高度自动化D、逻辑判断能力差2、我们当今使用的计算机实际上是____。A、电子数字计算机C、电子脉冲计算机 B、电子模拟计算机 D、数字模拟混合计算机3、冯 诺依曼的计算机...
CG属性变量的使用1、CG中声明属性变量2、在Shader中使用颜色3、在Shader中使用贴图4、在Shader中使用立方体贴图1、CG中声明属性变量Shader通过Properties代码块声明开放出来的属性,如果想要在Shader程序中访问这些属性,则需要在CG代码块中再次进行声明。示例:Shader "Custom/CG Properties"{ Properties { _MyFloat ("Float Property", Float) = 1 // 浮
这个问题,网上找了好多,结果代码都不全,找了好多,要不是就自动注入的类注入不了,编译报错,要不异常捕获不了浪费好多时间,就觉得,框架不熟就不能随便用,全是坑,气死我了,最后改了两天.终于弄好啦; 问题主要是: 返回的验证码不知道在SpringSecurity的哪里和存在Session里的比较. 比较之后应该怎么处理, 其次是捕获验证码错误异常的处理, 这个问题比较多,网上大都是直接注...
本文摘自:http://www.cdzjj.com/zexiao/News_View.asp?NewsId=2963授予学位: 工学或理学学士修学年限: 四年一级学科 :工学点击查看: 电子科学与技术就业率就业方向就业前景分析报告http://www.cdzjj.com/zexiao/News_View.asp?NewsId=2966点击查看: 电子科学与技术专业大学排名,东南大学排名第一http...
第一,看来你的机器是被人动过了!解决办法:【如果动你电脑的不是高手的话】重启电脑,不停的【按F8】。进入【安全模式】,进入系统后,在帐户里面【修改权限】。或者把密码设置为空,这样再进去就不用输账户了。因为在【DOS】状态下设置的密码才是【最高权限】,进入系统后设置的密码都可以用这个办法修改administrator的密码【ps】开机的时候按F8进安全模式就会出现一个来宾用户在改一下组策略就行了又帮...
添加表字段:ALTER TABLE 【表名】 ADD 【字段名】 【…属性】AFTER 【字段名】USE fincrm;ALTER TABLE fincrm_employee ADD uuid varchar(40) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL AFTER key_id;修改字段名:ALTER TABLE 【表名】 MODIFY【字段名】 【…属性】USE emoji;ALTER TABLE fincrm
在线沙雕 2021-05-29 17:39:21 6 收藏 分类专栏: 智慧农业版权按照我为树梅派安装Ubuntu系统的操作先后的参考次序,这些文章依次如下:在树莓派上安装 Ubuntu MATE u-boot 基本介绍树梅派如何打开和关闭不过要注意的是,这些文章不一定要完全效法,毕竟我自己没有给树梅派专门准备显示器和鼠标键盘之类的。我使用minicom登上了树梅派。...
为了进一步简化jdbc的使用,就是用组件进一步的及优化BeanUtils工具包,代替java本身蹩脚的javaBean,使对象的封装更加的简单易行DBUtils工具包,是jdbc的操作更加的简单1.BeanUtils组件1.1简介程序中对javabean的操作很频繁, 所以apache提供了一套开源的api,方便对javabean的操作!即BeanUtils组件。Bea...
华硕推小布智能音箱,有两个故事,第一,这个名字是从中国先出现;第二,在有一台Zenbo当管家后,为何还要音箱呢?华硕给了三个理由。中文智能音箱进入战国时代,华硕24日宣布首款智能音箱「神队友小布」在台湾发布,不过未照去年消息与PChome合推购物服务,华硕以语音大脑在地化强打「资安牌」,价位也低於远传问问及猎豹,但高於小米。它也叫小布,取名源自中国Zenbo中文智能音箱成员日多,宏基将於4月发布智...
单点登录CAS使用记(六):单点登出、单点注销单点登出基本上没有啥配置直接在原来logout的时候,重定向到Cas-Server的logout方法 @RequestSecurity @RequestMapping(value = "loginout", method = { RequestMethod.GET, RequestMethod.P...