Digital Roots 题目大意将输入的正整数的各个数相加

题目如下
The digital root of a positive integer is found by summing the digits of the integer. If the resulting value is a single digit then that digit is the digital root. If the resulting value contains two or more digits, those digits are summed and the process is repeated. This is continued as long as necessary to obtain a single digit.
For example, consider the positive integer 24. Adding the 2 and the 4 yields a value of 6. Since 6 is a single digit, 6 is the digital root of 24. Now consider the positive integer 39. Adding the 3 and the 9 yields 12. Since 12 is not a single digit, the process must be repeated. Adding the 1 and the 2 yeilds 3, a single digit and also the digital root of 39.

输入

The input file will contain a list of positive integers, one per line. The end of the input will be indicated by an integer value of zero.

输出

For each integer in the input, output its digital root on a separate line of the output.

样例输入

24
39
0

样例输出

6
3

我的思路是
1.将sum各位数字加起来,赋值sum
2.判断sum是否是个位数,如果不是,转1
3是个位数,输出结果,运算结束
sum%9的结果和整个数模9的结果相同,用来运算各个书之和。以下是我的代码。思路看起来没问题,但是运行结果和想象的不一样。

 #include <stdio.h>
int main()
{
    char ch;
    while(1){  //计算各位数字的和
    int sum;
    while(scanf("%c",&ch) && ch!='\n'){
        sum+=ch-'0';
        }
    if (sum==0) break;
    //模9运算求根
    if(sum%9==0) sum=9;
    else sum=sum%9;
    printf("%d\n",sum);
    }
    return 0;
}

c

1个回答

思路是没问题,但是你没有初始化sum,结果就会错。
简单地说就是 int sum=0;
改一下就好

weixin_43206711
weixin_43206711 可以了,谢谢
一年多之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
Digital Roots 的问题
Problem Description The digital root of a positive integer is found by summing the digits of the integer. If the resulting value is a single digit then that digit is the digital root. If the resulting value contains two or more digits, those digits are summed and the process is repeated. This is continued as long as necessary to obtain a single digit. For example, consider the positive integer 24. Adding the 2 and the 4 yields a value of 6. Since 6 is a single digit, 6 is the digital root of 24. Now consider the positive integer 39. Adding the 3 and the 9 yields 12. Since 12 is not a single digit, the process must be repeated. Adding the 1 and the 2 yeilds 3, a single digit and also the digital root of 39. Input The input file will contain a list of positive integers, one per line. The end of the input will be indicated by an integer value of zero. Output For each integer in the input, output its digital root on a separate line of the output. Sample Input 24 39 0 Sample Output 6 3
Digital Roots
Description The digital root of a positive integer is found by summing the digits of the integer. If the resulting value is a single digit then that digit is the digital root. If the resulting value contains two or more digits, those digits are summed and the process is repeated. This is continued as long as necessary to obtain a single digit. For example, consider the positive integer 24. Adding the 2 and the 4 yields a value of 6. Since 6 is a single digit, 6 is the digital root of 24. Now consider the positive integer 39. Adding the 3 and the 9 yields 12. Since 12 is not a single digit, the process must be repeated. Adding the 1 and the 2 yeilds 3, a single digit and also the digital root of 39. Input The input file will contain a list of positive integers, one per line. The end of the input will be indicated by an integer value of zero. Output For each integer in the input, output its digital root on a separate line of the output. Sample Input 24 39 0 Sample Output 6 3
Treasure Map 是如何实现的
Problem Description "Take 147 steps due north, turn 63 degrees clockwise, take 82 steps, ...". Most people don't realize how important accuracy is when following the directions on a pirate's treasure map. If you're even a tiny bit off at the start, you'll end up far away from the correct location at the end. Pirates therefore use very exact definitions. One step, for instance, has been defined by the 1670 Pirate Convention to be exactly two times the size of the wooden leg of Long John Silver, or 1.183 m in metricunits. Captain Borbassa was thus not at all worried when he set sail to the treasure island, having a rope with knots in it, exactly one step apart, for accurately measuring distances. Of course he also brought his good old geotriangle, once given to him by his father when he was six years old. However, on closer inspection of the map, he got an unpleasant surprise. The map was made by the famous captain Jack Magpie, who was notorious for including little gems into his directions.In this case, there were distances listed such as sqrt(33) steps. How do you measure that accurately? Fortunately, his first mate Pythagor came to the rescue. After puzzling for a few hours, he came up with the following solution: let pirate A go 4 steps into the perpendicular direction, and hold one end of the measuring rope there. Then pirate B goes into the desired direction while letting the rope slide through his fingers, until he is exactly 7 steps away from pirate A. Pythagor worked out a formula that states that pirate B has then traveled exactly sqrt(33) steps. Captain Borbassa was impressed, but he revealed that there were more such distances on the map. Paranoid as he is, he refuses to let Pythagor see the map, or even tell him what other distances there are on it. They are all square roots of integers, that's all he gets to know. Only on the island itself will the captain reveal the numbers, and then he expects Pyhtagor to quickly work out the smallest two integer numbers of steps that can combine to create the desired distance, using the method described above. Pythagor knows this is not easy, so he has asked your help. Can you help him by writing a program that can determine these two integers quickly? By the way, he did ask the captain how large the numbers inside the square root could get, and the captain replied "one billion". He was probably exaggerating, but you'd better make sure the program works. If you can successfully help the pirates, you'll get a share of the treasure. It might be gold, it might be silver, or it might even be... a treasure map! Input The first line of the input contains a single number: the number of test cases to follow. Each test case has the following format: 1.One line with one integer N, satisfying 1 <= N <= 10^9. Output For every test case in the input, the output should contain two nonnegative integers, separated by a space, on a single line: the distance pirate A needs to head in the perpendicular direction, and the final distance between pirate A and B, such that pirate B has traveled sqrt(N) steps. If there are multiple solutions, give the one with the smallest numbers. If there are no solutions, the output should be "IMPOSSIBLE" (without the quotation marks) on a single line. Sample Input 4 33 16 50 101 Sample Output 4 7 0 4 IMPOSSIBLE 50 51
Mars Life Tree 是怎么编写实现的
Problem Description 20XX, the lives, or fossils, more exactly, on the Mars, which is founded on a totally different life type to the Earth one are found by human beings. MLT, or Mars Life Tree, thought to be the breeder of all lives on the Mars is discovered as a fossil too, is proved there used to have extremely complex types of life. There is an extremely huge MLT under the surface of the Mars, is not a real tree, but variety of carbon-based protein balls(called “node”) connected by neuron links(called “edge”), formed a tree like structure, which is peer-to-peer reachable and non-circled. However, scientist discovered that the MLT is able to grow and mutate from basically two nodes with one edge. The mutation refers that a node is able to mutate to another kind of node and, costs some energy. And the growing means that one node can reach out a new edge and grows a new node at the other end of the edge, of course spend energy. Luckily, the energy costs of every kind of mutation and growing are measured and calculated. Since scientists found out that different shape of MLT may give a birth to different kinds of lives, they believe that the earliest two node, called roots, directly connect to an organ like a lair to bear lives, which is air-slaked and become untraceable in the fossil. Assuming the MLT grows obeying the rule of costing least energy, your mission is find out the roots in the fossil, point out the initial status of these two nodes, and calculate the total energy may cost during the evolvement. Input There may be multiple test cases. There are two integers n (n<=1000) and m (m<=10) in the first line means the counts of nodes of the MLT, and counts of kinds of nodes. There are n integers Ki (1<=Ki<=m) in the second line, figure out that the ith node is one of kind Ki. Then followed two integers S1, S2, (1<=S1, S2<=m), shows the type of the two nodes at the beginning. A m*m matrix U followed, for every element Uij (Uij<100) in row i column j, refers the mutate energy cost from type i to type j. Then there are m numbers P1 … Pm (Pi<100), Pi refers the energy cost of reaching out a new edge and node end by type i. Then n-1 lines follows, two integers in each line x, y, (1<=x, y<=n, x≠y) means that node i and j are connected by a edge. Output For each test case: One integer in the first line refers the link ID of the roots. Second line contains one integer refers the minimal total cost growing the MLT. Then a blank line followed. Sample Input 3 3 1 2 3 1 1 0 1 3 1 0 1 3 1 0 1 1 3 2 3 1 2 Sample Output 2 3
maven项目创建失败,有IDEA错误日志但还是找不到问题根源
``` 2019-10-08 10:51:50,509 [1021249] INFO - ide.actions.ShowFilePathAction - Exit code 1 2019-10-08 10:51:51,396 [1022136] INFO - mponents.impl.stores.StoreUtil - saveProjectsAndApp took 254 ms 2019-10-08 10:53:28,265 [1119005] INFO - mponents.impl.stores.StoreUtil - saveProjectsAndApp took 142 ms 2019-10-08 10:53:47,104 [1137844] WARN - .impl.LineStatusTrackerManager - Tracker for is being held on dispose by com.intellij.openapi.editor.impl.EditorImpl@5d5743a 2019-10-08 10:53:47,104 [1137844] WARN - .impl.LineStatusTrackerManager - Tracker for is being held on dispose by com.intellij.openapi.editor.impl.EditorImpl@40247cea 2019-10-08 10:53:47,712 [1138452] INFO - mponents.impl.stores.StoreUtil - saveProjectsAndApp took 103 ms 2019-10-08 10:53:49,229 [1139969] INFO - pl.projectlevelman.NewMappings - VCS Root: [svn] - [<Project>] 2019-10-08 10:53:49,396 [1140136] INFO - PerformancePlugin - Performance Plugin is in silent mode 2019-10-08 10:53:49,401 [1140141] INFO - odeStyleSettingsInferComponent - settings inference skipped: already done 2019-10-08 10:53:49,402 [1140142] INFO - .ScalaCompilerReferenceService - Initialized ScalaCompilerReferenceService in clinic_hospital, current compiler mode = JPS 2019-10-08 10:53:49,449 [1140189] INFO - ution.rmi.RemoteProcessSupport - Terminating: 63844/Maven36ServerImpl9b210999 2019-10-08 10:53:49,665 [1140405] INFO - ge.ExternalProjectsDataStorage - Load external projects data in 1 millis (read time: 0) 2019-10-08 10:53:49,691 [1140431] INFO - j.ide.ui.OptionsTopHitProvider - 42 ms spent to cache options in project 2019-10-08 10:53:49,725 [1140465] INFO - .diagnostic.PerformanceWatcher - Post-startup activities under progress took 167ms; general responsiveness: ok; EDT responsiveness: ok 2019-10-08 10:53:49,732 [1140472] INFO - .diagnostic.PerformanceWatcher - Pushing properties took 140ms; general responsiveness: ok; EDT responsiveness: ok 2019-10-08 10:53:49,768 [1140508] INFO - tartup.impl.StartupManagerImpl - D:/clinic_hospital/.idea case-sensitivity: expected=false actual=false 2019-10-08 10:53:49,877 [1140617] INFO - tor.impl.FileEditorManagerImpl - Project opening took 680 ms 2019-10-08 10:53:49,914 [1140654] INFO - .diagnostic.PerformanceWatcher - Indexable file iteration took 182ms; general responsiveness: ok; EDT responsiveness: ok 2019-10-08 10:53:49,934 [1140674] INFO - cloudConfig.CloudConfigManager - === StatusBar ignored === 2019-10-08 10:53:50,028 [1140768] INFO - Json.PackageJsonUpdateNotifier - processPackageJsonFiles [] 2019-10-08 10:53:50,289 [1141029] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stdout]: Build process started. Classpath: C:/Program Files/JetBrains/IntelliJ IDEA 2019.2.2/plugins/java/lib/jps-launcher.jar;C:/Program Files/Java/jdk1.8.0_221/lib/tools.jar 2019-10-08 10:53:50,372 [1141112] INFO - pl.projectlevelman.NewMappings - Mapped Roots: 1 2019-10-08 10:53:50,411 [1141151] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". 2019-10-08 10:53:50,411 [1141151] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: SLF4J: Defaulting to no-operation (NOP) logger implementation 2019-10-08 10:53:50,411 [1141151] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. 2019-10-08 10:53:51,086 [1141826] INFO - .ScalaCompilerReferenceService - [compiler indices] onCompilationStart. active indexing phases: 1 2019-10-08 10:53:52,381 [1143121] INFO - .ScalaCompilerReferenceService - [compiler indices] onCompilationFinish. success: true, active indexing phases: 0 2019-10-08 10:53:52,867 [1143607] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stdout]: Build process started. Classpath: C:/Program Files/JetBrains/IntelliJ IDEA 2019.2.2/plugins/java/lib/jps-launcher.jar;C:/Program Files/Java/jdk1.8.0_221/lib/tools.jar 2019-10-08 10:53:52,924 [1143664] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". 2019-10-08 10:53:52,924 [1143664] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: SLF4J: Defaulting to no-operation (NOP) logger implementation 2019-10-08 10:53:52,924 [1143664] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. 2019-10-08 10:53:54,965 [1145705] INFO - ings.impl.UpdateCheckerService - channel: release 2019-10-08 10:54:23,804 [1174544] ERROR - #org.jetbrains.idea.maven - com.google.inject.CreationException: Unable to create injector, see the following errors: 1) No implementation for org.apache.maven.model.path.PathTranslator was bound. while locating org.apache.maven.model.path.PathTranslator for field at org.apache.maven.model.interpolation.AbstractStringBasedModelInterpolator.pathTranslator(Unknown Source) at org.codehaus.plexus.DefaultPlexusContainer$1.configure(DefaultPlexusContainer.java:350) 2) No implementation for org.apache.maven.model.path.UrlNormalizer was bound. while locating org.apache.maven.model.path.UrlNormalizer for field at org.apache.maven.model.interpolation.AbstractStringBasedModelInterpolator.urlNormalizer(Unknown Source) at org.codehaus.plexus.DefaultPlexusContainer$1.configure(DefaultPlexusContainer.java:350) 2 errors java.lang.RuntimeException: com.google.inject.CreationException: Unable to create injector, see the following errors: 1) No implementation for org.apache.maven.model.path.PathTranslator was bound. while locating org.apache.maven.model.path.PathTranslator for field at org.apache.maven.model.interpolation.AbstractStringBasedModelInterpolator.pathTranslator(Unknown Source) at org.codehaus.plexus.DefaultPlexusContainer$1.configure(DefaultPlexusContainer.java:350) 2) No implementation for org.apache.maven.model.path.UrlNormalizer was bound. while locating org.apache.maven.model.path.UrlNormalizer for field at org.apache.maven.model.interpolation.AbstractStringBasedModelInterpolator.urlNormalizer(Unknown Source) at org.codehaus.plexus.DefaultPlexusContainer$1.configure(DefaultPlexusContainer.java:350) 2 errors at com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:543) at com.google.inject.internal.InternalInjectorCreator.initializeStatically(InternalInjectorCreator.java:159) at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:106) at com.google.inject.Guice.createInjector(Guice.java:87) at com.google.inject.Guice.createInjector(Guice.java:69) at com.google.inject.Guice.createInjector(Guice.java:59) at org.codehaus.plexus.DefaultPlexusContainer.addComponent(DefaultPlexusContainer.java:344) at org.codehaus.plexus.DefaultPlexusContainer.addComponent(DefaultPlexusContainer.java:332) at org.jetbrains.idea.maven.server.Maven3XServerEmbedder.customizeComponents(Maven3XServerEmbedder.java:573) at org.jetbrains.idea.maven.server.Maven3XServerEmbedder.customize(Maven3XServerEmbedder.java:542) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at java.rmi/sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:359) at java.rmi/sun.rmi.transport.Transport$1.run(Transport.java:200) at java.rmi/sun.rmi.transport.Transport$1.run(Transport.java:197) at java.base/java.security.AccessController.doPrivileged(Native Method) at java.rmi/sun.rmi.transport.Transport.serviceCall(Transport.java:196) at java.rmi/sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:562) at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:796) at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:677) at java.base/java.security.AccessController.doPrivileged(Native Method) at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:676) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:834) at java.rmi/sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:283) at java.rmi/sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:260) at java.rmi/sun.rmi.server.UnicastRef.invoke(UnicastRef.java:161) at java.rmi/java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:209) at java.rmi/java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:161) at com.sun.proxy.$Proxy185.customize(Unknown Source) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at com.intellij.execution.rmi.RemoteUtil.invokeRemote(RemoteUtil.java:175) at com.intellij.execution.rmi.RemoteUtil.access$200(RemoteUtil.java:38) at com.intellij.execution.rmi.RemoteUtil$1$1$1.compute(RemoteUtil.java:156) at com.intellij.openapi.util.ClassLoaderUtil.computeWithClassLoader(ClassLoaderUtil.java:45) at com.intellij.execution.rmi.RemoteUtil.executeWithClassLoader(RemoteUtil.java:227) at com.intellij.execution.rmi.RemoteUtil$1$1.invoke(RemoteUtil.java:153) at com.sun.proxy.$Proxy185.customize(Unknown Source) at org.jetbrains.idea.maven.server.MavenEmbedderWrapper.doCustomize(MavenEmbedderWrapper.java:92) at org.jetbrains.idea.maven.server.MavenEmbedderWrapper.onWrappeeCreated(MavenEmbedderWrapper.java:45) at org.jetbrains.idea.maven.server.RemoteObjectWrapper.getOrCreateWrappee(RemoteObjectWrapper.java:42) at org.jetbrains.idea.maven.server.MavenEmbedderWrapper.doCustomize(MavenEmbedderWrapper.java:92) at org.jetbrains.idea.maven.server.MavenEmbedderWrapper.lambda$customizeForResolve$1(MavenEmbedderWrapper.java:65) at org.jetbrains.idea.maven.server.RemoteObjectWrapper.perform(RemoteObjectWrapper.java:76) at org.jetbrains.idea.maven.server.MavenEmbedderWrapper.customizeForResolve(MavenEmbedderWrapper.java:64) at org.jetbrains.idea.maven.project.MavenProjectsTree.resolve(MavenProjectsTree.java:1261) at org.jetbrains.idea.maven.project.MavenProjectsProcessorResolvingTask.perform(MavenProjectsProcessorResolvingTask.java:45) at org.jetbrains.idea.maven.project.MavenProjectsProcessor.doProcessPendingTasks(MavenProjectsProcessor.java:140) at org.jetbrains.idea.maven.project.MavenProjectsProcessor.access$000(MavenProjectsProcessor.java:33) at org.jetbrains.idea.maven.project.MavenProjectsProcessor$2.run(MavenProjectsProcessor.java:114) at org.jetbrains.idea.maven.utils.MavenUtil.lambda$runInBackground$5(MavenUtil.java:468) at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:294) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:834) 2019-10-08 10:54:23,805 [1174545] ERROR - #org.jetbrains.idea.maven - IntelliJ IDEA 2019.2.2 Build #IU-192.6603.28 2019-10-08 10:54:23,805 [1174545] ERROR - #org.jetbrains.idea.maven - JDK: 11.0.3; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o 2019-10-08 10:54:23,805 [1174545] ERROR - #org.jetbrains.idea.maven - OS: Windows 8.1 2019-10-08 10:54:23,810 [1174550] ERROR - #org.jetbrains.idea.maven - Last Action: Maven.Reimport 2019-10-08 10:54:26,474 [1177214] INFO - ide.actions.ShowFilePathAction - Exit code 1 2019-10-08 10:54:27,591 [1178331] INFO - mponents.impl.stores.StoreUtil - saveProjectsAndApp took 301 ms ``` 这是从IDEA错误日志上显示的,求个大神帮我找到根源
C语言求方程ax²+bx+c=0的解判断b²-4ac是否等于0为什么是判断它绝对值小于一个人很小的数(如10^-6)
《C程序设计》第五版唐浩强著一书求方程ax²+bx+c=0的解给出的代码中,判断b²-4ac是否等于0是判断它绝对值小于一个人很小的数(如10^-6),他给出的解释是: “对于判断b2-4ac是否等于0时,要注意:由于disc(即b2-4ac)是实数,而实数在计算和存储时会有一些微小的误差,因此不能直接进行如下判断:“if(disc==0)…”,因为这样可能会出现本来是零的量,由于上述误差而被判别不等于零而导致结果错误。所以采取的办法是判别disc的绝对值(fabs(disc))是否小于一个很小的数(例如10-6),如果小于此数,就认为disc等于0。“ 这里在代码中是小于等于10^-6,这是细节问题。 既然 b²-4ac可能出现本来等于0在计算机中可能却不等于0,那么为什么不会出现本来不等于0在计算机中等于0呢? 还有这里说采取的办法是判别disc的绝对值(fabs(disc))是否小于等于10^-6,本来是0计算机中绝对值有两种情况:可能为0,也可能不为0,但绝对值都小于等于10^-6,这证明计算机是可以存绝对值小于等于10^-6却不等于0的数的,那么会不会出现其他情况:本来不等于0在计算机中的结果绝对值小于等于10^-6的数(自然也不会等于0),比如上述绝对值小于等于10^-6却不等于0的数本身,他们在计算机中可以存储,存起来应该不会有误差,这样有以下情况,本身不等于0,在这个程序却把他认定为0。 判断a是否等于0问题也是这样处理的,a只有存储有可能有误差,没有计算有误差,还有,这里判断b²-4ac是否大于0也是是否大于10^-6,很不理解,希望能够详细解释一下,万分感谢。全部代码如下: ``` #include <stdio.h> #include <math.h> int main() { double a,b,c,disc,x1,x2,realpart,imagpart; scanf("%lf,%lf,%lf",&a,&b,&c); printf("The equation "); if(fabs(a)<=1e-6) printf("is not a quadratic\n"); else { disc=b*b-4*a*c; if(fabs(disc)<=1e-6) printf("has two equal roots:%8.4f\n",-b/(2*a)); else if(disc>1e-6) { x1=(-b+sqrt(disc))/(2*a); x2=(-b-sqrt(disc))/(2*a); printf("has distinct real roots:%8.4f and %8.4f\n",x1,x2); } else { realpart=-b/(2*a); imagpart=sqrt(-disc)/(2*a); printf(" has complex roots:\n"); printf("%8.4f+%8.4fi\n",realpart,imagpart); printf("%8.4f-%8.4fi\n",realpart,imagpart); } } return 0; } ```
用Python安装scrapy第三方库时安装失败怎么办
ERROR: Command errored out with exit status 1: command: 'c:\program files\python37\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\22348\\AppData\\Local\\Temp\\pip-install-s_hynvin\\Twisted\\setup.py'"'"'; __file__='"'"'C:\\Users\\22348\\AppData\\Local\\Temp\\pip-install-s_hynvin\\Twisted\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\22348\AppData\Local\Temp\pip-wheel-4c5rcjky' --python-tag cp37 cwd: C:\Users\22348\AppData\Local\Temp\pip-install-s_hynvin\Twisted\ Complete output (943 lines): running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-3.7 creating build\lib.win-amd64-3.7\twisted copying src\twisted\copyright.py -> build\lib.win-amd64-3.7\twisted copying src\twisted\plugin.py -> build\lib.win-amd64-3.7\twisted copying src\twisted\_version.py -> build\lib.win-amd64-3.7\twisted copying src\twisted\__init__.py -> build\lib.win-amd64-3.7\twisted copying src\twisted\__main__.py -> build\lib.win-amd64-3.7\twisted creating build\lib.win-amd64-3.7\twisted\application copying src\twisted\application\app.py -> build\lib.win-amd64-3.7\twisted\application copying src\twisted\application\internet.py -> build\lib.win-amd64-3.7\twisted\application copying src\twisted\application\reactors.py -> build\lib.win-amd64-3.7\twisted\application copying src\twisted\application\service.py -> build\lib.win-amd64-3.7\twisted\application copying src\twisted\application\strports.py -> build\lib.win-amd64-3.7\twisted\application copying src\twisted\application\__init__.py -> build\lib.win-amd64-3.7\twisted\application creating build\lib.win-amd64-3.7\twisted\conch copying src\twisted\conch\avatar.py -> build\lib.win-amd64-3.7\twisted\conch copying src\twisted\conch\checkers.py -> build\lib.win-amd64-3.7\twisted\conch copying src\twisted\conch\endpoints.py -> build\lib.win-amd64-3.7\twisted\conch copying src\twisted\conch\error.py -> build\lib.win-amd64-3.7\twisted\conch copying src\twisted\conch\interfaces.py -> build\lib.win-amd64-3.7\twisted\conch copying src\twisted\conch\ls.py -> build\lib.win-amd64-3.7\twisted\conch copying src\twisted\conch\manhole.py -> build\lib.win-amd64-3.7\twisted\conch copying src\twisted\conch\manhole_ssh.py -> build\lib.win-amd64-3.7\twisted\conch copying src\twisted\conch\manhole_tap.py -> build\lib.win-amd64-3.7\twisted\conch copying src\twisted\conch\mixin.py -> build\lib.win-amd64-3.7\twisted\conch copying src\twisted\conch\recvline.py -> build\lib.win-amd64-3.7\twisted\conch copying src\twisted\conch\stdio.py -> build\lib.win-amd64-3.7\twisted\conch copying src\twisted\conch\tap.py -> build\lib.win-amd64-3.7\twisted\conch copying src\twisted\conch\telnet.py -> build\lib.win-amd64-3.7\twisted\conch copying src\twisted\conch\ttymodes.py -> build\lib.win-amd64-3.7\twisted\conch copying src\twisted\conch\unix.py -> build\lib.win-amd64-3.7\twisted\conch copying src\twisted\conch\__init__.py -> build\lib.win-amd64-3.7\twisted\conch creating build\lib.win-amd64-3.7\twisted\cred copying src\twisted\cred\checkers.py -> build\lib.win-amd64-3.7\twisted\cred copying src\twisted\cred\credentials.py -> build\lib.win-amd64-3.7\twisted\cred copying src\twisted\cred\error.py -> build\lib.win-amd64-3.7\twisted\cred copying src\twisted\cred\portal.py -> build\lib.win-amd64-3.7\twisted\cred copying src\twisted\cred\strcred.py -> build\lib.win-amd64-3.7\twisted\cred copying src\twisted\cred\_digest.py -> build\lib.win-amd64-3.7\twisted\cred copying src\twisted\cred\__init__.py -> build\lib.win-amd64-3.7\twisted\cred creating build\lib.win-amd64-3.7\twisted\enterprise copying src\twisted\enterprise\adbapi.py -> build\lib.win-amd64-3.7\twisted\enterprise copying src\twisted\enterprise\__init__.py -> build\lib.win-amd64-3.7\twisted\enterprise creating build\lib.win-amd64-3.7\twisted\internet copying src\twisted\internet\abstract.py -> build\lib.win-amd64-3.7\twisted\internet copying src\twisted\internet\address.py -> build\lib.win-amd64-3.7\twisted\internet copying src\twisted\internet\asyncioreactor.py -> build\lib.win-amd64-3.7\twisted\internet copying src\twisted\internet\base.py -> build\lib.win-amd64-3.7\twisted\internet copying src\twisted\internet\cfreactor.py -> build\lib.win-amd64-3.7\twisted\internet copying src\twisted\internet\default.py -> build\lib.win-amd64-3.7\twisted\internet copying src\twisted\internet\defer.py -> build\lib.win-amd64-3.7\twisted\internet copying src\twisted\internet\endpoints.py -> build\lib.win-amd64-3.7\twisted\internet copying src\twisted\internet\epollreactor.py -> build\lib.win-amd64-3.7\twisted\internet copying src\twisted\internet\error.py -> build\lib.win-amd64-3.7\twisted\internet copying src\twisted\internet\fdesc.py -> build\lib.win-amd64-3.7\twisted\internet copying src\twisted\internet\gireactor.py -> build\lib.win-amd64-3.7\twisted\internet copying src\twisted\internet\glib2reactor.py -> build\lib.win-amd64-3.7\twisted\internet copying src\twisted\internet\gtk2reactor.py -> build\lib.win-amd64-3.7\twisted\internet copying src\twisted\internet\gtk3reactor.py -> build\lib.win-amd64-3.7\twisted\internet copying src\twisted\internet\inotify.py -> build\lib.win-amd64-3.7\twisted\internet copying src\twisted\internet\interfaces.py -> build\lib.win-amd64-3.7\twisted\internet copying src\twisted\internet\kqreactor.py -> build\lib.win-amd64-3.7\twisted\internet copying src\twisted\internet\main.py -> build\lib.win-amd64-3.7\twisted\internet copying src\twisted\internet\pollreactor.py -> build\lib.win-amd64-3.7\twisted\internet copying src\twisted\internet\posixbase.py -> build\lib.win-amd64-3.7\twisted\internet copying src\twisted\internet\process.py -> build\lib.win-amd64-3.7\twisted\internet copying src\twisted\internet\protocol.py -> build\lib.win-amd64-3.7\twisted\internet copying src\twisted\internet\pyuisupport.py -> build\lib.win-amd64-3.7\twisted\internet copying src\twisted\internet\reactor.py -> build\lib.win-amd64-3.7\twisted\internet copying src\twisted\internet\selectreactor.py -> build\lib.win-amd64-3.7\twisted\internet copying src\twisted\internet\serialport.py -> build\lib.win-amd64-3.7\twisted\internet copying src\twisted\internet\ssl.py -> build\lib.win-amd64-3.7\twisted\internet copying src\twisted\internet\stdio.py -> build\lib.win-amd64-3.7\twisted\internet copying src\twisted\internet\task.py -> build\lib.win-amd64-3.7\twisted\internet copying src\twisted\internet\tcp.py -> build\lib.win-amd64-3.7\twisted\internet copying src\twisted\internet\threads.py -> build\lib.win-amd64-3.7\twisted\internet copying src\twisted\internet\tksupport.py -> build\lib.win-amd64-3.7\twisted\internet copying src\twisted\internet\udp.py -> build\lib.win-amd64-3.7\twisted\internet copying src\twisted\internet\unix.py -> build\lib.win-amd64-3.7\twisted\internet copying src\twisted\internet\utils.py -> build\lib.win-amd64-3.7\twisted\internet copying src\twisted\internet\win32eventreactor.py -> build\lib.win-amd64-3.7\twisted\internet copying src\twisted\internet\wxreactor.py -> build\lib.win-amd64-3.7\twisted\internet copying src\twisted\internet\wxsupport.py -> build\lib.win-amd64-3.7\twisted\internet copying src\twisted\internet\_baseprocess.py -> build\lib.win-amd64-3.7\twisted\internet copying src\twisted\internet\_dumbwin32proc.py -> build\lib.win-amd64-3.7\twisted\internet copying src\twisted\internet\_glibbase.py -> build\lib.win-amd64-3.7\twisted\internet copying src\twisted\internet\_idna.py -> build\lib.win-amd64-3.7\twisted\internet copying src\twisted\internet\_newtls.py -> build\lib.win-amd64-3.7\twisted\internet copying src\twisted\internet\_pollingfile.py -> build\lib.win-amd64-3.7\twisted\internet copying src\twisted\internet\_posixserialport.py -> build\lib.win-amd64-3.7\twisted\internet copying src\twisted\internet\_posixstdio.py -> build\lib.win-amd64-3.7\twisted\internet copying src\twisted\internet\_producer_helpers.py -> build\lib.win-amd64-3.7\twisted\internet copying src\twisted\internet\_resolver.py -> build\lib.win-amd64-3.7\twisted\internet copying src\twisted\internet\_signals.py -> build\lib.win-amd64-3.7\twisted\internet copying src\twisted\internet\_sslverify.py -> build\lib.win-amd64-3.7\twisted\internet copying src\twisted\internet\_threadedselect.py -> build\lib.win-amd64-3.7\twisted\internet copying src\twisted\internet\_win32serialport.py -> build\lib.win-amd64-3.7\twisted\internet copying src\twisted\internet\_win32stdio.py -> build\lib.win-amd64-3.7\twisted\internet copying src\twisted\internet\__init__.py -> build\lib.win-amd64-3.7\twisted\internet creating build\lib.win-amd64-3.7\twisted\logger copying src\twisted\logger\_buffer.py -> build\lib.win-amd64-3.7\twisted\logger copying src\twisted\logger\_file.py -> build\lib.win-amd64-3.7\twisted\logger copying src\twisted\logger\_filter.py -> build\lib.win-amd64-3.7\twisted\logger copying src\twisted\logger\_flatten.py -> build\lib.win-amd64-3.7\twisted\logger copying src\twisted\logger\_format.py -> build\lib.win-amd64-3.7\twisted\logger copying src\twisted\logger\_global.py -> build\lib.win-amd64-3.7\twisted\logger copying src\twisted\logger\_io.py -> build\lib.win-amd64-3.7\twisted\logger copying src\twisted\logger\_json.py -> build\lib.win-amd64-3.7\twisted\logger copying src\twisted\logger\_legacy.py -> build\lib.win-amd64-3.7\twisted\logger copying src\twisted\logger\_levels.py -> build\lib.win-amd64-3.7\twisted\logger copying src\twisted\logger\_logger.py -> build\lib.win-amd64-3.7\twisted\logger copying src\twisted\logger\_observer.py -> build\lib.win-amd64-3.7\twisted\logger copying src\twisted\logger\_stdlib.py -> build\lib.win-amd64-3.7\twisted\logger copying src\twisted\logger\_util.py -> build\lib.win-amd64-3.7\twisted\logger copying src\twisted\logger\__init__.py -> build\lib.win-amd64-3.7\twisted\logger creating build\lib.win-amd64-3.7\twisted\mail copying src\twisted\mail\imap4.py -> build\lib.win-amd64-3.7\twisted\mail copying src\twisted\mail\interfaces.py -> build\lib.win-amd64-3.7\twisted\mail copying src\twisted\mail\pop3.py -> build\lib.win-amd64-3.7\twisted\mail copying src\twisted\mail\pop3client.py -> build\lib.win-amd64-3.7\twisted\mail copying src\twisted\mail\protocols.py -> build\lib.win-amd64-3.7\twisted\mail copying src\twisted\mail\relay.py -> build\lib.win-amd64-3.7\twisted\mail copying src\twisted\mail\smtp.py -> build\lib.win-amd64-3.7\twisted\mail copying src\twisted\mail\_cred.py -> build\lib.win-amd64-3.7\twisted\mail copying src\twisted\mail\_except.py -> build\lib.win-amd64-3.7\twisted\mail copying src\twisted\mail\__init__.py -> build\lib.win-amd64-3.7\twisted\mail creating build\lib.win-amd64-3.7\twisted\names copying src\twisted\names\authority.py -> build\lib.win-amd64-3.7\twisted\names copying src\twisted\names\cache.py -> build\lib.win-amd64-3.7\twisted\names copying src\twisted\names\client.py -> build\lib.win-amd64-3.7\twisted\names copying src\twisted\names\common.py -> build\lib.win-amd64-3.7\twisted\names copying src\twisted\names\dns.py -> build\lib.win-amd64-3.7\twisted\names copying src\twisted\names\error.py -> build\lib.win-amd64-3.7\twisted\names copying src\twisted\names\hosts.py -> build\lib.win-amd64-3.7\twisted\names copying src\twisted\names\resolve.py -> build\lib.win-amd64-3.7\twisted\names copying src\twisted\names\root.py -> build\lib.win-amd64-3.7\twisted\names copying src\twisted\names\secondary.py -> build\lib.win-amd64-3.7\twisted\names copying src\twisted\names\server.py -> build\lib.win-amd64-3.7\twisted\names copying src\twisted\names\srvconnect.py -> build\lib.win-amd64-3.7\twisted\names copying src\twisted\names\tap.py -> build\lib.win-amd64-3.7\twisted\names copying src\twisted\names\_rfc1982.py -> build\lib.win-amd64-3.7\twisted\names copying src\twisted\names\__init__.py -> build\lib.win-amd64-3.7\twisted\names creating build\lib.win-amd64-3.7\twisted\pair copying src\twisted\pair\ethernet.py -> build\lib.win-amd64-3.7\twisted\pair copying src\twisted\pair\ip.py -> build\lib.win-amd64-3.7\twisted\pair copying src\twisted\pair\raw.py -> build\lib.win-amd64-3.7\twisted\pair copying src\twisted\pair\rawudp.py -> build\lib.win-amd64-3.7\twisted\pair copying src\twisted\pair\testing.py -> build\lib.win-amd64-3.7\twisted\pair copying src\twisted\pair\tuntap.py -> build\lib.win-amd64-3.7\twisted\pair copying src\twisted\pair\__init__.py -> build\lib.win-amd64-3.7\twisted\pair creating build\lib.win-amd64-3.7\twisted\persisted copying src\twisted\persisted\aot.py -> build\lib.win-amd64-3.7\twisted\persisted copying src\twisted\persisted\crefutil.py -> build\lib.win-amd64-3.7\twisted\persisted copying src\twisted\persisted\dirdbm.py -> build\lib.win-amd64-3.7\twisted\persisted copying src\twisted\persisted\sob.py -> build\lib.win-amd64-3.7\twisted\persisted copying src\twisted\persisted\styles.py -> build\lib.win-amd64-3.7\twisted\persisted copying src\twisted\persisted\__init__.py -> build\lib.win-amd64-3.7\twisted\persisted creating build\lib.win-amd64-3.7\twisted\plugins copying src\twisted\plugins\cred_anonymous.py -> build\lib.win-amd64-3.7\twisted\plugins copying src\twisted\plugins\cred_file.py -> build\lib.win-amd64-3.7\twisted\plugins copying src\twisted\plugins\cred_memory.py -> build\lib.win-amd64-3.7\twisted\plugins copying src\twisted\plugins\cred_sshkeys.py -> build\lib.win-amd64-3.7\twisted\plugins copying src\twisted\plugins\cred_unix.py -> build\lib.win-amd64-3.7\twisted\plugins copying src\twisted\plugins\twisted_conch.py -> build\lib.win-amd64-3.7\twisted\plugins copying src\twisted\plugins\twisted_core.py -> build\lib.win-amd64-3.7\twisted\plugins copying src\twisted\plugins\twisted_ftp.py -> build\lib.win-amd64-3.7\twisted\plugins copying src\twisted\plugins\twisted_inet.py -> build\lib.win-amd64-3.7\twisted\plugins copying src\twisted\plugins\twisted_names.py -> build\lib.win-amd64-3.7\twisted\plugins copying src\twisted\plugins\twisted_portforward.py -> build\lib.win-amd64-3.7\twisted\plugins copying src\twisted\plugins\twisted_reactors.py -> build\lib.win-amd64-3.7\twisted\plugins copying src\twisted\plugins\twisted_runner.py -> build\lib.win-amd64-3.7\twisted\plugins copying src\twisted\plugins\twisted_socks.py -> build\lib.win-amd64-3.7\twisted\plugins copying src\twisted\plugins\twisted_trial.py -> build\lib.win-amd64-3.7\twisted\plugins copying src\twisted\plugins\twisted_web.py -> build\lib.win-amd64-3.7\twisted\plugins copying src\twisted\plugins\twisted_words.py -> build\lib.win-amd64-3.7\twisted\plugins copying src\twisted\plugins\__init__.py -> build\lib.win-amd64-3.7\twisted\plugins creating build\lib.win-amd64-3.7\twisted\positioning copying src\twisted\positioning\base.py -> build\lib.win-amd64-3.7\twisted\positioning copying src\twisted\positioning\ipositioning.py -> build\lib.win-amd64-3.7\twisted\positioning copying src\twisted\positioning\nmea.py -> build\lib.win-amd64-3.7\twisted\positioning copying src\twisted\positioning\_sentence.py -> build\lib.win-amd64-3.7\twisted\positioning copying src\twisted\positioning\__init__.py -> build\lib.win-amd64-3.7\twisted\positioning creating build\lib.win-amd64-3.7\twisted\protocols copying src\twisted\protocols\amp.py -> build\lib.win-amd64-3.7\twisted\protocols copying src\twisted\protocols\basic.py -> build\lib.win-amd64-3.7\twisted\protocols copying src\twisted\protocols\dict.py -> build\lib.win-amd64-3.7\twisted\protocols copying src\twisted\protocols\finger.py -> build\lib.win-amd64-3.7\twisted\protocols copying src\twisted\protocols\ftp.py -> build\lib.win-amd64-3.7\twisted\protocols copying src\twisted\protocols\htb.py -> build\lib.win-amd64-3.7\twisted\protocols copying src\twisted\protocols\ident.py -> build\lib.win-amd64-3.7\twisted\protocols copying src\twisted\protocols\loopback.py -> build\lib.win-amd64-3.7\twisted\protocols copying src\twisted\protocols\memcache.py -> build\lib.win-amd64-3.7\twisted\protocols copying src\twisted\protocols\pcp.py -> build\lib.win-amd64-3.7\twisted\protocols copying src\twisted\protocols\policies.py -> build\lib.win-amd64-3.7\twisted\protocols copying src\twisted\protocols\portforward.py -> build\lib.win-amd64-3.7\twisted\protocols copying src\twisted\protocols\postfix.py -> build\lib.win-amd64-3.7\twisted\protocols copying src\twisted\protocols\sip.py -> build\lib.win-amd64-3.7\twisted\protocols copying src\twisted\protocols\socks.py -> build\lib.win-amd64-3.7\twisted\protocols copying src\twisted\protocols\stateful.py -> build\lib.win-amd64-3.7\twisted\protocols copying src\twisted\protocols\tls.py -> build\lib.win-amd64-3.7\twisted\protocols copying src\twisted\protocols\wire.py -> build\lib.win-amd64-3.7\twisted\protocols copying src\twisted\protocols\__init__.py -> build\lib.win-amd64-3.7\twisted\protocols creating build\lib.win-amd64-3.7\twisted\python copying src\twisted\python\compat.py -> build\lib.win-amd64-3.7\twisted\python copying src\twisted\python\components.py -> build\lib.win-amd64-3.7\twisted\python copying src\twisted\python\constants.py -> build\lib.win-amd64-3.7\twisted\python copying src\twisted\python\context.py -> build\lib.win-amd64-3.7\twisted\python copying src\twisted\python\deprecate.py -> build\lib.win-amd64-3.7\twisted\python copying src\twisted\python\failure.py -> build\lib.win-amd64-3.7\twisted\python copying src\twisted\python\fakepwd.py -> build\lib.win-amd64-3.7\twisted\python copying src\twisted\python\filepath.py -> build\lib.win-amd64-3.7\twisted\python copying src\twisted\python\formmethod.py -> build\lib.win-amd64-3.7\twisted\python copying src\twisted\python\htmlizer.py -> build\lib.win-amd64-3.7\twisted\python copying src\twisted\python\lockfile.py -> build\lib.win-amd64-3.7\twisted\python copying src\twisted\python\log.py -> build\lib.win-amd64-3.7\twisted\python copying src\twisted\python\logfile.py -> build\lib.win-amd64-3.7\twisted\python copying src\twisted\python\modules.py -> build\lib.win-amd64-3.7\twisted\python copying src\twisted\python\monkey.py -> build\lib.win-amd64-3.7\twisted\python copying src\twisted\python\procutils.py -> build\lib.win-amd64-3.7\twisted\python copying src\twisted\python\randbytes.py -> build\lib.win-amd64-3.7\twisted\python copying src\twisted\python\rebuild.py -> build\lib.win-amd64-3.7\twisted\python copying src\twisted\python\reflect.py -> build\lib.win-amd64-3.7\twisted\python copying src\twisted\python\release.py -> build\lib.win-amd64-3.7\twisted\python copying src\twisted\python\roots.py -> build\lib.win-amd64-3.7\twisted\python copying src\twisted\python\runtime.py -> build\lib.win-amd64-3.7\twisted\python copying src\twisted\python\sendmsg.py -> build\lib.win-amd64-3.7\twisted\python copying src\twisted\python\shortcut.py -> build\lib.win-amd64-3.7\twisted\python copying src\twisted\python\syslog.py -> build\lib.win-amd64-3.7\twisted\python copying src\twisted\python\systemd.py -> build\lib.win-amd64-3.7\twisted\python copying src\twisted\python\text.py -> build\lib.win-amd64-3.7\twisted\python copying src\twisted\python\threadable.py -> build\lib.win-amd64-3.7\twisted\python copying src\twisted\python\threadpool.py -> build\lib.win-amd64-3.7\twisted\python copying src\twisted\python\url.py -> build\lib.win-amd64-3.7\twisted\python copying src\twisted\python\urlpath.py -> build\lib.win-amd64-3.7\twisted\python copying src\twisted\python\usage.py -> build\lib.win-amd64-3.7\twisted\python copying src\twisted\python\util.py -> build\lib.win-amd64-3.7\twisted\python copying src\twisted\python\versions.py -> build\lib.win-amd64-3.7\twisted\python copying src\twisted\python\win32.py -> build\lib.win-amd64-3.7\twisted\python copying src\twisted\python\zippath.py -> build\lib.win-amd64-3.7\twisted\python copying src\twisted\python\zipstream.py -> build\lib.win-amd64-3.7\twisted\python copying src\twisted\python\_appdirs.py -> build\lib.win-amd64-3.7\twisted\python copying src\twisted\python\_inotify.py -> build\lib.win-amd64-3.7\twisted\python copying src\twisted\python\_oldstyle.py -> build\lib.win-amd64-3.7\twisted\python copying src\twisted\python\_release.py -> build\lib.win-amd64-3.7\twisted\python copying src\twisted\python\_setup.py -> build\lib.win-amd64-3.7\twisted\python copying src\twisted\python\_shellcomp.py -> build\lib.win-amd64-3.7\twisted\python copying src\twisted\python\_textattributes.py -> build\lib.win-amd64-3.7\twisted\python copying src\twisted\python\_tzhelper.py -> build\lib.win-amd64-3.7\twisted\python copying src\twisted\python\_url.py -> build\lib.win-amd64-3.7\twisted\python copying src\twisted\python\__init__.py -> build\lib.win-amd64-3.7\twisted\python creating build\lib.win-amd64-3.7\twisted\runner copying src\twisted\runner\inetd.py -> build\lib.win-amd64-3.7\twisted\runner copying src\twisted\runner\inetdconf.py -> build\lib.win-amd64-3.7\twisted\runner copying src\twisted\runner\inetdtap.py -> build\lib.win-amd64-3.7\twisted\runner copying src\twisted\runner\procmon.py -> build\lib.win-amd64-3.7\twisted\runner copying src\twisted\runner\procmontap.py -> build\lib.win-amd64-3.7\twisted\runner copying src\twisted\runner\__init__.py -> build\lib.win-amd64-3.7\twisted\runner creating build\lib.win-amd64-3.7\twisted\scripts copying src\twisted\scripts\htmlizer.py -> build\lib.win-amd64-3.7\twisted\scripts copying src\twisted\scripts\trial.py -> build\lib.win-amd64-3.7\twisted\scripts copying src\twisted\scripts\twistd.py -> build\lib.win-amd64-3.7\twisted\scripts copying src\twisted\scripts\_twistd_unix.py -> build\lib.win-amd64-3.7\twisted\scripts copying src\twisted\scripts\_twistw.py -> build\lib.win-amd64-3.7\twisted\scripts copying src\twisted\scripts\__init__.py -> build\lib.win-amd64-3.7\twisted\scripts creating build\lib.win-amd64-3.7\twisted\spread copying src\twisted\spread\banana.py -> build\lib.win-amd64-3.7\twisted\spread copying src\twisted\spread\flavors.py -> build\lib.win-amd64-3.7\twisted\spread copying src\twisted\spread\interfaces.py -> build\lib.win-amd64-3.7\twisted\spread copying src\twisted\spread\jelly.py -> build\lib.win-amd64-3.7\twisted\spread copying src\twisted\spread\pb.py -> build\lib.win-amd64-3.7\twisted\spread copying src\twisted\spread\publish.py -> build\lib.win-amd64-3.7\twisted\spread copying src\twisted\spread\util.py -> build\lib.win-amd64-3.7\twisted\spread copying src\twisted\spread\__init__.py -> build\lib.win-amd64-3.7\twisted\spread creating build\lib.win-amd64-3.7\twisted\tap copying src\twisted\tap\ftp.py -> build\lib.win-amd64-3.7\twisted\tap copying src\twisted\tap\portforward.py -> build\lib.win-amd64-3.7\twisted\tap copying src\twisted\tap\socks.py -> build\lib.win-amd64-3.7\twisted\tap copying src\twisted\tap\__init__.py -> build\lib.win-amd64-3.7\twisted\tap creating build\lib.win-amd64-3.7\twisted\test copying src\twisted\test\crash_test_dummy.py -> build\lib.win-amd64-3.7\twisted\test copying src\twisted\test\iosim.py -> build\lib.win-amd64-3.7\twisted\test copying src\twisted\test\mock_win32process.py -> build\lib.win-amd64-3.7\twisted\test copying src\twisted\test\myrebuilder1.py -> build\lib.win-amd64-3.7\twisted\test copying src\twisted\test\myrebuilder2.py -> build\lib.win-amd64-3.7\twisted\test copying src\twisted\test\plugin_basic.py -> build\lib.win-amd64-3.7\twisted\test copying src\twisted\test\plugin_extra1.py -> build\lib.win-amd64-3.7\twisted\test copying src\twisted\test\plugin_extra2.py -> build\lib.win-amd64-3.7\twisted\test copying src\twisted\test\process_cmdline.py -> build\lib.win-amd64-3.7\twisted\test copying src\twisted\test\process_echoer.py -> build\lib.win-amd64-3.7\twisted\test copying src\twisted\test\process_fds.py -> build\lib.win-amd64-3.7\twisted\test copying src\twisted\test\process_getargv.py -> build\lib.win-amd64-3.7\twisted\test copying src\twisted\test\process_getenv.py -> build\lib.win-amd64-3.7\twisted\test copying src\twisted\test\process_linger.py -> build\lib.win-amd64-3.7\twisted\test
react 实现递归 不知道为啥渲染不到 初学者在线求教 急急急!!!感恩大佬
![图片说明](https://img-ask.csdn.net/upload/201909/28/1569648980_462334.jpg) ``` import React, {Component} from "react"; import {connect} from "react-redux"; import { Tree, Icon } from 'antd'; const {TreeNode} = Tree ; class BasicArea extends Component { constructor(props) { super(props); this.state = { treeArr: [] } } data= [ { "id":1, "name":"一级节点", "parentId":0, "isValid":true, "canAddChild":true, "parent":null, "children":[] },{ "id":3, "name":"二级节点", "parentId":1, "isValid":true, "canAddChild":true, "parent":null, "children":[] },{ "id":3, "name":"二级节点", "parentId":0, "isValid":true, "canAddChild":true, "parent":null, "children":[] },{ "id":3, "name":"二级节点", "parentId":0, "isValid":true, "canAddChild":true, "parent":null, "children":[] },{ "id":3, "name":"二级节点", "parentId":0, "isValid":true, "canAddChild":true, "parent":null, "children":[] } ] createTree = data => { let treeArr = []; //获取顶级父元素集合 let roots = data.filter( elemt => elemt.parentId === 0 ); treeArr.push(...roots); //从顶级元素开始,获取每个元素的子元素放到该元素的children树形中 const getChildren = (resultarr, data) => { resultarr.forEach ((elemt,index) => { elemt.children = data.filter((item,index) => item.patentId === elemt.id ); //判断当前元素是不是有子元素被添加, 如果有, 再在子元素这一层循环 if( elemt.children.length > 0){ getChildren(elemt.children,data); } }); } getChildren(treeArr,data); console.log(treeArr); //最后更新一下数据 this.setState({ treeArr }) }; renderTree = treeArr => treeArr.map ( value => { //理论上支持无限深度的树状目录 //遍历树状数组,如果发现他有children则先套上<TreeNode></TreeNode>,在对他children中的元素做相同的操作,直到children为空的元素停止 //说明他已经是最深的那一层了 if(value.children) { return( <TreeNode title ={ <span> {value.name} <Icon type="plus" /> </span> } key={value.id}> {/* 对children中的每个元素进行递归 */} {this.renderTree(value.children)} </TreeNode> ) } }); render(){ return( <Tree> {this.renderTree(this.state.treeArr)} </Tree> ) } componentDidMount(){ this.createTree(); } } export default connect(null, null)(BasicArea); ```
Power of Cryptography 的编写和设计
Description Current work in cryptography involves (among other things) large prime numbers and computing powers of numbers among these primes. Work in this area has resulted in the practical use of results from number theory and other branches of mathematics once considered to be only of theoretical interest. This problem involves the efficient computation of integer roots of numbers. Given an integer n>=1 and an integer p>= 1 you have to write a program that determines the n th positive root of p. In this problem, given such integers n and p, p will always be of the form k to the nth. power, for an integer k (this integer is what your program must find). Input The input consists of a sequence of integer pairs n and p with each integer on a line by itself. For all such pairs 1<=n<= 200, 1<=p<10101 and there exists an integer k, 1<=k<=109 such that kn = p. Output For each integer pair n and p the value k should be printed, i.e., the number k such that k n =p. Sample Input 2 16 3 27 7 4357186184021382204544 Sample Output 4 3 1234
Integer Roots of a Polynomial
A polynomial of degree n has the common form as p(x) = a[n]*x^n + a[n-1]*x^(n-1) + ... + a[1]*x + a[0]. In general it is difficult to find the roots of a polynomial of degree 3 or higher, unless you have a powerful computer program available. The following observation might be helpful: Let p(x) be a polynomial with integer coefficients. If p(c) = 0 for some integer c, then (x - c) is a factor of p(x) and c is a divisor of the constant term of p(x). Your task is to write a program to find all the integer roots of a given polynomial with integer coefficients. Input The first line of input contains a positive integer N (N <= 100), then followed by N test cases. Each test case consists of 2 lines of integers: the first line contains a non-negative integer n (n <= 20) which is the degree of the polynomial; and the second line contains n+1 integers a[n], a[n-1], ..., a[1], and a[0]. Note that 0-polynomial will not appear in the input. Output For each test case, print in one line all the integer roots of the given polynomial in ascending order. The roots must be separated by one space. If there is no integer root at all, just print "NIR" (means No Integer Root). Sample Input 3 3 -1 18 -96 160 2 1 0 1 2 2 3 0 Sample Output 4 4 10 NIR 0
C语言的代码,Super Mario
Problem Description The Mario series is a series of highly popular and acclaimed video games by Nintendo, featuring Nintendo's mascot Mario and, in many games, his brother Luigi and his best friend Yoshi. Gameplay in the series often centers around jumping on and defeating enemies. The games usually feature simple plots; the most common theme is that of Bowser, the primary antagonist, kidnapping Princess Peach, whom Mario saves. Despite the plots usually being very simple, the Mario role-playing games tend to have deeper plots, often involving enemies other than Bowser (many of which involve Bowser actually teaming up with Mario), with aspirations for world domination. Mario has been featured in 200 games, and the series has sold over 200 million copies total, making it the best-selling video game series of all time. Today,Mario comes to a forest,whick has many apple trees.These trees are special,the apples are grown in the nodes of the tree,whick is shown as follow. Numbers in the nodes indicate the amount of apples which are also in this node. The root of a tree is also considered as a node too. There are many trees in this forest, and some trees are connect by one-way road. Mario is start at a root, and he can jump along the branches up or down. Before each jump, he has to eat an apple, and after he eat an apple he have to jump up or down. Mario can walk along the roads too. He can walk along a road with at most an apple, or without any apple. These walks need not any apples. He can finish his journey at any root. All the nodes, including normal node and root node, are numbered together from 1 to M. How many apples is Mario able to eat at most? Input Multiple cases, you need process to EOF. First line contains N, M and S, where N indicates the number of roots, M indicates the number of nodes, and S indicates the start root’s number. 0< N<M <= 20000, S is in the range of [1, M]. Every next N lines contains “ID T A1 … AT”, where ID indicates a node-number of root. T indicates the number of roots ID connect to, and A1 to AT is the node-number of these T roots. ID is in the range of [1, M]; T is in the range of [0, M]; A1 to AT is in the range of [1, N]. Integers in every line are split by single space. Next M lines describe the M nodes. The i th line describe the i th node, and is formatted as: “AppleAmouts T B1 … BT”. Where AppleAmouts indicates the amount of apple in this node, T indicates the number of nodes this node connect with by branches, and B1 to BT indicate the number of these T nodes. AppleAmounts is in the range of [0, 1000]; T is in the range of [0, M-1]; B1 to BT is in the range of [1,M]. Integers in a line are split by a single space. Output Print the number that how many apple Mario can eat at most. Sample Input 2 5 1 1 1 4 4 0 1 2 2 3 5 1 1 5 1 1 5 1 5 0 1 4 2 5 1 1 1 3 3 0 1 1 2 1 1 1 0 1 4 3 2 3 5 2 1 4 Sample Output 2 6
关于树形图前面箭头无法显示的问题有大神来看看吗?
``` public class DirectoryNodeBinder extends TreeViewBinder<DirectoryNodeBinder.ViewHolder> { @Override public ViewHolder provideViewHolder(View itemView) { return new ViewHolder(itemView); } @Override public void bindView(ViewHolder holder, int position, TreeNode node) { holder.ivArrow.setRotation(0); holder.ivArrow.setImageResource(R.drawable.ic_keyboard_arrow_right_black_18dp); int rotateDegree = node.isExpand() ? 90 : 0; holder.ivArrow.setRotation(rotateDegree); Dir dirNode = (Dir) node.getContent(); holder.tvName.setText(dirNode.dirName); if (node.isLeaf()) holder.ivArrow.setVisibility(View.INVISIBLE); else holder.ivArrow.setVisibility(View.VISIBLE); } @Override public int getLayoutId() { return R.layout.item_dir; } public static class ViewHolder extends TreeViewBinder.ViewHolder { private ImageView ivArrow; private TextView tvName; public ViewHolder(View rootView) { super(rootView); this.ivArrow = (ImageView) rootView.findViewById(R.id.iv_arrow);//箭头图标 this.tvName = (TextView) rootView.findViewById(R.id.tv_name); } public ImageView getIvArrow() { return ivArrow; } public TextView getTvName() { return tvName; } } } ``` 这个是DirectoryNodeBinder类, 然后我在树形图里面想加上这个图标我这样写: ``` private void initNode() { tempList = AppConst.getmSysProjectNavList(); ArrayList<SysProjectNav> roots = new ArrayList(); for (int i = 0; i < tempList.size(); i++) { if (tempList.get(i).getSysProjectNave_Parent_ID() != null) { if (tempList.get(i).getSysProjectNave_Parent_ID().equals(sysProjectNav.getSysProjectNave_ID())) { roots.add(tempList.get(i)); } } } getTreeData(roots, null); LinearLayoutManager layoutManager = new LinearLayoutManager(ManagementActivity.this); rv.setLayoutManager(layoutManager); adapter = new TreeViewAdapter(nodes, Arrays.asList(new FileNodeBinder(), new DirectoryNodeBinder())); adapter.setOnTreeNodeListener(new TreeViewAdapter.OnTreeNodeListener() { @Override public boolean onClick(TreeNode node, RecyclerView.ViewHolder holder) { if (!node.isLeaf()) { onToggle(!node.isExpand(), holder); } else { if (node.isRoot()) {//片断树中节点没有内容时使用 ToastUtils.showShort("暂无内容"); } else { Object obContent = node.getContent(); Object obParnet = node.getParent().getContent(); // String fileName = ReflexObjectUtil.getValueByKey(obContent, "dirName").toString(); String Id = ReflexObjectUtil.getValueByKey(obContent, "ID").toString(); String parentName = ReflexObjectUtil.getValueByKey(obParnet, "dirName").toString(); //通过点击的文件名找出相应的对象 SysProjectNav sysProjectNav = null; for (int i = 0; i < tempList.size(); i++) { if (tempList.get(i).getID().equals(Id)) { sysProjectNav = tempList.get(i); break; } } } } return false; } @Override public void onToggle(boolean isExpand, RecyclerView.ViewHolder holder) { DirectoryNodeBinder.ViewHolder dirViewHolder = (DirectoryNodeBinder.ViewHolder) holder; final ImageView ivArrow = dirViewHolder.getIvArrow(); int rotateDegree = isExpand ? 90 : -90; ivArrow.animate().rotationBy(rotateDegree) .start(); } }); rv.setAdapter(adapter); swipeRefresh.setRefreshing(false); swipeRefresh.setEnabled(false); } ``` 可是会报强制类型错误有人知道这是什么问题吗?或者怎么才能给树形图加上箭头
Huffman's Greed 压缩编码
Description In the following we define the basic terminology of trees. A tree is defined inductively: It has a root which is either an external node (a leaf), or an internal node having a sequence of trees as its children. An internal node is also called the parent of the roots of its child trees. The level of a node in a tree is defined inductively: The root has level 0, and the level of a node is 1 more than the level of its parent node. Every internal node of a binary tree has precisely two children, its left sub-tree and its right sub-tree. Every internal node of a labelled binary tree is additionally marked with a string, its label. A binary search tree is a labelled binary tree where every internal node t satisfies the following condition: All labels of nodes in the left sub-tree of t are less than the label of t which is, in turn, less than all labels of nodes in the right sub-tree of t. For this condition, we assume lexicographic, i.e., alphabetic order on the strings. An inorder traversal of a tree is defined recursively: A leaf is just visited, and for an internal node first its left sub-tree is traversed inorder, then the node itself is visited, finally its right sub-tree is traversed inorder. It follows that an inorder traversal of a binary search tree yields the labels in lexicographic order. Note that binary search trees whose shapes differ may nevertheless yield the same sequence of strings while being traversed inorder. When a given string s is looked for in a binary search tree, we compare s to the label l of the root. We are done if s=l, otherwise if s < l we continue to search in the left sub-tree, and if s>l in the right sub-tree. If a leaf is reached, we know that s is not in the tree. The number of comparisons performed in such a search procedure depends on s and the actual shape of the search tree. Therefore, there is an interest in constructing binary search trees that store a given sequence of strings but provide as efficient access as possible. Of course, we don't know in advance which strings will be looked up in the tree, so we need to make some assumptions. Let n be the number of strings that are to be stored in the binary search tree. Let K1,...,Kn be these strings in lexicographic order. Let p1,...,pn and q0,...,qn be 2n+1 non-negative real numbers such that ∑i=1..npi + ∑i=0..nqi = 1. The interpretation of these numbers is: pi = probability that the search argument s is Ki. qi = probability that s lies (lexicographically) strictly between Ki and Ki+1. By convention, q0 is the probability that s is less than K1, and qn is the probability that s is greater than Kn. We want to find a binary search tree containing nodes with labels K1,...,Kn that minimises the expected number of comparisons in the search, namely cost = ∑i=1..npi*(1 + level of internal node Ki) + ∑i=0..nqi*(level of leaf between Ki and Ki+1). The leaf between Ki and Ki+1 is that leaf reached in the search for a string s that lies (lexicographically) strictly between Ki and Ki+1. Adhere to the convention stated above for the border cases. The following figure illustrates the first test case of the sample input. It shows the two possible binary search trees, the probabilities and the associated costs. Input The input contains several test cases. Every test case starts with an integer n. You may assume that 1<=n<=200. Then follow 2n+1 non-negative integers denoting frequencies. Let s be the sum of all frequencies. You may assume that 1<=s<=1000000. The probabilities p1,...,pn and q0,...,qn are calculated in this order by dividing the frequencies by s. The last test case is followed by a zero. Output For each test case devise a binary search tree whose cost is minimal for the specified probabilities. Output the integer cost*s for such a tree. Sample Input 2 20 15 15 25 25 35 142 35 58 5 20 5 10 9 15 23 129 4 52 5 38 18 9 7 2 4 266 93 5 18 18 27 5 10 11 180 4 32 21 3 21 0 55 27 36 85 31 58 3 334 0 98 27 113 89 180 0 62 12 0 37 0 3 64 70 0 277 0 0 0 170 0 18 76 27 3 29 0 Sample Output 160 13637
使用File类访问本地文件系统打开文件时有错误, 新手
import java.io.File; import java.io.IOException; public class Filetest { public static void main (String[] args) throws IOException { File file= new File("."); System.out.println(file.getName()); System.out.println(file.getParent()); System.out.println(file.getAbsoluteFile()); System.out.println(file.getAbsoluteFile().getParent()); File tmpFile = File.createTempFile("aaa",".txt",file); tmpFile.deleteOnExit(); File newFile = new File(System.currentTimeMillis() + ""); System.out.println("newFile对象是否存在: " + newFile.exists()); newFile.createNewFile(); newFile.mkdir(); String[] fileList = file.list(); System.out.println("====当前路径下所有文件和路径如下===="); for (String fileName:fileList) { System.out.println("fileName"); } File[] roots = File.listRoots(); System.out.println("====系统所有根路径如下===="); for (File root : roots) { System.out.println(root); } } } 运行时出现错误,显示如下 d:\documents>javac -d . Filetest.java d:\documents>java Filetest . null d:\documents\. file.getabsolutefile().getparent() exception in thread"main"java.io.IOException:系统找不到指定的路径。 at java.io.winNIFileststem.createFileExclusively(native method) at java.io.File.createNewFile(Unknows source) at java.io.File.createTempFile(Unknows source) at Filetest.main(Filetest.java:24) d:\documents> 这是错误显示不 java 运行时命令格式是什么,参数怎么写,举个例子,谢谢
用list()列出当前路径下所用文件和路径 编译出错 上次没发全看错了
import java.io.File; import java.io.IOException; class Filetest { public static void main (String[] args) throws IOException { File file= new File(" . "); System.out.println(file.getName()); System.out.println(file.getParent()); System.out.println(file.getAbsoluteFile()); System.out.println("file.getAbsolutefile().getParent()"); File tmpFile = File.createTempFile("aaa",".txt",file); tmpFile.deleteOnExit(); File newFile = new File(System.currentTimeMillis() + ""); System.out.println("newFile对象是否存在: " + newFile.exists()); newFile.createNewFile(); newFile.mkdir(); String[] fileList = file.list(); System.out.println("====当前路径下所有文件和路径如下===="); for (String filename:filelist) { System.out.println("fileName"); } File[] roots = File.listRoots(); System.out.println("====系统所有根路径如下===="); for (File root : roots) { System.out.println(root); } } } 编译时出错 d:\>javac -d .1.java 1.java:41:错误:找不到符号 for(String filename:filelist) 符号:变量filelist 位置:类filetest 1个错误
IDEA 里文件的mark directory as选项里面只有Excluded
IDEA 里文件的mark directory as选项里面只有Excluded像 Source roots等选择怎么没有那![图片说明](https://img-ask.csdn.net/upload/201810/31/1541000593_829202.jpg)
PHP二维数组查找数据,条件查询如何实现
查找数组: $roots = array[ 0=>[ id =>1,name =>'a',state = 1], 1=>[id =>2,name =>'b'state = 1], ....此处省略8000条数据 ]; 查询条件 : 我想根据 Name 查找(比如说 Name = ‘a'),除了遍历有其他的方法吗? 或者有没有 现成 的函数可以使用 2、 如果我根据State 和 Name 条件同时查找,又该如何实现
接口jar包在云服务器正常运行,直接复制下来部署到一个新的云服务器上去出错
# 环境描述:CentOS7,部署Java1.8,跟tomcat环境,将就服务器上面还在正常运行的jar包直接复制下来,部署到新的服务器 异常(我是新手也不知道那段有用之能都贴上来了,麻烦各位大佬了,实在不好意思): [root@VM_0_14_centos target]# tail -f nohup.out 2019-06-22 13:30:55.081 DEBUG 21363 --- [ main] ConfigServletWebServerApplicationContext : Bean factory for org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@5479e3f: org.springframework.beans.factory.support.DefaultListableBeanFactory@3aa9e816: defining beans [org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.event.internalEventListenerProcessor,org.springframework.context.event.internalEventListenerFactory,hyperthermiaApplication]; root of factory hierarchy 2019-06-22 13:30:59.856 DEBUG 21363 --- [ main] ConfigServletWebServerApplicationContext : Unable to locate MessageSource with name 'messageSource': using default [org.springframework.context.support.DelegatingMessageSource@475e586c] 2019-06-22 13:30:59.857 DEBUG 21363 --- [ main] ConfigServletWebServerApplicationContext : Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.SimpleApplicationEventMulticaster@657c8ad9] 2019-06-22 13:31:01.329 DEBUG 21363 --- [ main] .s.b.w.e.t.TomcatServletWebServerFactory : Code archive: /home/target/hyperthermia-0.0.1-SNAPSHOT.jar 2019-06-22 13:31:01.329 DEBUG 21363 --- [ main] .s.b.w.e.t.TomcatServletWebServerFactory : Code archive: /home/target/hyperthermia-0.0.1-SNAPSHOT.jar 2019-06-22 13:31:01.329 DEBUG 21363 --- [ main] .s.b.w.e.t.TomcatServletWebServerFactory : None of the document roots [src/main/webapp, public, static] point to a directory and will be ignored. 2019-06-22 13:31:01.494 INFO 21363 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8800 (http) 2019-06-22 13:31:01.594 INFO 21363 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat] 2019-06-22 13:31:01.594 INFO 21363 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet Engine: Apache Tomcat/8.5.32 2019-06-22 13:31:01.670 INFO 21363 --- [ost-startStop-1] o.a.catalina.core.AprLifecycleListener : The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib] 2019-06-22 13:31:02.008 INFO 21363 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext 2019-06-22 13:31:02.008 INFO 21363 --- [ost-startStop-1] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 6950 ms 2019-06-22 13:31:02.049 DEBUG 21363 --- [ost-startStop-1] o.s.b.w.s.ServletContextInitializerBeans : Added existing Servlet initializer bean 'dispatcherServletRegistration'; order=2147483647, resource=class path resource [org/springframework/boot/autoconfigure/web/servlet/DispatcherServletAutoConfiguration$DispatcherServletRegistrationConfiguration.class] 2019-06-22 13:31:02.240 DEBUG 21363 --- [ost-startStop-1] o.s.b.w.s.ServletContextInitializerBeans : Created Filter initializer for bean 'characterEncodingFilter'; order=-2147483648, resource=class path resource [org/springframework/boot/autoconfigure/web/servlet/HttpEncodingAutoConfiguration.class] 2019-06-22 13:31:02.240 DEBUG 21363 --- [ost-startStop-1] o.s.b.w.s.ServletContextInitializerBeans : Created Filter initializer for bean 'hiddenHttpMethodFilter'; order=-10000, resource=class path resource [org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration.class] 2019-06-22 13:31:02.241 DEBUG 21363 --- [ost-startStop-1] o.s.b.w.s.ServletContextInitializerBeans : Created Filter initializer for bean 'httpPutFormContentFilter'; order=-9900, resource=class path resource [org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration.class] 2019-06-22 13:31:02.241 DEBUG 21363 --- [ost-startStop-1] o.s.b.w.s.ServletContextInitializerBeans : Created Filter initializer for bean 'requestContextFilter'; order=-105, resource=class path resource [org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration$WebMvcAutoConfigurationAdapter.class] 2019-06-22 13:31:02.276 INFO 21363 --- [ost-startStop-1] o.s.b.w.servlet.ServletRegistrationBean : Servlet dispatcherServlet mapped to [/] 2019-06-22 13:31:02.283 INFO 21363 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'characterEncodingFilter' to: [/*] 2019-06-22 13:31:02.284 INFO 21363 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'hiddenHttpMethodFilter' to: [/*] 2019-06-22 13:31:02.284 INFO 21363 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'httpPutFormContentFilter' to: [/*] 2019-06-22 13:31:02.284 INFO 21363 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'requestContextFilter' to: [/*] 2019-06-22 13:31:02.382 DEBUG 21363 --- [ost-startStop-1] o.s.b.w.s.f.OrderedRequestContextFilter : Initializing filter 'requestContextFilter' 2019-06-22 13:31:02.385 DEBUG 21363 --- [ost-startStop-1] o.s.b.w.s.f.OrderedRequestContextFilter : Filter 'requestContextFilter' configured successfully 2019-06-22 13:31:02.386 DEBUG 21363 --- [ost-startStop-1] .b.w.s.f.OrderedHttpPutFormContentFilter : Initializing filter 'httpPutFormContentFilter' 2019-06-22 13:31:02.386 DEBUG 21363 --- [ost-startStop-1] .b.w.s.f.OrderedHttpPutFormContentFilter : Filter 'httpPutFormContentFilter' configured successfully 2019-06-22 13:31:02.386 DEBUG 21363 --- [ost-startStop-1] .s.b.w.s.f.OrderedHiddenHttpMethodFilter : Initializing filter 'hiddenHttpMethodFilter' 2019-06-22 13:31:02.386 DEBUG 21363 --- [ost-startStop-1] .s.b.w.s.f.OrderedHiddenHttpMethodFilter : Filter 'hiddenHttpMethodFilter' configured successfully 2019-06-22 13:31:02.387 DEBUG 21363 --- [ost-startStop-1] s.b.w.s.f.OrderedCharacterEncodingFilter : Initializing filter 'characterEncodingFilter' 2019-06-22 13:31:02.387 DEBUG 21363 --- [ost-startStop-1] s.b.w.s.f.OrderedCharacterEncodingFilter : Filter 'characterEncodingFilter' configured successfully 2019-06-22 13:31:03.902 INFO 21363 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/kill],methods=[POST]}" onto public java.lang.String com.galaxy.controller.TestController.kill(java.lang.String) throws java.lang.Exception 2019-06-22 13:31:03.904 INFO 21363 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/restart],methods=[POST]}" onto public java.lang.String com.galaxy.controller.TestController.restart(java.lang.String) 2019-06-22 13:31:03.905 INFO 21363 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/powerdown],methods=[POST]}" onto public java.lang.String com.galaxy.controller.TestController.powerdown(java.lang.String) 2019-06-22 13:31:03.906 INFO 21363 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/query],methods=[POST]}" onto public java.util.HashMap<java.lang.String, java.lang.String> com.galaxy.controller.TestController.queryConfig(java.lang.String,java.lang.Integer) throws java.lang.Exception 2019-06-22 13:31:03.907 INFO 21363 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/send],methods=[POST]}" onto public java.lang.String com.galaxy.controller.TestController.send(java.lang.String,java.lang.String,java.lang.String) 2019-06-22 13:31:03.908 INFO 21363 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/list],methods=[POST]}" onto public java.util.ArrayList<java.lang.String> com.galaxy.controller.TestController.list() 2019-06-22 13:31:03.933 INFO 21363 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/swagger-resources/configuration/ui]}" onto public org.springframework.http.ResponseEntity<springfox.documentation.swagger.web.UiConfiguration> springfox.documentation.swagger.web.ApiResourceController.uiConfiguration() 2019-06-22 13:31:03.935 INFO 21363 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/swagger-resources/configuration/security]}" onto public org.springframework.http.ResponseEntity<springfox.documentation.swagger.web.SecurityConfiguration> springfox.documentation.swagger.web.ApiResourceController.securityConfiguration() 2019-06-22 13:31:03.936 INFO 21363 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/swagger-resources]}" onto public org.springframework.http.ResponseEntity<java.util.List<springfox.documentation.swagger.web.SwaggerResource>> springfox.documentation.swagger.web.ApiResourceController.swaggerResources() 2019-06-22 13:31:03.963 INFO 21363 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error],produces=[text/html]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse) 2019-06-22 13:31:03.964 INFO 21363 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error]}" onto public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController.error(javax.servlet.http.HttpServletRequest) 2019-06-22 13:31:04.453 INFO 21363 --- [ main] pertySourcedRequestMappingHandlerMapping : Mapped URL path [/v2/api-docs] onto method [public org.springframework.http.ResponseEntity<springfox.documentation.spring.web.json.Json> springfox.documentation.swagger2.web.Swagger2Controller.getDocumentation(java.lang.String,javax.servlet.http.HttpServletRequest)] 2019-06-22 13:31:04.804 INFO 21363 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] 2019-06-22 13:31:05.368 INFO 21363 --- [ main] s.w.s.m.m.a.RequestMappingHandlerAdapter : Looking for @ControllerAdvice: org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@5479e3f: startup date [Sat Jun 22 13:30:55 CST 2019]; root of context hierarchy 2019-06-22 13:31:05.579 INFO 21363 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] 2019-06-22 13:31:05.579 INFO 21363 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] 2019-06-22 13:31:06.133 INFO 21363 --- [ main] org.quartz.impl.StdSchedulerFactory : Using default implementation for ThreadExecutor 2019-06-22 13:31:06.289 INFO 21363 --- [ main] org.quartz.core.SchedulerSignalerImpl : Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl 2019-06-22 13:31:06.290 INFO 21363 --- [ main] org.quartz.core.QuartzScheduler : Quartz Scheduler v.2.3.0 created. 2019-06-22 13:31:06.291 INFO 21363 --- [ main] org.quartz.simpl.RAMJobStore : RAMJobStore initialized. 2019-06-22 13:31:06.292 INFO 21363 --- [ main] org.quartz.core.QuartzScheduler : Scheduler meta-data: Quartz Scheduler (v2.3.0) 'quartzScheduler' with instanceId 'NON_CLUSTERED' ``` Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally. NOT STARTED. Currently in standby mode. Number of jobs executed: 0 Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 10 threads. Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered. ``` 2019-06-22 13:31:06.292 INFO 21363 --- [ main] org.quartz.impl.StdSchedulerFactory : Quartz scheduler 'quartzScheduler' initialized from an externally provided properties instance. 2019-06-22 13:31:06.292 INFO 21363 --- [ main] org.quartz.impl.StdSchedulerFactory : Quartz scheduler version: 2.3.0 2019-06-22 13:31:06.292 INFO 21363 --- [ main] org.quartz.core.QuartzScheduler : JobFactory set to: org.springframework.boot.autoconfigure.quartz.AutowireCapableBeanJobFactory@3f6b0be5 2019-06-22 13:31:06.488 INFO 21363 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Registering beans for JMX exposure on startup 2019-06-22 13:31:06.514 DEBUG 21363 --- [ main] ConfigServletWebServerApplicationContext : Unable to locate LifecycleProcessor with name 'lifecycleProcessor': using default [org.springframework.context.support.DefaultLifecycleProcessor@1de76cc7] 2019-06-22 13:31:06.519 INFO 21363 --- [ main] o.s.c.support.DefaultLifecycleProcessor : Starting beans in phase 2147483647 2019-06-22 13:31:06.519 INFO 21363 --- [ main] d.s.w.p.DocumentationPluginsBootstrapper : Context refreshed 2019-06-22 13:31:06.586 INFO 21363 --- [ main] d.s.w.p.DocumentationPluginsBootstrapper : Found 1 custom documentation plugin(s) 2019-06-22 13:31:06.677 INFO 21363 --- [ main] s.d.s.w.s.ApiListingReferenceScanner : Scanning for api listing references 2019-06-22 13:31:07.131 INFO 21363 --- [ main] o.s.s.quartz.SchedulerFactoryBean : Starting Quartz Scheduler now 2019-06-22 13:31:07.131 INFO 21363 --- [ main] org.quartz.core.QuartzScheduler : Scheduler quartzScheduler_$_NON_CLUSTERED started. 2019-06-22 13:31:07.186 DEBUG 21363 --- [ main] ConditionEvaluationReportLoggingListener : ============================ CONDITIONS EVALUATION REPORT ============================ Positive matches: ----------------- CodecsAutoConfiguration matched: - @ConditionalOnClass found required class 'org.springframework.http.codec.CodecConfigurer'; @ConditionalOnMissingClass did not find unwanted class (OnClassCondition) CodecsAutoConfiguration.JacksonCodecConfiguration matched: - @ConditionalOnClass found required class 'com.fasterxml.jackson.databind.ObjectMapper'; @ConditionalOnMissingClass did not find unwanted class (OnClassCondition) CodecsAutoConfiguration.JacksonCodecConfiguration#jacksonCodecCustomizer matched: - @ConditionalOnBean (types: com.fasterxml.jackson.databind.ObjectMapper; SearchStrategy: all) found bean 'jacksonObjectMapper' (OnBeanCondition) DispatcherServletAutoConfiguration matched: - @ConditionalOnClass found required class 'org.springframework.web.servlet.DispatcherServlet'; @ConditionalOnMissingClass did not find unwanted class (OnClassCondition) - found ConfigurableWebEnvironment (OnWebApplicationCondition) DispatcherServletAutoConfiguration.DispatcherServletConfiguration matched: - @ConditionalOnClass found required class 'javax.servlet.ServletRegistration'; @ConditionalOnMissingClass did not find unwanted class (OnClassCondition) - Default DispatcherServlet did not find dispatcher servlet beans (DispatcherServletAutoConfiguration.DefaultDispatcherServletCondition) DispatcherServletAutoConfiguration.DispatcherServletRegistrationConfiguration matched: - @ConditionalOnClass found required class 'javax.servlet.ServletRegistration'; @ConditionalOnMissingClass did not find unwanted class (OnClassCondition) - DispatcherServlet Registration did not find servlet registration bean (DispatcherServletAutoConfiguration.DispatcherServletRegistrationCondition) DispatcherServletAutoConfiguration.DispatcherServletRegistrationConfiguration#dispatcherServletRegistration matched: - @ConditionalOnBean (names: dispatcherServlet; types: org.springframework.web.servlet.DispatcherServlet; SearchStrategy: all) found bean 'dispatcherServlet' (OnBeanCondition) EmbeddedWebServerFactoryCustomizerAutoConfiguration.TomcatWebServerFactoryCustomizerConfiguration matched: - @ConditionalOnClass found required classes 'org.apache.catalina.startup.Tomcat', 'org.apache.coyote.UpgradeProtocol'; @ConditionalOnMissingClass did not find unwanted class (OnClassCondition) ErrorMvcAutoConfiguration matched: - @ConditionalOnClass found required classes 'javax.servlet.Servlet', 'org.springframework.web.servlet.DispatcherServlet'; @ConditionalOnMissingClass did not find unwanted class (OnClassCondition) - found ConfigurableWebEnvironment (OnWebApplicationCondition) ErrorMvcAutoConfiguration#basicErrorController matched: - @ConditionalOnMissingBean (types: org.springframework.boot.web.servlet.error.ErrorController; SearchStrategy: current) did not find any beans (OnBeanCondition) ErrorMvcAutoConfiguration#errorAttributes matched: - @ConditionalOnMissingBean (types: org.springframework.boot.web.servlet.error.ErrorAttributes; SearchStrategy: current) did not find any beans (OnBeanCondition) ErrorMvcAutoConfiguration.DefaultErrorViewResolverConfiguration#conventionErrorViewResolver matched: - @ConditionalOnBean (types: org.springframework.web.servlet.DispatcherServlet; SearchStrategy: all) found bean 'dispatcherServlet'; @ConditionalOnMissingBean (types: org.springframework.boot.autoconfigure.web.servlet.error.DefaultErrorViewResolver; SearchStrategy: all) did not find any beans (OnBeanCondition) ErrorMvcAutoConfiguration.WhitelabelErrorViewConfiguration matched: - @ConditionalOnProperty (server.error.whitelabel.enabled) matched (OnPropertyCondition) - ErrorTemplate Missing did not find error template view (ErrorMvcAutoConfiguration.ErrorTemplateMissingCondition) ErrorMvcAutoConfiguration.WhitelabelErrorViewConfiguration#beanNameViewResolver matched: - @ConditionalOnMissingBean (types: org.springframework.web.servlet.view.BeanNameViewResolver; SearchStrategy: all) did not find any beans (OnBeanCondition) ErrorMvcAutoConfiguration.WhitelabelErrorViewConfiguration#defaultErrorView matched: - @ConditionalOnMissingBean (names: error; SearchStrategy: all) did not find any beans (OnBeanCondition) GenericCacheConfiguration matched: - Cache org.springframework.boot.autoconfigure.cache.GenericCacheConfiguration automatic cache type (CacheCondition) HttpEncodingAutoConfiguration matched: - @ConditionalOnClass found required class 'org.springframework.web.filter.CharacterEncodingFilter'; @ConditionalOnMissingClass did not find unwanted class (OnClassCondition) - found ConfigurableWebEnvironment (OnWebApplicationCondition) - @ConditionalOnProperty (spring.http.encoding.enabled) matched (OnPropertyCondition) HttpEncodingAutoConfiguration#characterEncodingFilter matched: - @ConditionalOnMissingBean (types: org.springframework.web.filter.CharacterEncodingFilter; SearchStrategy: all) did not find any beans (OnBeanCondition) HttpMessageConvertersAutoConfiguration matched: - @ConditionalOnClass found required class 'org.springframework.http.converter.HttpMessageConverter'; @ConditionalOnMissingClass did not find unwanted class (OnClassCondition) HttpMessageConvertersAutoConfiguration#messageConverters matched: - @ConditionalOnMissingBean (types: org.springframework.boot.autoconfigure.http.HttpMessageConverters; SearchStrategy: all) did not find any beans (OnBeanCondition) HttpMessageConvertersAutoConfiguration.StringHttpMessageConverterConfiguration matched: - @ConditionalOnClass found required class 'org.springframework.http.converter.StringHttpMessageConverter'; @ConditionalOnMissingClass did not find unwanted class (OnClassCondition) HttpMessageConvertersAutoConfiguration.StringHttpMessageConverterConfiguration#stringHttpMessageConverter matched: - @ConditionalOnMissingBean (types: org.springframework.http.converter.StringHttpMessageConverter; SearchStrategy: all) did not find any beans (OnBeanCondition) JacksonAutoConfiguration matched: - @ConditionalOnClass found required class 'com.fasterxml.jackson.databind.ObjectMapper'; @ConditionalOnMissingClass did not find unwanted class (OnClassCondition) JacksonAutoConfiguration.Jackson2ObjectMapperBuilderCustomizerConfiguration matched: - @ConditionalOnClass found required class 'org.springframework.http.converter.json.Jackson2ObjectMapperBuilder'; @ConditionalOnMissingClass did not find unwanted class (OnClassCondition) JacksonAutoConfiguration.JacksonObjectMapperBuilderConfiguration matched: - @ConditionalOnClass found required class 'org.springframework.http.converter.json.Jackson2ObjectMapperBuilder'; @ConditionalOnMissingClass did not find unwanted class (OnClassCondition) JacksonAutoConfiguration.JacksonObjectMapperBuilderConfiguration#jacksonObjectMapperBuilder matched: - @ConditionalOnMissingBean (types: org.springframework.http.converter.json.Jackson2ObjectMapperBuilder; SearchStrategy: all) did not find any beans (OnBeanCondition) JacksonAutoConfiguration.JacksonObjectMapperConfiguration matched: - @ConditionalOnClass found required class 'org.springframework.http.converter.json.Jackson2ObjectMapperBuilder'; @ConditionalOnMissingClass did not find unwanted class (OnClassCondition) JacksonAutoConfiguration.JacksonObjectMapperConfiguration#jacksonObjectMapper matched: - @ConditionalOnMissingBean (types: com.fasterxml.jackson.databind.ObjectMapper; SearchStrategy: all) did not find any beans (OnBeanCondition) JacksonAutoConfiguration.ParameterNamesModuleConfiguration matched: - @ConditionalOnClass found required class 'com.fasterxml.jackson.module.paramnames.ParameterNamesModule'; @ConditionalOnMissingClass did not find unwanted class (OnClassCondition) JacksonAutoConfiguration.ParameterNamesModuleConfiguration#parameterNamesModule matched: - @ConditionalOnMissingBean (types: com.fasterxml.jackson.module.paramnames.ParameterNamesModule; SearchStrategy: all) did not find any beans (OnBeanCondition) JacksonHttpMessageConvertersConfiguration.MappingJackson2HttpMessageConverterConfiguration matched: - @ConditionalOnClass found required class 'com.fasterxml.jackson.databind.ObjectMapper'; @ConditionalOnMissingClass did not find unwanted class (OnClassCondition) - @ConditionalOnProperty (spring.http.converters.preferred-json-mapper=jackson) matched (OnPropertyCondition) - @ConditionalOnBean (types: com.fasterxml.jackson.databind.ObjectMapper; SearchStrategy: all) found bean 'jacksonObjectMapper' (OnBeanCondition) JacksonHttpMessageConvertersConfiguration.MappingJackson2HttpMessageConverterConfiguration#mappingJackson2HttpMessageConverter matched: - @ConditionalOnMissingBean (types: org.springframework.http.converter.json.MappingJackson2HttpMessageConverter; SearchStrategy: all) did not find any beans (OnBeanCondition) JmxAutoConfiguration matched: - @ConditionalOnClass found required class 'org.springframework.jmx.export.MBeanExporter'; @ConditionalOnMissingClass did not find unwanted class (OnClassCondition) - @ConditionalOnProperty (spring.jmx.enabled=true) matched (OnPropertyCondition) JmxAutoConfiguration#mbeanExporter matched: - @ConditionalOnMissingBean (types: org.springframework.jmx.export.MBeanExporter; SearchStrategy: current) did not find any beans (OnBeanCondition) JmxAutoConfiguration#mbeanServer matched: - @ConditionalOnMissingBean (types: javax.management.MBeanServer; SearchStrategy: all) did not find any beans (OnBeanCondition) JmxAutoConfiguration#objectNamingStrategy matched: - @ConditionalOnMissingBean (types: org.springframework.jmx.export.naming.ObjectNamingStrategy; SearchStrategy: current) did not find any beans (OnBeanCondition) MultipartAutoConfiguration matched: - @ConditionalOnClass found required classes 'javax.servlet.Servlet', 'org.springframework.web.multipart.support.StandardServletMultipartResolver', 'javax.servlet.MultipartConfigElement'; @ConditionalOnMissingClass did not find unwanted class (OnClassCondition) - found ConfigurableWebEnvironment (OnWebApplicationCondition) - @ConditionalOnProperty (spring.servlet.multipart.enabled) matched (OnPropertyCondition) MultipartAutoConfiguration#multipartConfigElement matched: - @ConditionalOnMissingBean (types: javax.servlet.MultipartConfigElement,org.springframework.web.multipart.commons.CommonsMultipartResolver; SearchStrategy: all) did not find any beans (OnBeanCondition) MultipartAutoConfiguration#multipartResolver matched: - @ConditionalOnMissingBean (types: org.springframework.web.multipart.MultipartResolver; SearchStrategy: all) did not find any beans (OnBeanCondition) NoOpCacheConfiguration matched: - Cache org.springframework.boot.autoconfigure.cache.NoOpCacheConfiguration automatic cache type (CacheCondition) PersistenceExceptionTranslationAutoConfiguration matched: - @ConditionalOnClass found required class 'org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor'; @ConditionalOnMissingClass did not find unwanted class (OnClassCondition) PersistenceExceptionTranslationAutoConfiguration#persistenceExceptionTranslationPostProcessor matched: - @ConditionalOnProperty (spring.dao.exceptiontranslation.enabled) matched (OnPropertyCondition) - @ConditionalOnMissingBean (types: org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor; SearchStrategy: all) did not find any beans (OnBeanCondition) PropertyPlaceholderAutoConfiguration#propertySourcesPlaceholderConfigurer matched: - @ConditionalOnMissingBean (types: org.springframework.context.support.PropertySourcesPlaceholderConfigurer; SearchStrategy: current) did not find any beans (OnBeanCondition) QuartzAutoConfiguration matched: - @ConditionalOnClass found required classes 'org.quartz.Scheduler', 'org.springframework.scheduling.quartz.SchedulerFactoryBean', 'org.springframework.transaction.PlatformTransactionManager'; @ConditionalOnMissingClass did not find unwanted class (OnClassCondition) QuartzAutoConfiguration#quartzScheduler matched: - @ConditionalOnMissingBean (types: org.springframework.scheduling.quartz.SchedulerFactoryBean; SearchStrategy: all) did not find any beans (OnBeanCondition) RestTemplateAutoConfiguration matched: - @ConditionalOnClass found required class 'org.springframework.web.client.RestTemplate'; @ConditionalOnMissingClass did not find unwanted class (OnClassCondition) RestTemplateAutoConfiguration#restTemplateBuilder matched: - @ConditionalOnMissingBean (types: org.springframework.boot.web.client.RestTemplateBuilder; SearchStrategy: all) did not find any beans (OnBeanCondition) ServletWebServerFactoryAutoConfiguration matched: - @ConditionalOnClass found required class 'javax.servlet.ServletRequest'; @ConditionalOnMissingClass did not find unwanted class (OnClassCondition) - found ConfigurableWebEnvironment (OnWebApplicationCondition) ServletWebServerFactoryAutoConfiguration#tomcatServletWebServerFactoryCustomizer matched: - @ConditionalOnClass found required class 'org.apache.catalina.startup.Tomcat'; @ConditionalOnMissingClass did not find unwanted class (OnClassCondition) ServletWebServerFactoryConfiguration.EmbeddedTomcat matched: - @ConditionalOnClass found required classes 'javax.servlet.Servlet', 'org.apache.catalina.startup.Tomcat', 'org.apache.coyote.UpgradeProtocol'; @ConditionalOnMissingClass did not find unwanted class (OnClassCondition) - @ConditionalOnMissingBean (types: org.springframework.boot.web.servlet.server.ServletWebServerFactory; SearchStrategy: current) did not find any beans (OnBeanCondition) SimpleCacheConfiguration matched: - Cache org.springframework.boot.autoconfigure.cache.SimpleCacheConfiguration automatic cache type (CacheCondition) TransactionAutoConfiguration matched: - @ConditionalOnClass found required class 'org.springframework.transaction.PlatformTransactionManager'; @ConditionalOnMissingClass did not find unwanted class (OnClassCondition) TransactionAutoConfiguration#platformTransactionManagerCustomizers matched: - @ConditionalOnMissingBean (types: org.springframework.boot.autoconfigure.transaction.TransactionManagerCustomizers; SearchStrategy: all) did not find any beans (OnBeanCondition) ValidationAutoConfiguration matched: - @ConditionalOnClass found required class 'javax.validation.executable.ExecutableValidator'; @ConditionalOnMissingClass did not find unwanted class (OnClassCondition) - @ConditionalOnResource found location classpath:META-INF/services/javax.validation.spi.ValidationProvider (OnResourceCondition) ValidationAutoConfiguration#defaultValidator matched: - @ConditionalOnMissingBean (types: javax.validation.Validator; SearchStrategy: all) did not find any beans (OnBeanCondition) ValidationAutoConfiguration#methodValidationPostProcessor matched: - @ConditionalOnMissingBean (types: org.springframework.validation.beanvalidation.MethodValidationPostProcessor; SearchStrategy: all) did not find any beans (OnBeanCondition) WebMvcAutoConfiguration matched: - @ConditionalOnClass found required classes 'javax.servlet.Servlet', 'org.springframework.web.servlet.DispatcherServlet', 'org.springframework.web.servlet.config.annotation.WebMvcConfigurer'; @ConditionalOnMissingClass did not find unwanted class (OnClassCondition) - found ConfigurableWebEnvironment (OnWebApplicationCondition) - @ConditionalOnMissingBean (types: org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport; SearchStrategy: all) did not find any beans (OnBeanCondition) WebMvcAutoConfiguration#hiddenHttpMethodFilter matched: - @ConditionalOnMissingBean (types: org.springframework.web.filter.HiddenHttpMethodFilter; SearchStrategy: all) did not find any beans (OnBeanCondition) WebMvcAutoConfiguration#httpPutFormContentFilter matched: - @ConditionalOnProperty (spring.mvc.formcontent.putfilter.enabled) matched (OnPropertyCondition) - @ConditionalOnMissingBean (types: org.springframework.web.filter.HttpPutFormContentFilter; SearchStrategy: all) did not find any beans (OnBeanCondition) WebMvcAutoConfiguration.WebMvcAutoConfigurationAdapter#defaultViewResolver matched: - @ConditionalOnMissingBean (types: org.springframework.web.servlet.view.InternalResourceViewResolver; SearchStrategy: all) did not find any beans (OnBeanCondition) WebMvcAutoConfiguration.WebMvcAutoConfigurationAdapter#requestContextFilter matched: - @ConditionalOnMissingBean (types: org.springframework.web.context.request.RequestContextListener,org.springframework.web.filter.RequestContextFilter; SearchStrategy: all) did not find any beans (OnBeanCondition) WebMvcAutoConfiguration.WebMvcAutoConfigurationAdapter#viewResolver matched: - @ConditionalOnBean (types: org.springframework.web.servlet.ViewResolver; SearchStrategy: all) found beans 'defaultViewResolver', 'beanNameViewResolver', 'mvcViewResolver'; @ConditionalOnMissingBean (names: viewResolver; types: org.springframework.web.servlet.view.ContentNegotiatingViewResolver; SearchStrategy: all) did not find any beans (OnBeanCondition) WebMvcAutoConfiguration.WebMvcAutoConfigurationAdapter.FaviconConfiguration matched: - @ConditionalOnProperty (spring.mvc.favicon.enabled) matched (OnPropertyCondition) WebSocketServletAutoConfiguration matched: - @ConditionalOnClass found required classes 'javax.servlet.Servlet', 'javax.websocket.server.ServerContainer'; @ConditionalOnMissingClass did not find unwanted class (OnClassCondition) - found ConfigurableWebEnvironment (OnWebApplicationCondition) WebSocketServletAutoConfiguration.TomcatWebSocketConfiguration matched: - @ConditionalOnClass found required classes 'org.apache.catalina.startup.Tomcat', 'org.apache.tomcat.websocket.server.WsSci'; @ConditionalOnMissingClass did not find unwanted class (OnClassCondition) WebSocketServletAutoConfiguration.TomcatWebSocketConfiguration#websocketContainerCustomizer matched: - @ConditionalOnMissingBean (names: websocketServletWebServerCustomizer; SearchStrategy: all) did not find any beans (OnBeanCondition) Negative matches: ----------------- ActiveMQAutoConfiguration: Did not match: - @ConditionalOnClass did not find required classes 'javax.jms.ConnectionFactory', 'org.apache.activemq.ActiveMQConnectionFactory' (OnClassCondition) AopAutoConfiguration: Did not match: - @ConditionalOnClass did not find required classes 'org.aspectj.lang.annotation.Aspect', 'org.aspectj.lang.reflect.Advice', 'org.aspectj.weaver.AnnotatedElement' (OnClassCondition) ArtemisAutoConfiguration: Did not match: - @ConditionalOnClass did not find required classes 'javax.jms.ConnectionFactory', 'org.apache.activemq.artemis.jms.client.ActiveMQConnectionFactory' (OnClassCondition) BatchAutoConfiguration: Did not match: - @ConditionalOnClass did not find required classes 'org.springframework.batch.core.launch.JobLauncher', 'org.springframework.jdbc.core.JdbcOperations' (OnClassCondition) CacheAutoConfiguration: Did not match: - @ConditionalOnBean (types: org.springframework.cache.interceptor.CacheAspectSupport; SearchStrategy: all) did not find any beans of type org.springframework.cache.interceptor.CacheAspectSupport (OnBeanCondition) Matched: - @ConditionalOnClass found required class 'org.springframework.cache.CacheManager'; @ConditionalOnMissingClass did not find unwanted class (OnClassCondition) CacheAutoConfiguration.CacheManagerJpaDependencyConfiguration: Did not match: - @ConditionalOnClass did not find required class 'org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean' (OnClassCondition) - Ancestor org.springframework.boot.autoconfigure.cache.CacheAutoConfiguration did not match (ConditionEvaluationReport.AncestorsMatchedCondition) CaffeineCacheConfiguration: Did not match: - @ConditionalOnClass did not find required class 'com.github.benmanes.caffeine.cache.Caffeine' (OnClassCondition) CassandraAutoConfiguration: Did not match: - @ConditionalOnClass did not find required class 'com.datastax.driver.core.Cluster' (OnClassCondition) CassandraDataAutoConfiguration: Did not match: - @ConditionalOnClass did not find required classes 'com.datastax.driver.core.Cluster', 'org.springframework.data.cassandra.core.CassandraAdminOperations' (OnClassCondition) CassandraReactiveDataAutoConfiguration: Did not match: - @ConditionalOnClass did not find required classes 'com.datastax.driver.core.Cluster', 'org.springframework.data.cassandra.core.ReactiveCassandraTemplate', 'reactor.core.publisher.Flux' (OnClassCondition) CassandraReactiveRepositoriesAutoConfiguration: Did not match: - @ConditionalOnClass did not find required classes 'org.springframework.data.cassandra.ReactiveSession', 'org.springframework.data.cassandra.repository.ReactiveCassandraRepository' (OnClassCondition) CassandraRepositoriesAutoConfiguration: Did not match: - @ConditionalOnClass did not find required classes 'com.datastax.driver.core.Session', 'org.springframework.data.cassandra.repository.CassandraRepository' (OnClassCondition) CloudAutoConfiguration: Did not match: - @ConditionalOnClass did not find required class 'org.springframework.cloud.config.java.CloudScanConfiguration' (OnClassCondition) CouchbaseAutoConfiguration: Did not match: - @ConditionalOnClass did not find required classes 'com.couchbase.client.java.CouchbaseBucket', 'com.couchbase.client.java.Cluster' (OnClassCondition) CouchbaseCacheConfiguration: Did not match: - @ConditionalOnClass did not find required classes 'com.couchbase.client.java.Bucket', 'com.couchbase.client.spring.cache.CouchbaseCacheManager' (OnClassCondition) CouchbaseDataAutoConfiguration: Did not match: - @ConditionalOnClass did not find required classes 'com.couchbase.client.java.Bucket', 'org.springframework.data.couchbase.repository.CouchbaseRepository' (OnClassCondition) CouchbaseReactiveDataAutoConfiguration: Did not match: - @ConditionalOnClass did not find required classes 'com.couchbase.client.java.Bucket', 'org.springframework.data.couchbase.repository.ReactiveCouchbaseRepository', 'reactor.core.publisher.Flux' (OnClassCondition) CouchbaseReactiveRepositoriesAutoConfiguration: Did not match: - @ConditionalOnClass did not find required classes 'com.couchbase.client.java.Bucket', 'org.springframework.data.couchbase.repository.ReactiveCouchbaseRepository', 'reactor.core.publisher.Flux' (OnClassCondition) CouchbaseRepositoriesAutoConfiguration: Did not match: - @ConditionalOnClass did not find required classes 'com.couchbase.client.java.Bucket', 'org.springframework.data.couchbase.repository.CouchbaseRepository' (OnClassCondition) DataSourceAutoConfiguration: Did not match: - @ConditionalOnClass did not find required class 'org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseType' (OnClassCondition) DataSourceTransactionManagerAutoConfiguration: Did not match: - @ConditionalOnClass did not find required class 'org.springframework.jdbc.core.JdbcTemplate' (OnClassCondition) DispatcherServletAutoConfiguration.DispatcherServletConfiguration#multipartResolver: Did not match: - @ConditionalOnBean (types: org.springframework.web.multipart.MultipartResolver; SearchStrategy: all) did not find any beans of type org.springframework.web.multipart.MultipartResolver (OnBeanCondition) EhCacheCacheConfiguration: Did not match: - @ConditionalOnClass did not find required class 'net.sf.ehcache.Cache' (OnClassCondition) ElasticsearchAutoConfiguration: Did not match: - @ConditionalOnClass did not find required classes 'org.elasticsearch.client.Client', 'org.springframework.data.elasticsearch.client.TransportClientFactoryBean' (OnClassCondition) ElasticsearchDataAutoConfiguration: Did not match: - @ConditionalOnClass did not find required classes 'org.elasticsearch.client.Client', 'org.springframework.data.elasticsearch.core.ElasticsearchTemplate' (OnClassCondition) ElasticsearchRepositoriesAutoConfiguration: Did not match: - @ConditionalOnClass did not find required classes 'org.elasticsearch.client.Client', 'org.springframework.data.elasticsearch.repository.ElasticsearchRepository' (OnClassCondition) EmbeddedLdapAutoConfiguration: Did not match: - @ConditionalOnClass did not find required class 'com.unboundid.ldap.listener.InMemoryDirectoryServer' (OnClassCondition) EmbeddedMongoAutoConfiguration: Did not match: - @ConditionalOnClass did not find required classes 'com.mongodb.MongoClient', 'de.flapdoodle.embed.mongo.MongodStarter' (OnClassCondition) EmbeddedWebServerFactoryCustomizerAutoConfiguration.JettyWebServerFactoryCustomizerConfiguration: Did not match: - @ConditionalOnClass did not find required classes 'org.eclipse.jetty.server.Server', 'org.eclipse.jetty.util.Loader', 'org.eclipse.jetty.webapp.WebAppContext' (OnClassCondition) EmbeddedWebServerFactoryCustomizerAutoConfiguration.UndertowWebServerFactoryCustomizerConfiguration: Did not match: - @ConditionalOnClass did not find required classes 'io.undertow.Undertow', 'org.xnio.SslClientAuthMode' (OnClassCondition) ErrorWebFluxAutoConfiguration: Did not match: - @ConditionalOnClass did not find required class 'org.springframework.web.reactive.config.WebFluxConfigurer' (OnClassCondition) FlywayAutoConfiguration: Did not match: - @ConditionalOnClass did not find required class 'org.flywaydb.core.Flyway' (OnClassCondition) FreeMarkerAutoConfiguration: Did not match: - @ConditionalOnClass did not find required class 'freemarker.template.Configuration' (OnClassCondition) GroovyTemplateAutoConfiguration: Did not match: - @ConditionalOnClass did not find required class 'groovy.text.markup.MarkupTemplateEngine' (OnClassCondition) GsonAutoConfiguration: Did not match: - @ConditionalOnClass did not find required class 'com.google.gson.Gson' (OnClassCondition) GsonHttpMessageConvertersConfiguration: Did not match: - @ConditionalOnClass did not find required class 'com.google.gson.Gson' (OnClassCondition) H2ConsoleAutoConfiguration: Did not match: - @ConditionalOnClass did not find required class 'org.h2.server.web.WebServlet' (OnClassCondition) HazelcastAutoConfiguration: Did not match: - @ConditionalOnClass did not find required class 'com.hazelcast.core.HazelcastInstance' (OnClassCondition) HazelcastCacheConfiguration: Did not match: - @ConditionalOnClass did not find required classes 'com.hazelcast.core.HazelcastInstance', 'com.hazelcast.spring.cache.HazelcastCacheManager' (OnClassCondition) HazelcastJpaDependencyAutoConfiguration: Did not match: - @ConditionalOnClass did not find required classes 'com.hazelcast.core.HazelcastInstance', 'org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean' (OnClassCondition) HibernateJpaAutoConfiguration: Did not match: - @ConditionalOnClass did not find required classes 'org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean', 'javax.persistence.EntityManager' (OnClassCondition) HttpHandlerAutoConfiguration: Did not match: - @ConditionalOnClass did not find required class 'org.springframework.web.reactive.DispatcherHandler' (OnClassCondition) HypermediaAutoConfiguration: Did not match: - @ConditionalOnClass did not find required class 'org.springframework.hateoas.Resource' (OnClassCondition) InfinispanCacheConfiguration: Did not match: - @ConditionalOnClass did not find required class 'org.infinispan.spring.provider.SpringEmbeddedCacheManager' (OnClassCondition) InfluxDbAutoConfiguration: Did not match: - @ConditionalOnClass did not find required class 'org.influxdb.InfluxDB' (OnClassCondition) IntegrationAutoConfiguration: Did not match: - @ConditionalOnClass did not find required class 'org.springframework.integration.config.EnableIntegration' (OnClassCondition) JCacheCacheConfiguration: Did not match: - @ConditionalOnClass did not find required class 'javax.cache.Caching' (OnClassCondition) JacksonAutoConfiguration.JodaDateTimeJacksonConfiguration: Did not match: - @ConditionalOnClass did not find required classes 'org.joda.time.DateTime', 'com.fasterxml.jackson.datatype.joda.ser.DateTimeSerializer', 'com.fasterxml.jackson.datatype.joda.cfg.JacksonJodaDateFormat' (OnClassCondition) JacksonHttpMessageConvertersConfiguration.MappingJackson2XmlHttpMessageConverterConfiguration: Did not match: - @ConditionalOnClass did not find required class 'com.fasterxml.jackson.dataformat.xml.XmlMapper' (OnClassCondition) JdbcTemplateAutoConfiguration: Did not match: - @ConditionalOnClass did not find required class 'org.springframework.jdbc.core.JdbcTemplate' (OnClassCondition) JerseyAutoConfiguration: Did not match: - @ConditionalOnClass did not find required class 'org.glassfish.jersey.server.spring.SpringComponentProvider' (OnClassCondition) JestAutoConfiguration: Did not match: - @ConditionalOnClass did not find required class 'io.searchbox.client.JestClient' (OnClassCondition) JmsAutoConfiguration: Did not match: - @ConditionalOnClass did not find required classes 'javax.jms.Message', 'org.springframework.jms.core.JmsTemplate' (OnClassCondition) JndiConnectionFactoryAutoConfiguration: Did not match: - @ConditionalOnClass did not find required class 'org.springframework.jms.core.JmsTemplate' (OnClassCondition) JndiDataSourceAutoConfiguration: Did not match: - @ConditionalOnClass did not find required class 'org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseType' (OnClassCondition) JooqAutoConfiguration: Did not match: - @ConditionalOnClass did not find required class 'org.jooq.DSLContext' (OnClassCondition) JpaRepositoriesAutoConfiguration: Did not match: - @ConditionalOnClass did not find required class 'org.springframework.data.jpa.repository.JpaRepository' (OnClassCondition) JsonbAutoConfiguration: Did not match: - @ConditionalOnClass did not find required class 'javax.json.bind.Jsonb' (OnClassCondition) JsonbHttpMessageConvertersConfiguration: Did not match: - @ConditionalOnClass did not find required class 'javax.json.bind.Jsonb' (OnClassCondition) JtaAutoConfiguration: Did not match: - @ConditionalOnClass did not find required class 'javax.transaction.Transaction' (OnClassCondition) KafkaAutoConfiguration: Did not match: - @ConditionalOnClass did not find required class 'org.springframework.kafka.core.KafkaTemplate' (OnClassCondition) LdapAutoConfiguration: Did not match: - @ConditionalOnClass did not find required class 'org.springframework.ldap.core.ContextSource' (OnClassCondition) LdapDataAutoConfiguration: Did not match: - @ConditionalOnClass did not find required class 'org.springframework.data.ldap.repository.LdapRepository' (OnClassCondition) LdapRepositoriesAutoConfiguration: Did not match: - @ConditionalOnClass did not find required class 'org.springframework.data.ldap.repository.LdapRepository' (OnClassCondition) LiquibaseAutoConfiguration: Did not match: - @ConditionalOnClass did not find required classes 'liquibase.integration.spring.SpringLiquibase', 'liquibase.change.DatabaseChange' (OnClassCondition) MailSenderAutoConfiguration: Did not match: - @ConditionalOnClass did not find required class 'javax.mail.internet.MimeMessage' (OnClassCondition) MailSenderValidatorAutoConfiguration: Did not match: - @ConditionalOnProperty (spring.mail.test-connection) did not find property 'test-connection' (OnPropertyCondition) MessageSourceAutoConfiguration: Did not match: - ResourceBundle did not find bundle with basename messages (MessageSourceAutoConfiguration.ResourceBundleCondition) MongoAutoConfiguration: Did not match: - @ConditionalOnClass did not find required class 'com.mongodb.MongoClient' (OnClassCondition) MongoDataAutoConfiguration: Did not match: - @ConditionalOnClass did not find required classes 'com.mongodb.MongoClient', 'org.springframework.data.mongodb.core.MongoTemplate' (OnClassCondition) MongoReactiveAutoConfiguration: Did not match: - @ConditionalOnClass did not find required class 'com.mongodb.reactivestreams.client.MongoClient' (OnClassCondition) MongoReactiveDataAutoConfiguration: Did not match: - @ConditionalOnClass did not find required classes 'com.mongodb.reactivestreams.client.MongoClient', 'org.springframework.data.mongodb.core.ReactiveMongoTemplate' (OnClassCondition) MongoReactiveRepositoriesAutoConfiguration: Did not match: - @ConditionalOnClass did not find required classes 'com.mongodb.reactivestreams.client.MongoClient', 'org.springframework.data.mongodb.repository.ReactiveMongoRepository' (OnClassCondition) MongoRepositoriesAutoConfiguration: Did not match: - @ConditionalOnClass did not find required classes 'com.mongodb.MongoClient', 'org.springframework.data.mongodb.repository.MongoRepository' (OnClassCondition) MustacheAutoConfiguration: Did not match: - @ConditionalOnClass did not find required class 'com.samskivert.mustache.Mustache' (OnClassCondition) Neo4jDataAutoConfiguration: Did not match: - @ConditionalOnClass did not find required classes 'org.neo4j.ogm.session.SessionFactory', 'org.springframework.data.neo4j.transaction.Neo4jTransactionManager' (OnClassCondition) Neo4jRepositoriesAutoConfiguration: Did not match: - @ConditionalOnClass did not find required classes 'org.neo4j.ogm.session.Neo4jSession', 'org.springframework.data.neo4j.repository.Neo4jRepository' (OnClassCondition) OAuth2ClientAutoConfiguration: Did not match: - @ConditionalOnClass did not find required classes 'org.springframework.security.config.annotation.web.configuration.EnableWebSecurity', 'org.springframework.security.oauth2.client.registration.ClientRegistration' (OnClassCondition) ProjectInfoAutoConfiguration#buildProperties: Did not match: - @ConditionalOnResource did not find resource '${spring.info.build.location:classpath:META-INF/build-info.properties}' (OnResourceCondition) ProjectInfoAutoConfiguration#gitProperties: Did not match: - GitResource did not find git info at classpath:git.properties (ProjectInfoAutoConfiguration.GitResourceAvailableCondition) QuartzAutoConfiguration.JdbcStoreTypeConfiguration: Did not match: - @ConditionalOnSingleCandidate (types: javax.sql.DataSource; SearchStrategy: all) did not find any beans (OnBeanCondition) RabbitAutoConfiguration: Did not match: - @ConditionalOnClass did not find required classes 'org.springframework.amqp.rabbit.core.RabbitTemplate', 'com.rabbitmq.client.Channel' (OnClassCondition) ReactiveUserDetailsServiceAutoConfiguration: Did not match: - @ConditionalOnClass did not find required class 'org.springframework.security.authentication.ReactiveAuthenticationManager' (OnClassCondition) ReactiveWebServerFactoryAutoConfiguration: Did not match: - not a reactive web application (OnWebApplicationCondition) Matched: - @ConditionalOnClass found required class 'org.springframework.http.ReactiveHttpInputMessage'; @ConditionalOnMissingClass did not find unwanted class (OnClassCondition) ReactorCoreAutoConfiguration: Did not match: - @ConditionalOnClass did not find required classes 'reactor.core.publisher.Mono', 'reactor.core.publisher.Flux' (OnClassCondition) RedisAutoConfiguration: Did not match: - @ConditionalOnClass did not find required class 'org.springframework.data.redis.core.RedisOperations' (OnClassCondition) RedisCacheConfiguration: Did not match: - @ConditionalOnClass did not find required class 'org.springframework.data.redis.connection.RedisConnectionFactory' (OnClassCondition) RedisReactiveAutoConfiguration: Did not match: - @ConditionalOnClass did not find required classes 'org.springframework.data.redis.connection.ReactiveRedisConnectionFactory', 'org.springframework.data.redis.core.ReactiveRedisTemplate', 'reactor.core.publisher.Flux' (OnClassCondition) RedisRepositoriesAutoConfiguration: Did not match: - @ConditionalOnClass did not find required class 'org.springframework.data.redis.repository.configuration.EnableRedisRepositories' (OnClassCondition) RepositoryRestMvcAutoConfiguration: Did not match: - @ConditionalOnClass did not find required class 'org.springframework.data.rest.webmvc.config.RepositoryRestMvcConfiguration' (OnClassCondition) SecurityAutoConfiguration: Did not match: - @ConditionalOnClass did not find required class 'org.springframework.security.authentication.DefaultAuthenticationEventPublisher' (OnClassCondition) SecurityFilterAutoConfiguration: Did not match: - @ConditionalOnClass did not find required classes 'org.springframework.security.web.context.AbstractSecurityWebApplicationInitializer', 'org.springframework.security.config.http.SessionCreationPolicy' (OnClassCondition) SendGridAutoConfiguration: Did not match: - @ConditionalOnClass did not find required class 'com.sendgrid.SendGrid' (OnClassCondition) ServletWebServerFactoryConfiguration.EmbeddedJetty: Did not match: - @ConditionalOnClass did not find required classes 'org.eclipse.jetty.server.Server', 'org.eclipse.jetty.util.Loader', 'org.eclipse.jetty.webapp.WebAppContext' (OnClassCondition) ServletWebServerFactoryConfiguration.EmbeddedUndertow: Did not match: - @ConditionalOnClass did not find required classes 'io.undertow.Undertow', 'org.xnio.SslClientAuthMode' (OnClassCondition) SessionAutoConfiguration: Did not match: - @ConditionalOnClass did not find required class 'org.springframework.session.Session' (OnClassCondition) SolrAutoConfiguration: Did not match: - @ConditionalOnClass did not find required classes 'org.apache.solr.client.solrj.impl.HttpSolrClient', 'org.apache.solr.client.solrj.impl.CloudSolrClient' (OnClassCondition) SolrRepositoriesAutoConfiguration: Did not match: - @ConditionalOnClass did not find required classes 'org.apache.solr.client.solrj.SolrClient', 'org.springframework.data.solr.repository.SolrRepository' (OnClassCondition) SpringApplicationAdminJmxAutoConfiguration: Did not match: - @ConditionalOnProperty (spring.application.admin.enabled=true) did not find property 'enabled' (OnPropertyCondition) SpringDataWebAutoConfiguration: Did not match: - @ConditionalOnClass did not find required class 'org.springframework.data.web.PageableHandlerMethodArgumentResolver' (OnClassCondition) ThymeleafAutoConfiguration: Did not match: - @ConditionalOnClass did not find required class 'org.thymeleaf.templatemode.TemplateMode' (OnClassCondition) TransactionAutoConfiguration.EnableTransactionManagementConfiguration: Did not match: - @ConditionalOnBean (types: org.springframework.transaction.PlatformTransactionManager; SearchStrategy: all) did not find any beans of type org.springframework.transaction.PlatformTransactionManager (OnBeanCondition) TransactionAutoConfiguration.EnableTransactionManagementConfiguration.CglibAutoProxyConfiguration: Did not match: - Ancestor org.springframework.boot.autoconfigure.transaction.TransactionAutoConfiguration$EnableTransactionManagementConfiguration did not match (ConditionEvaluationReport.AncestorsMatchedCondition) Matched: - @ConditionalOnProperty (spring.aop.proxy-target-class=true) matched (OnPropertyCondition) TransactionAutoConfiguration.EnableTransactionManagementConfiguration.JdkDynamicAutoProxyConfiguration: Did not match: - @ConditionalOnProperty (spring.aop.proxy-target-class=false) did not find property 'proxy-target-class' (OnPropertyCondition) - Ancestor org.springframework.boot.autoconfigure.transaction.TransactionAutoConfiguration$EnableTransactionManagementConfiguration did not match (ConditionEvaluationReport.AncestorsMatchedCondition) TransactionAutoConfiguration.TransactionTemplateConfiguration: Did not match: - @ConditionalOnSingleCandidate (types: org.springframework.transaction.PlatformTransactionManager; SearchStrategy: all) did not find any beans (OnBeanCondition) UserDetailsServiceAutoConfiguration: Did not match: - @ConditionalOnClass did not find required class 'org.springframework.security.authentication.AuthenticationManager' (OnClassCondition) WebClientAutoConfiguration: Did not match: - @ConditionalOnClass did not find required class 'org.springframework.web.reactive.function.client.WebClient' (OnClassCondition) WebFluxAutoConfiguration: Did not match: - @ConditionalOnClass did not find required class 'org.springframework.web.reactive.config.WebFluxConfigurer' (OnClassCondition) WebFluxSecurityConfiguration: Did not match: - @ConditionalOnClass did not find required classes 'org.springframework.security.config.annotation.web.reactive.EnableWebFluxSecurity', 'org.springframework.security.web.server.WebFilterChainProxy' (OnClassCondition) WebMvcAutoConfiguration.ResourceChainCustomizerConfiguration: Did not match: - @ConditionalOnEnabledResourceChain did not find class org.webjars.WebJarAssetLocator (OnEnabledResourceChainCondition) WebMvcAutoConfiguration.WebMvcAutoConfigurationAdapter#beanNameViewResolver: Did not match: - @ConditionalOnMissingBean (types: org.springframework.web.servlet.view.BeanNameViewResolver; SearchStrategy: all) found beans of type 'org.springframework.web.servlet.view.BeanNameViewResolver' beanNameViewResolver (OnBeanCondition) WebMvcAutoConfiguration.WebMvcAutoConfigurationAdapter#localeResolver: Did not match: - @ConditionalOnProperty (spring.mvc.locale) did not find property 'locale' (OnPropertyCondition) WebServicesAutoConfiguration: Did not match: - @ConditionalOnClass did not find required class 'org.springframework.ws.transport.http.MessageDispatcherServlet' (OnClassCondition) WebSocketMessagingAutoConfiguration: Did not match: - @ConditionalOnClass did not find required class 'org.springframework.web.socket.config.annotation.WebSocketMessageBrokerConfigurer' (OnClassCondition) WebSocketReactiveAutoConfiguration: Did not match: - not a reactive web application (OnWebApplicationCondition) Matched: - @ConditionalOnClass found required classes 'javax.servlet.Servlet', 'javax.websocket.server.ServerContainer'; @ConditionalOnMissingClass did not find unwanted class (OnClassCondition) WebSocketServletAutoConfiguration.JettyWebSocketConfiguration: Did not match: - @ConditionalOnClass did not find required class 'org.eclipse.jetty.websocket.jsr356.server.deploy.WebSocketServerContainerInitializer' (OnClassCondition) WebSocketServletAutoConfiguration.UndertowWebSocketConfiguration: Did not match: - @ConditionalOnClass did not find required class 'io.undertow.websockets.jsr.Bootstrap' (OnClassCondition) XADataSourceAutoConfiguration: Did not match: - @ConditionalOnClass did not find required classes 'javax.transaction.TransactionManager', 'org.springframework.jdbc.datasource.embedded.EmbeddedDatabaseType' (OnClassCondition) Exclusions: ----------- None Unconditional classes: ---------------------- org.springframework.boot.autoconfigure.context.PropertyPlaceholderAutoConfiguration org.springframework.boot.autoconfigure.web.embedded.EmbeddedWebServerFactoryCustomizerAutoConfiguration org.springframework.boot.autoconfigure.security.reactive.ReactiveSecurityAutoConfiguration org.springframework.boot.autoconfigure.context.ConfigurationPropertiesAutoConfiguration org.springframework.boot.autoconfigure.info.ProjectInfoAutoConfiguration ``` ```
加热炉用最优控制LQR输出跟踪的曲线为什么会震荡到0下面在上升到理想输出
num=[9.8 -0.69972 0.01666]; den=[120 9.568 0.2754 0.0001]; [A,B,C,D]=tf2ss(num,den); %算出A,B,C,D Q=1; R=1;yr=60; %yr=60为理想输出 E=B*inv(R)*B'; F=C'*inv(Q)*C; P=are(A,E,F); g=inv(P*E-A')*C'*Q*yr; L=inv(R)*B'*g K=-inv(R)*B'*P M=A-E*P; y=poly(M); r=roots(y) S=E*inv(P*E-A')*C'*Q*yr; t=0:0.1:300; y1=step(A+B*K,S,C,D,1,t);grid on;%最优控制律为u(t)=Mx(t)+Su(t) plot(t,y1,'r');%红色为输出跟踪器的阶跃响应 gtext('输出跟踪'); xlabel('Time/s');ylabel('y') hold on;![图片说明](https://img-ask.csdn.net/upload/201905/24/1558708638_456724.jpg) ``` 求大神请教为什么,怎么解决? ```
爬虫福利二 之 妹子图网MM批量下载
爬虫福利一:27报网MM批量下载 点击 看了本文,相信大家对爬虫一定会产生强烈的兴趣,激励自己去学习爬虫,在这里提前祝:大家学有所成! 目标网站:妹子图网 环境:Python3.x 相关第三方模块:requests、beautifulsoup4 Re:各位在测试时只需要将代码里的变量path 指定为你当前系统要保存的路径,使用 python xxx.py 或IDE运行即可。 ...
Java学习的正确打开方式
在博主认为,对于入门级学习java的最佳学习方法莫过于视频+博客+书籍+总结,前三者博主将淋漓尽致地挥毫于这篇博客文章中,至于总结在于个人,实际上越到后面你会发现学习的最好方式就是阅读参考官方文档其次就是国内的书籍,博客次之,这又是一个层次了,这里暂时不提后面再谈。博主将为各位入门java保驾护航,各位只管冲鸭!!!上天是公平的,只要不辜负时间,时间自然不会辜负你。 何谓学习?博主所理解的学习,它是一个过程,是一个不断累积、不断沉淀、不断总结、善于传达自己的个人见解以及乐于分享的过程。
大学四年自学走来,这些私藏的实用工具/学习网站我贡献出来了
大学四年,看课本是不可能一直看课本的了,对于学习,特别是自学,善于搜索网上的一些资源来辅助,还是非常有必要的,下面我就把这几年私藏的各种资源,网站贡献出来给你们。主要有:电子书搜索、实用工具、在线视频学习网站、非视频学习网站、软件下载、面试/求职必备网站。 注意:文中提到的所有资源,文末我都给你整理好了,你们只管拿去,如果觉得不错,转发、分享就是最大的支持了。 一、电子书搜索 对于大部分程序员...
linux系列之常用运维命令整理笔录
本博客记录工作中需要的linux运维命令,大学时候开始接触linux,会一些基本操作,可是都没有整理起来,加上是做开发,不做运维,有些命令忘记了,所以现在整理成博客,当然vi,文件操作等就不介绍了,慢慢积累一些其它拓展的命令,博客不定时更新 free -m 其中:m表示兆,也可以用g,注意都要小写 Men:表示物理内存统计 total:表示物理内存总数(total=used+free) use...
比特币原理详解
一、什么是比特币 比特币是一种电子货币,是一种基于密码学的货币,在2008年11月1日由中本聪发表比特币白皮书,文中提出了一种去中心化的电子记账系统,我们平时的电子现金是银行来记账,因为银行的背后是国家信用。去中心化电子记账系统是参与者共同记账。比特币可以防止主权危机、信用风险。其好处不多做赘述,这一层面介绍的文章很多,本文主要从更深层的技术原理角度进行介绍。 二、问题引入 假设现有4个人...
程序员接私活怎样防止做完了不给钱?
首先跟大家说明一点,我们做 IT 类的外包开发,是非标品开发,所以很有可能在开发过程中会有这样那样的需求修改,而这种需求修改很容易造成扯皮,进而影响到费用支付,甚至出现做完了项目收不到钱的情况。 那么,怎么保证自己的薪酬安全呢? 我们在开工前,一定要做好一些证据方面的准备(也就是“讨薪”的理论依据),这其中最重要的就是需求文档和验收标准。一定要让需求方提供这两个文档资料作为开发的基础。之后开发...
网页实现一个简单的音乐播放器(大佬别看。(⊙﹏⊙))
今天闲着无事,就想写点东西。然后听了下歌,就打算写个播放器。 于是乎用h5 audio的加上js简单的播放器完工了。 演示地点演示 html代码如下` music 这个年纪 七月的风 音乐 ` 然后就是css`*{ margin: 0; padding: 0; text-decoration: none; list-...
Python十大装B语法
Python 是一种代表简单思想的语言,其语法相对简单,很容易上手。不过,如果就此小视 Python 语法的精妙和深邃,那就大错特错了。本文精心筛选了最能展现 Python 语法之精妙的十个知识点,并附上详细的实例代码。如能在实战中融会贯通、灵活使用,必将使代码更为精炼、高效,同时也会极大提升代码B格,使之看上去更老练,读起来更优雅。
数据库优化 - SQL优化
以实际SQL入手,带你一步一步走上SQL优化之路!
2019年11月中国大陆编程语言排行榜
2019年11月2日,我统计了某招聘网站,获得有效程序员招聘数据9万条。针对招聘信息,提取编程语言关键字,并统计如下: 编程语言比例 rank pl_ percentage 1 java 33.62% 2 cpp 16.42% 3 c_sharp 12.82% 4 javascript 12.31% 5 python 7.93% 6 go 7.25% 7 p...
通俗易懂地给女朋友讲:线程池的内部原理
餐盘在灯光的照耀下格外晶莹洁白,女朋友拿起红酒杯轻轻地抿了一小口,对我说:“经常听你说线程池,到底线程池到底是个什么原理?”
经典算法(5)杨辉三角
杨辉三角 是经典算法,这篇博客对它的算法思想进行了讲解,并有完整的代码实现。
腾讯算法面试题:64匹马8个跑道需要多少轮才能选出最快的四匹?
昨天,有网友私信我,说去阿里面试,彻底的被打击到了。问了为什么网上大量使用ThreadLocal的源码都会加上private static?他被难住了,因为他从来都没有考虑过这个问题。无独有偶,今天笔者又发现有网友吐槽了一道腾讯的面试题,我们一起来看看。 腾讯算法面试题:64匹马8个跑道需要多少轮才能选出最快的四匹? 在互联网职场论坛,一名程序员发帖求助到。二面腾讯,其中一个算法题:64匹...
面试官:你连RESTful都不知道我怎么敢要你?
干货,2019 RESTful最贱实践
JDK12 Collectors.teeing 你真的需要了解一下
前言 在 Java 12 里面有个非常好用但在官方 JEP 没有公布的功能,因为它只是 Collector 中的一个小改动,它的作用是 merge 两个 collector 的结果,这句话显得很抽象,老规矩,我们先来看个图(这真是一个不和谐的图????): 管道改造经常会用这个小东西,通常我们叫它「三通」,它的主要作用就是将 downstream1 和 downstre...
为啥国人偏爱Mybatis,而老外喜欢Hibernate/JPA呢?
关于SQL和ORM的争论,永远都不会终止,我也一直在思考这个问题。昨天又跟群里的小伙伴进行了一番讨论,感触还是有一些,于是就有了今天这篇文。 声明:本文不会下关于Mybatis和JPA两个持久层框架哪个更好这样的结论。只是摆事实,讲道理,所以,请各位看官勿喷。 一、事件起因 关于Mybatis和JPA孰优孰劣的问题,争论已经很多年了。一直也没有结论,毕竟每个人的喜好和习惯是大不相同的。我也看...
SQL-小白最佳入门sql查询一
不要偷偷的查询我的个人资料,即使你再喜欢我,也不要这样,真的不好;
项目中的if else太多了,该怎么重构?
介绍 最近跟着公司的大佬开发了一款IM系统,类似QQ和微信哈,就是聊天软件。我们有一部分业务逻辑是这样的 if (msgType = "文本") { // dosomething } else if(msgType = "图片") { // doshomething } else if(msgType = "视频") { // doshomething } else { // doshom...
【图解经典算法题】如何用一行代码解决约瑟夫环问题
约瑟夫环问题算是很经典的题了,估计大家都听说过,然后我就在一次笔试中遇到了,下面我就用 3 种方法来详细讲解一下这道题,最后一种方法学了之后保证让你可以让你装逼。 问题描述:编号为 1-N 的 N 个士兵围坐在一起形成一个圆圈,从编号为 1 的士兵开始依次报数(1,2,3…这样依次报),数到 m 的 士兵会被杀死出列,之后的士兵再从 1 开始报数。直到最后剩下一士兵,求这个士兵的编号。 1、方...
致 Python 初学者
欢迎来到“Python进阶”专栏!来到这里的每一位同学,应该大致上学习了很多 Python 的基础知识,正在努力成长的过程中。在此期间,一定遇到了很多的困惑,对未来的学习方向感到迷茫。我非常理解你们所面临的处境。我从2007年开始接触 python 这门编程语言,从2009年开始单一使用 python 应对所有的开发工作,直至今天。回顾自己的学习过程,也曾经遇到过无数的困难,也曾经迷茫过、困惑过。开办这个专栏,正是为了帮助像我当年一样困惑的 Python 初学者走出困境、快速成长。希望我的经验能真正帮到你
“狗屁不通文章生成器”登顶GitHub热榜,分分钟写出万字形式主义大作
一、垃圾文字生成器介绍 最近在浏览GitHub的时候,发现了这样一个骨骼清奇的雷人项目,而且热度还特别高。 项目中文名:狗屁不通文章生成器 项目英文名:BullshitGenerator 根据作者的介绍,他是偶尔需要一些中文文字用于GUI开发时测试文本渲染,因此开发了这个废话生成器。但由于生成的废话实在是太过富于哲理,所以最近已经被小伙伴们给玩坏了。 他的文风可能是这样的: 你发现,...
程序员:我终于知道post和get的区别
是一个老生常谈的话题,然而随着不断的学习,对于以前的认识有很多误区,所以还是需要不断地总结的,学而时习之,不亦说乎
GitHub标星近1万:只需5秒音源,这个网络就能实时“克隆”你的声音
作者 | Google团队 译者 | 凯隐 编辑 | Jane 出品 | AI科技大本营(ID:rgznai100) 本文中,Google 团队提出了一种文本语音合成(text to speech)神经系统,能通过少量样本学习到多个不同说话者(speaker)的语音特征,并合成他们的讲话音频。此外,对于训练时网络没有接触过的说话者,也能在不重新训练的情况下,仅通过未知...
《程序人生》系列-这个程序员只用了20行代码就拿了冠军
你知道的越多,你不知道的越多 点赞再看,养成习惯GitHub上已经开源https://github.com/JavaFamily,有一线大厂面试点脑图,欢迎Star和完善 前言 这一期不算《吊打面试官》系列的,所有没前言我直接开始。 絮叨 本来应该是没有这期的,看过我上期的小伙伴应该是知道的嘛,双十一比较忙嘛,要值班又要去帮忙拍摄年会的视频素材,还得搞个程序员一天的Vlog,还要写BU...
加快推动区块链技术和产业创新发展,2019可信区块链峰会在京召开
11月8日,由中国信息通信研究院、中国通信标准化协会、中国互联网协会、可信区块链推进计划联合主办,科技行者协办的2019可信区块链峰会将在北京悠唐皇冠假日酒店开幕。   区块链技术被认为是继蒸汽机、电力、互联网之后,下一代颠覆性的核心技术。如果说蒸汽机释放了人类的生产力,电力解决了人类基本的生活需求,互联网彻底改变了信息传递的方式,区块链作为构造信任的技术有重要的价值。   1...
程序员把地府后台管理系统做出来了,还有3.0版本!12月7号最新消息:已在开发中有github地址
第一幕:缘起 听说阎王爷要做个生死簿后台管理系统,我们派去了一个程序员…… 996程序员做的梦: 第一场:团队招募 为了应对地府管理危机,阎王打算找“人”开发一套地府后台管理系统,于是就在地府总经办群中发了项目需求。 话说还是中国电信的信号好,地府都是满格,哈哈!!! 经常会有外行朋友问:看某网站做的不错,功能也简单,你帮忙做一下? 而这次,面对这样的需求,这个程序员...
网易云6亿用户音乐推荐算法
网易云音乐是音乐爱好者的集聚地,云音乐推荐系统致力于通过 AI 算法的落地,实现用户千人千面的个性化推荐,为用户带来不一样的听歌体验。 本次分享重点介绍 AI 算法在音乐推荐中的应用实践,以及在算法落地过程中遇到的挑战和解决方案。 将从如下两个部分展开: AI算法在音乐推荐中的应用 音乐场景下的 AI 思考 从 2013 年 4 月正式上线至今,网易云音乐平台持续提供着:乐屏社区、UGC...
【技巧总结】位运算装逼指南
位算法的效率有多快我就不说,不信你可以去用 10 亿个数据模拟一下,今天给大家讲一讲位运算的一些经典例子。不过,最重要的不是看懂了这些例子就好,而是要在以后多去运用位运算这些技巧,当然,采用位运算,也是可以装逼的,不信,你往下看。我会从最简单的讲起,一道比一道难度递增,不过居然是讲技巧,那么也不会太难,相信你分分钟看懂。 判断奇偶数 判断一个数是基于还是偶数,相信很多人都做过,一般的做法的代码如下...
【管理系统课程设计】美少女手把手教你后台管理
【文章后台管理系统】URL设计与建模分析+项目源码+运行界面 栏目管理、文章列表、用户管理、角色管理、权限管理模块(文章最后附有源码) 1. 这是一个什么系统? 1.1 学习后台管理系统的原因 随着时代的变迁,现如今各大云服务平台横空出世,市面上有许多如学生信息系统、图书阅读系统、停车场管理系统等的管理系统,而本人家里就有人在用烟草销售系统,直接在网上完成挑选、购买与提交收货点,方便又快捷。 试想,若没有烟草销售系统,本人家人想要购买烟草,还要独自前往药...
4G EPS 第四代移动通信系统
目录 文章目录目录4G 与 LTE/EPCLTE/EPC 的架构E-UTRANE-UTRAN 协议栈eNodeBEPCMMES-GWP-GWHSSLTE/EPC 协议栈概览 4G 与 LTE/EPC 4G,即第四代移动通信系统,提供了 3G 不能满足的无线网络宽带化,主要提供数据(上网)业务。而 LTE(Long Term Evolution,长期演进技术)是电信领域用于手机及数据终端的高速无线通...
相关热词 c# plc s1200 c#里氏转换原则 c# 主界面 c# do loop c#存为组套 模板 c# 停掉协程 c# rgb 读取图片 c# 图片颜色调整 最快 c#多张图片上传 c#密封类与密封方法
立即提问