zhangyuansheng1217 / restfultool Goto Github PK
View Code? Open in Web Editor NEW一套 Restful 服务开发辅助工具集
License: GNU Affero General Public License v3.0
一套 Restful 服务开发辅助工具集
License: GNU Affero General Public License v3.0
springboot项目映射问题
1.映射有缺少的选项
2.RestfulTree可以搜索到相应的api 希望能添加快捷跳转 支持api演示
整个RestService 内容无法显示
Is your feature request related to a problem? Please describe.
no
Describe the solution you'd like
设置中最好能够支持配置服务默认端口号,多服务开发时并不总是localhost:8080
设置中最好能够支持配置默认的请求头,这样不用每个请求都去配置一遍
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
类似于在tool window上针对url进行copy的功能
http://localhost:8080/home/selectStock
路径也不能识别
server:
port: 16001 #启动端口
第一个
java.lang.NullPointerException
at com.zhaow.restful.common.PsiAnnotationHelper.getAnnotationAttributeValues(PsiAnnotationHelper.java:54)
at com.zhaow.restful.common.spring.RequestMappingAnnotationHelper.getRequestMappings(RequestMappingAnnotationHelper.java:96)
at com.zhaow.restful.common.spring.RequestMappingAnnotationHelper.getRequestPaths(RequestMappingAnnotationHelper.java:144)
at com.zhaow.restful.common.resolver.SpringResolver.getServiceItemList(SpringResolver.java:181)
at com.zhaow.restful.common.resolver.SpringResolver.getRestServiceItemList(SpringResolver.java:137)
at com.zhaow.restful.common.resolver.BaseServiceResolver.findAllSupportedServiceItemsInProject(BaseServiceResolver.java:67)
at com.zhaow.restful.common.ServiceHelper.buildRestServiceItemListUsingResolver(ServiceHelper.java:70)
at com.zhaow.restful.navigation.action.GotoRequestMappingContributor.getNames(GotoRequestMappingContributor.java:33)
at com.intellij.ide.util.gotoByName.ContributorsBasedGotoByModel.processContributorNames(ContributorsBasedGotoByModel.java:127)
at com.intellij.ide.util.gotoByName.ContributorsBasedGotoByModel$1.processInReadAction(ContributorsBasedGotoByModel.java:86)
at com.intellij.ide.util.gotoByName.ContributorsBasedGotoByModel$1.processInReadAction(ContributorsBasedGotoByModel.java:80)
at com.intellij.openapi.application.ReadActionProcessor.lambda$process$0(ReadActionProcessor.java:28)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:821)
at com.intellij.openapi.application.ReadAction.compute(ReadAction.java:69)
at com.intellij.openapi.application.ReadActionProcessor.process(ReadActionProcessor.java:28)
at com.intellij.concurrency.JobLauncherImpl.lambda$null$2(JobLauncherImpl.java:115)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:585)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:531)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:59)
at com.intellij.concurrency.JobLauncherImpl.lambda$processImmediatelyIfTooFew$3(JobLauncherImpl.java:111)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:791)
at com.intellij.concurrency.JobLauncherImpl.processImmediatelyIfTooFew(JobLauncherImpl.java:122)
at com.intellij.concurrency.JobLauncherImpl.invokeConcurrentlyUnderProgress(JobLauncherImpl.java:41)
at com.intellij.concurrency.JobLauncher.invokeConcurrentlyUnderProgress(JobLauncher.java:45)
at com.intellij.ide.util.gotoByName.ContributorsBasedGotoByModel.processNames(ContributorsBasedGotoByModel.java:102)
at com.intellij.ide.util.gotoByName.DefaultChooseByNameItemProvider.getAllNames(DefaultChooseByNameItemProvider.java:186)
at com.intellij.ide.util.gotoByName.DefaultChooseByNameItemProvider.getSortedNames(DefaultChooseByNameItemProvider.java:155)
at com.intellij.ide.util.gotoByName.DefaultChooseByNameItemProvider.getSortedNamesForAllWildcards(DefaultChooseByNameItemProvider.java:130)
at com.intellij.ide.util.gotoByName.DefaultChooseByNameItemProvider.filterElements(DefaultChooseByNameItemProvider.java:113)
at com.intellij.ide.util.gotoByName.DefaultChooseByNameItemProvider.lambda$filterElementsWithWeights$3(DefaultChooseByNameItemProvider.java:75)
at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:698)
at com.intellij.ide.util.gotoByName.DefaultChooseByNameItemProvider.filterElementsWithWeights(DefaultChooseByNameItemProvider.java:74)
at com.intellij.ide.util.gotoByName.DefaultChooseByNameItemProvider.filterElements(DefaultChooseByNameItemProvider.java:48)
at com.zhaow.restful.navigation.action.GotoRequestMappingProvider.filterElements(GotoRequestMappingProvider.java:40)
at com.intellij.ide.util.gotoByName.ChooseByNameBase$CalcElementsThread.addElementsByPattern(ChooseByNameBase.java:1423)
at com.intellij.ide.util.gotoByName.ChooseByNameBase$CalcElementsThread.fillWithScopeExpansion(ChooseByNameBase.java:1400)
at com.intellij.ide.util.gotoByName.ChooseByNameBase$CalcElementsThread.populateElements(ChooseByNameBase.java:1383)
at com.intellij.ide.util.gotoByName.ChooseByNameBase$CalcElementsThread.performInReadAction(ChooseByNameBase.java:1346)
at com.intellij.ide.util.gotoByName.ChooseByNameBase$CalcElementsThread.lambda$runBackgroundProcess$0(ChooseByNameBase.java:1335)
at com.intellij.openapi.project.DumbService.lambda$runReadActionInSmartMode$0(DumbService.java:106)
at com.intellij.openapi.project.DumbService.lambda$runReadActionInSmartMode$1(DumbService.java:151)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:825)
at com.intellij.openapi.application.ReadAction.compute(ReadAction.java:69)
at com.intellij.openapi.project.DumbService.runReadActionInSmartMode(DumbService.java:144)
at com.intellij.openapi.project.DumbService.runReadActionInSmartMode(DumbService.java:106)
at com.intellij.ide.util.gotoByName.ChooseByNameBase$CalcElementsThread.runBackgroundProcess(ChooseByNameBase.java:1335)
at com.intellij.openapi.progress.util.ProgressIndicatorUtils.lambda$runUnderProgress$4(ProgressIndicatorUtils.java:232)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$3(CoreProgressManager.java:179)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:163)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:585)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:531)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:59)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:150)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:179)
at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runUnderProgress(ProgressIndicatorUtils.java:230)
at com.intellij.openapi.progress.util.ProgressIndicatorUtils.access$100(ProgressIndicatorUtils.java:36)
at com.intellij.openapi.progress.util.ProgressIndicatorUtils$4.run(ProgressIndicatorUtils.java:181)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)
第二个
java.lang.NullPointerException
at com.zhaow.restful.common.PsiAnnotationHelper.getAnnotationAttributeValues(PsiAnnotationHelper.java:54)
at com.zhaow.restful.common.spring.RequestMappingAnnotationHelper.getRequestMappings(RequestMappingAnnotationHelper.java:96)
at com.zhaow.restful.common.spring.RequestMappingAnnotationHelper.getRequestPaths(RequestMappingAnnotationHelper.java:144)
at com.zhaow.restful.common.resolver.SpringResolver.getServiceItemList(SpringResolver.java:181)
at com.zhaow.restful.common.resolver.SpringResolver.getRestServiceItemList(SpringResolver.java:137)
at com.zhaow.restful.common.resolver.BaseServiceResolver.findAllSupportedServiceItemsInModule(BaseServiceResolver.java:38)
at com.zhaow.restful.common.ServiceHelper.buildRestServiceItemListUsingResolver(ServiceHelper.java:55)
at com.zhaow.restful.common.ServiceHelper.buildRestServiceProjectListUsingResolver(ServiceHelper.java:36)
at com.zhaow.restful.navigator.RestServiceProjectsManager.lambda$getServiceProjects$0(RestServiceProjectsManager.java:68)
at com.intellij.openapi.project.DumbService.lambda$runReadActionInSmartMode$0(DumbService.java:106)
at com.intellij.openapi.project.DumbService.runReadActionInSmartMode(DumbService.java:138)
at com.intellij.openapi.project.DumbService.runReadActionInSmartMode(DumbService.java:106)
at com.zhaow.restful.navigator.RestServiceProjectsManager.getServiceProjects(RestServiceProjectsManager.java:68)
at com.zhaow.restful.navigator.RestServiceStructure.update(RestServiceStructure.java:99)
at com.zhaow.restful.navigator.RestServicesNavigator.lambda$scheduleStructureUpdate$1(RestServicesNavigator.java:157)
at com.zhaow.restful.navigator.RestServicesNavigator.lambda$scheduleStructureRequest$2(RestServicesNavigator.java:174)
at com.intellij.openapi.project.DumbServiceImpl.lambda$smartInvokeLater$7(DumbServiceImpl.java:460)
at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:309)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.doRun(LaterInvocator.java:441)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.runNextEvent(LaterInvocator.java:424)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:407)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:908)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:781)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:424)
at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:698)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:423)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
我在插件里看到了请求入参和出参还有请求体,没找到在哪里设置Header信息。
首先很感谢老哥的更新,工具越来越方便了🙏
在application.yml里面配置
server:
servlet:
context-path: /@contextPath@
这种依靠maven来替换的context-path,http 请求工具
不能识别
http://localhost:8686/@contextPath@/***
能不能给个输入框可以修改http 请求工具
的context-path
Error executing task core.view.window.frame.RightToolWindow$$Lambda$3227/0x0000000801d9f840@276f80b1
java.lang.IllegalArgumentException: No enum constant core.beans.HttpMethod.OPTIONS
at java.base/java.lang.Enum.valueOf(Enum.java:240)
at core.beans.HttpMethod.valueOf(HttpMethod.java:21)
at core.utils.scanner.SpringHelper.getRequests(SpringHelper.java:142)
at core.utils.scanner.SpringHelper.getRequests(SpringHelper.java:201)
at core.utils.scanner.SpringHelper.getSpringRequestByModule(SpringHelper.java:56)
at core.utils.RestUtil.getAllRequestByModule(RestUtil.java:188)
at core.utils.RestUtil.getAllRequest(RestUtil.java:163)
at core.utils.RestUtil.getAllRequest(RestUtil.java:147)
at core.view.window.frame.RightToolWindow.getRequests(RightToolWindow.java:243)
at core.view.window.frame.RightToolWindow.lambda$renderRequestTree$10(RightToolWindow.java:252)
at com.intellij.openapi.project.DumbServiceImpl.doRun(DumbServiceImpl.java:434)
at com.intellij.openapi.project.DumbServiceImpl.updateFinished(DumbServiceImpl.java:426)
at com.intellij.openapi.project.DumbServiceImpl$TrackedEdtActivity.run(DumbServiceImpl.java:909)
at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:201)
at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:831)
at com.intellij.openapi.application.impl.ApplicationImpl.lambda$invokeLater$4(ApplicationImpl.java:310)
at com.intellij.openapi.application.impl.FlushQueue.doRun(FlushQueue.java:80)
at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:128)
at com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:46)
at com.intellij.openapi.application.impl.FlushQueue$FlushNow.run(FlushQueue.java:184)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:776)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:746)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:974)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:847)
at com.intellij.ide.IdeEventQueue.lambda$null$8(IdeEventQueue.java:449)
at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:741)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$9(IdeEventQueue.java:448)
at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:831)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:496)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
在idea中报了这个错误,怀疑是不是插件Enum文件中没有考虑到OPTIONS类型导致的问题
找了半天,原来是Ctrl + Alt + / ,挺不习惯的。原来的已经称为肌肉记忆了。
代码使用了@JsonProperty注解来将序列化参数,插件现在是直接读取的变量名称。
请求加入优先解析@JsonProperty注解定义值的逻辑😊
As the question, sometimes it is very inconvenient to have to copy out the URL for testing.
项目中既有Jaxrs,又有spring restful,工具只能获取到Jaxrs的url。
图片描述: idea 的右侧tab的图标没了,请求列表也没有了
idea 报错信息
java.lang.NoSuchFieldError: ModulesNode
at com.zhaow.restful.common.ToolkitIcons.<clinit>(ToolkitIcons.java:39)
at com.zhaow.restful.navigator.RestServicesNavigator.initToolWindow(RestServicesNavigator.java:118)
at com.zhaow.restful.navigator.RestServicesNavigator.lambda$initComponent$0(RestServicesNavigator.java:105)
at com.intellij.util.DisposeAwareRunnable.run(DisposeAwareRunnable.java:86)
at com.intellij.ide.startup.impl.StartupManagerImpl.runActivity(StartupManagerImpl.java:458)
at com.intellij.ide.startup.impl.StartupManagerImpl$2.lambda$run$0(StartupManagerImpl.java:349)
at com.intellij.openapi.project.DumbServiceImpl.unsafeRunWhenSmart(DumbServiceImpl.java:283)
at com.intellij.ide.startup.impl.StartupManagerImpl.lambda$runDumbUnawareActivity$10(StartupManagerImpl.java:515)
at com.intellij.ui.GuiUtils.invokeLaterIfNeeded(GuiUtils.java:284)
at com.intellij.ide.startup.impl.StartupManagerImpl.runDumbUnawareActivity(StartupManagerImpl.java:514)
at com.intellij.ide.startup.impl.StartupManagerImpl.access$200(StartupManagerImpl.java:48)
at com.intellij.ide.startup.impl.StartupManagerImpl$2.run(StartupManagerImpl.java:349)
at com.intellij.openapi.project.DumbServiceImpl.doRun(DumbServiceImpl.java:434)
at com.intellij.openapi.project.DumbServiceImpl.updateFinished(DumbServiceImpl.java:426)
at com.intellij.openapi.project.DumbServiceImpl$TrackedEdtActivity.run(DumbServiceImpl.java:905)
at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:201)
at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:831)
at com.intellij.openapi.application.impl.ApplicationImpl.lambda$invokeLater$4(ApplicationImpl.java:310)
at com.intellij.openapi.application.impl.FlushQueue.doRun(FlushQueue.java:80)
at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:128)
at com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:46)
at com.intellij.openapi.application.impl.FlushQueue$FlushNow.run(FlushQueue.java:184)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:776)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:746)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:974)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:847)
at com.intellij.ide.IdeEventQueue.lambda$null$8(IdeEventQueue.java:449)
at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:741)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$9(IdeEventQueue.java:448)
at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:831)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:496)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
java.lang.NoClassDefFoundError: Could not initialize class com.zhaow.restful.common.ToolkitIcons
at com.zhaow.restful.navigator.RestServicesNavigator.initToolWindow(RestServicesNavigator.java:118)
at com.zhaow.restful.navigator.RestServicesNavigator.lambda$initComponent$0(RestServicesNavigator.java:105)
at com.intellij.util.DisposeAwareRunnable.run(DisposeAwareRunnable.java:86)
at com.intellij.ide.startup.impl.StartupManagerImpl.runActivity(StartupManagerImpl.java:458)
at com.intellij.ide.startup.impl.StartupManagerImpl$2.lambda$run$0(StartupManagerImpl.java:349)
at com.intellij.openapi.project.DumbServiceImpl.unsafeRunWhenSmart(DumbServiceImpl.java:283)
at com.intellij.ide.startup.impl.StartupManagerImpl.lambda$runDumbUnawareActivity$10(StartupManagerImpl.java:515)
at com.intellij.ui.GuiUtils.invokeLaterIfNeeded(GuiUtils.java:284)
at com.intellij.ide.startup.impl.StartupManagerImpl.runDumbUnawareActivity(StartupManagerImpl.java:514)
at com.intellij.ide.startup.impl.StartupManagerImpl.access$200(StartupManagerImpl.java:48)
at com.intellij.ide.startup.impl.StartupManagerImpl$2.run(StartupManagerImpl.java:349)
at com.intellij.openapi.project.DumbServiceImpl.doRun(DumbServiceImpl.java:434)
at com.intellij.openapi.project.DumbServiceImpl.updateFinished(DumbServiceImpl.java:426)
at com.intellij.openapi.project.DumbServiceImpl$TrackedEdtActivity.run(DumbServiceImpl.java:905)
at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:201)
at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:831)
at com.intellij.openapi.application.impl.ApplicationImpl.lambda$invokeLater$4(ApplicationImpl.java:310)
at com.intellij.openapi.application.impl.FlushQueue.doRun(FlushQueue.java:80)
at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:128)
at com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:46)
at com.intellij.openapi.application.impl.FlushQueue$FlushNow.run(FlushQueue.java:184)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:776)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:746)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:974)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:847)
at com.intellij.ide.IdeEventQueue.lambda$null$8(IdeEventQueue.java:449)
at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:741)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$9(IdeEventQueue.java:448)
at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:831)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:496)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
It's a great plugins.
If posted to Jetbrains Plugins ,use much easier.
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
当在类级别的@RequestMapping("/index/"),在方法上的@RequestMapping("/test/user"),那么插件将无法扫描到/index/test/user,但实际上Spring是允许这么使用,且调用也是没问题,希望能支持这种情况的路径扫描
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
无论是快捷键还是使用窗口的搜索按钮都会跳转到对应的代码上,
但是右侧API窗口并不会跳转,不能在右侧窗口中找到想要的API
以前的那个插件是支持 Kotlin 的,现在这个插件看起来只支持 Java。有没有可能加入对 Kotlin 的支持呢?
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
IDEA 右下角红色叹号:IDEA Fatal Errors
1 of 2 Exception in plugin RestfulTookit(2.0.9)
1:
java.lang.NoSuchFieldError: ModulesNode at com.zhaow.restful.common.ToolkitIcons.<clinit>(ToolkitIcons.java:39) at com.zhaow.restful.navigator.RestServicesNavigator.initToolWindow(RestServicesNavigator.java:118) at com.zhaow.restful.navigator.RestServicesNavigator.lambda$initComponent$0(RestServicesNavigator.java:105) at com.intellij.util.DisposeAwareRunnable.run(DisposeAwareRunnable.java:86) at com.intellij.ide.startup.impl.StartupManagerImpl.runActivity(StartupManagerImpl.java:458) at com.intellij.ide.startup.impl.StartupManagerImpl$2.lambda$run$0(StartupManagerImpl.java:349) at com.intellij.openapi.project.DumbServiceImpl.unsafeRunWhenSmart(DumbServiceImpl.java:275) at com.intellij.ide.startup.impl.StartupManagerImpl.lambda$runDumbUnawareActivity$10(StartupManagerImpl.java:515) at com.intellij.ui.GuiUtils.invokeLaterIfNeeded(GuiUtils.java:284) at com.intellij.ide.startup.impl.StartupManagerImpl.runDumbUnawareActivity(StartupManagerImpl.java:514) at com.intellij.ide.startup.impl.StartupManagerImpl.access$200(StartupManagerImpl.java:48) at com.intellij.ide.startup.impl.StartupManagerImpl$2.run(StartupManagerImpl.java:349) at com.intellij.openapi.project.DumbServiceImpl.doRun(DumbServiceImpl.java:426) at com.intellij.openapi.project.DumbServiceImpl.updateFinished(DumbServiceImpl.java:418) at com.intellij.openapi.project.DumbServiceImpl$TrackedEdtActivity.run(DumbServiceImpl.java:884) at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:201) at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:831) at com.intellij.openapi.application.impl.ApplicationImpl.lambda$invokeLater$4(ApplicationImpl.java:310) at com.intellij.openapi.application.impl.FlushQueue.doRun(FlushQueue.java:80) at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:128) at com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:46) at com.intellij.openapi.application.impl.FlushQueue$FlushNow.run(FlushQueue.java:184) at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313) at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:776) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721) at java.base/java.security.AccessController.doPrivileged(Native Method) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85) at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:746) at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:974) at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:847) at com.intellij.ide.IdeEventQueue.lambda$null$8(IdeEventQueue.java:449) at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:739) at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$9(IdeEventQueue.java:448) at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:831) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:496) at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203) at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124) at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
2:
java.lang.NoClassDefFoundError: Could not initialize class com.zhaow.restful.common.ToolkitIcons at com.zhaow.restful.navigator.RestServicesNavigator.initToolWindow(RestServicesNavigator.java:118) at com.zhaow.restful.navigator.RestServicesNavigator.lambda$initComponent$0(RestServicesNavigator.java:105) at com.intellij.util.DisposeAwareRunnable.run(DisposeAwareRunnable.java:86) at com.intellij.ide.startup.impl.StartupManagerImpl.runActivity(StartupManagerImpl.java:458) at com.intellij.ide.startup.impl.StartupManagerImpl$2.lambda$run$0(StartupManagerImpl.java:349) at com.intellij.openapi.project.DumbServiceImpl.unsafeRunWhenSmart(DumbServiceImpl.java:275) at com.intellij.ide.startup.impl.StartupManagerImpl.lambda$runDumbUnawareActivity$10(StartupManagerImpl.java:515) at com.intellij.ui.GuiUtils.invokeLaterIfNeeded(GuiUtils.java:284) at com.intellij.ide.startup.impl.StartupManagerImpl.runDumbUnawareActivity(StartupManagerImpl.java:514) at com.intellij.ide.startup.impl.StartupManagerImpl.access$200(StartupManagerImpl.java:48) at com.intellij.ide.startup.impl.StartupManagerImpl$2.run(StartupManagerImpl.java:349) at com.intellij.openapi.project.DumbServiceImpl.doRun(DumbServiceImpl.java:426) at com.intellij.openapi.project.DumbServiceImpl.updateFinished(DumbServiceImpl.java:418) at com.intellij.openapi.project.DumbServiceImpl$TrackedEdtActivity.run(DumbServiceImpl.java:884) at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:201) at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:831) at com.intellij.openapi.application.impl.ApplicationImpl.lambda$invokeLater$4(ApplicationImpl.java:310) at com.intellij.openapi.application.impl.FlushQueue.doRun(FlushQueue.java:80) at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:128) at com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:46) at com.intellij.openapi.application.impl.FlushQueue$FlushNow.run(FlushQueue.java:184) at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313) at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:776) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721) at java.base/java.security.AccessController.doPrivileged(Native Method) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85) at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:746) at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:974) at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:847) at com.intellij.ide.IdeEventQueue.lambda$null$8(IdeEventQueue.java:449) at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:739) at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$9(IdeEventQueue.java:448) at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:831) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:496) at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203) at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124) at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
1、默认快捷键很容易冲突,而且没有地方改;我觉得老版Ctrl+\挺好的
2、@RequestMapping未指定GET或者POST的,这种既可以用POST又可以用GET的,别默认图标G,要么用R吧,区分开
习惯性使用首字母进行匹配,但是排前面的都不是想要的接口。并且大部分的候选也不是期望的结果,完整的拼写也不行,候选排序有问题,都不是把最匹配的放到最前面,希望能参考restfultookkit的匹配。
想要参考PostMapping,自行定义一个新的Mapping 注解。
但是组件无法找到该Mapping
这个功能有解决方案吗?
Describe the bug
After update IntelliJ to the latest version 2020.1.2 Ultimate Edition, the RestServices window doesn't work. It shows empty.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Here the list of endpoints were showing properly, and you can navigate between them.
Desktop:
Additional notes
The rest of functionalities works fine, only the RestServices windows doesn't.
In some projects, there are lots of RESTful API in one module. If I want to check RESTful in one class (like a controller), It's not very convenient.
So, Could I just list all RESTful API in the current class in RESTful Toolkit window?
在postman里面都可以正常显示, 但是在插件里面body填写参数就报requestbody的参数问题, 麻烦作者告诉我该怎么填, 谢了大佬
使用 @RequestMapping 自定义类似 @PostMapping 之类的注解添加在 Spring Bean 所实现的接口上时无法识别,能否加以支持?
Spring 中可以通过RequestMapping requestMapping = AnnotatedElementUtils.findMergedAnnotation(method, RequestMapping.class); 从自定义的注解中获取指定注解
复现:
如题
比如有如下代码:
@RestController
@RequestMapping("/v1/hospital-group-rela")
class HospitalGroupRelaController {
@Autowired
private lateinit var relaService: XxService
@PostMapping
fun addRela(@RequestBody addReq: HosGroupRelaAddBo): ApiRet<Boolean> {
return ApiRet(relaService.addHosGroupKeyRela(addReq))
}
插件无法识别!
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
No
Describe the solution you'd like
A clear and concise description of what you want to happen.
需求内容
1、搜索结果可以直接跑到方法上,我希望能够可以在tool window上搜索,或者可以由搜索结果跳到tool window上并且定位到那个接口
或者可以由java类上的方法反向定位到tool window上
2、在模块分组基础上,是否可以按controll再分一次组??
3、提供折叠,全部展开和全部关闭的按钮
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
None
Additional context
Add any other context or screenshots about the feature request here.
None
在版本低的idea上貌似可以准确识别端口 2020.3好像都识别成8080 根据server port识别
Describe the bug
例如:@PostMapping如果后面没有参数统计不到,@PostMapping("/path1")这样才能统计到
Describe the bug
使用快捷键 CTRL + ALT + / 搜索,无法联动右侧窗口
相当于右侧窗口搜索功能消失了
发现这工具可以直接帮忙生成入参,当入参是复杂对象时很好用
但是现在生成的参数名是驼峰的,项目设置了jackson使用下划线形式的
希望能出个设置功能选择生成的json参数是驼峰还是下划线
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.