首页 \ 问答 \ 为什么在Eclipse STS上没有Grails和Groovy的代码洞察力?(Why no code insight for Grails and Groovy on Eclipse STS?)

为什么在Eclipse STS上没有Grails和Groovy的代码洞察力?(Why no code insight for Grails and Groovy on Eclipse STS?)

我们正在使用Eclipse STS上的Grails开发进行试验,其中一个最烦人的问题是,与Java代码不同,Grails和Groovy类和方法似乎没有任何代码洞察功能。 只有在编译并运行Grails Web应用程序后,才会发现方法或字段名称不存在。

说真的,必须有一些东西用于最小的代码洞察(希望)。


We are experimenting with Grails development on Eclipse STS, and one of the most annoying problems is that, unlike Java code, there does not appear to be any code insight features for Grails and Groovy classes and methods. Only after compiling and running a Grails web app do we find out that a method or field name does not exist.

Seriously, there has to be something out there for minimal code insight (hoping).


原文:https://stackoverflow.com/questions/8186655
更新时间:2023-11-22 14:11

最满意答案

没关系;

我连接的地方看起来像这样:

using (var connection = new SqlConnection(context.Database.Connection.ConnectionString))

context.Database是System.Data.Entity.Database ,我刚注意到System.Data.Entity.Database.Connection.ConnectionString 。 在某些情况下,它有密码在那里,其他情况下,它没有。 我不太清楚这一点,但我知道现在要做什么......我希望这能帮助其他人找到这个。


Never mind;

The place where I am connecting looks like this:

using (var connection = new SqlConnection(context.Database.Connection.ConnectionString))

context.Database is of System.Data.Entity.Database and I just noticed something in the System.Data.Entity.Database.Connection.ConnectionString..; on some occasions it has the password in there and other occasions it doesn't. I can't quite figure that one out, but I know what to do now.. I hope this helps others who find this.

相关问答

更多
  • 没关系; 我连接的地方看起来像这样: using (var connection = new SqlConnection(context.Database.Connection.ConnectionString)) context.Database是System.Data.Entity.Database ,我刚注意到System.Data.Entity.Database.Connection.ConnectionString 。 在某些情况下,它有密码在那里,其他情况下,它没有。 我不太清楚这一点,但我知 ...
  • 您必须将其公之于众。 去做这个: 登录https://developers.facebook.com 选择你的应用 点击设置并确保设置了联系电子邮件(如果您没有这个,则无法完成第4步) 单击状态和查看 切换'你想让这个应用程序及其所有实时功能向公众开放吗?' 开关 现在,您可以从所有帐户访问该应用程序。 You must make it publicly available. To do this: Login to https://developers.facebook.com Select Your A ...
  • 据我所知,我可以在微软网站上看到401.2错误是因为 未尝试进行身份验证,因为服务器和客户端无法就身份验证协议达成一致 此外,我可以猜测,权限也可能存在问题。 您可以使用Microsoft提供的以下工具来诊断问题 身份验证和访问控制诊断1.0 IIS诊断工具包 希望这可能对某些面临同样问题的人有所帮助。 As far as i have understood, i can see in the microsoft sites that 401.2 error is because Authenticatio ...
  • 尝试IntegratedSecurity = false; Try IntegratedSecurity = false;
  • 您可以使用AddModelError方法将自定义错误消息添加到Model状态字典中。 validationSummary / ValidationMessageFor辅助方法在被调用时从模型状态字典中读取验证错误。 第一个参数是错误消息的关键。 如果您传递string.empty作为值,则您传递的自定义错误消息将由ValidationSummary辅助方法呈现 ModelState.AddModelError(string.Empty,"Incorrect user name or password."); ...
  • 您是否使用CreateOrUpdateAccount方法在外部数据库中创建了用户? 可能您没有将任何用户与您正在使用的Google凭据相关联... 登录过程按以下步骤操作: 嘿Google,告诉我谁登录了。 谷歌告诉你一些UserId X. OAuthWebSecurity会向您的会员提供商询问使用GoogleUserId X的用户 如果存在这样的用户,则会将其登录,如果没有,则登录失败... Did you create the user in external DB with CreateOrUpdat ...
  • 因为当IIS回收应用程序时,会生成新的计算机密钥。 FormsAuthentication票证使用该密钥签名,因此当密钥更改时,无法识别旧票证。 您需要使用固定的机器密钥。 编辑 :删除了密钥生成器站点的链接(现已解散) Because when IIS is recycling the app, a new machine key is generated. The FormsAuthentication ticket is signed using that key so when the key ch ...
  • 您可以通过打开SQL Management Studio将此用户添加到数据库登录,导航到您的数据库,然后打开安全性然后登录并添加新登录并搜索该用户 You can add this user to your DB Logins by openning SQL Management Studio, Navigate to your database then open the Security then Logings and add new login and search for that user
  • 经过大量的研究和很多运气,我们发现它是一个“硬件”问题。 这些机器是虚拟化的,并且使用不同的虚拟网络适配器解决了问题(现在看来)。 After heavy research and a lot of luck we found it to be a 'hardware' problem. The machines are virtualized and with a different virtual network adapter the problem has been (as it seems rig ...
  • 只需将数据存储在一些可序列化的对象中。 例如: public class SessionData implements Serializable { private String name; private String id; private String role; //etc.. } 然后在用户首次登录时将此对象设置为会话属性: session.setAttribute("sessionData", new SessionData(name, id, role, ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)