我最近将IntelliJ 10升级到最新的11.0.1版本.我正在编写grails应用程序,直到我使用较旧版本的IntelliJ一切都很好,但是11不允许我成功添加Grails SDK(2.0.0) - 我试图添加框架支持,但这并不是'似乎是持久的(在添加Groovy然后选择Grails之后 - 没有任何反应).我也尝试过这些步骤:IntelliJ IDEA 9.0 - 无法为Grails应用程序选择项目SDK
如果有人能够指出我如何配置Grails SDK - 或者我的配置可能出错,我将不胜感激.
谢谢,
这正是我定义全局库的方式,但我仍然遇到了完全相同的问题.
我遵循了OverZealous的建议并创建了一个新的Grails项目,其名称与原始项目完全相同,现在一切都很好!感谢帮助.
尝试使用自动装配两个bean时,我收到以下错误
没有定义[javax.jms.ConnectionFactory]类型的限定bean:期望的单个匹配bean但找到2:aConnectionFactory,bConnectionFactory
Description:
Parameter 1 of method jmsListenerContainerFactory in org.springframework.boot.autoconfigure.jms.JmsAnnotationDrivenConfiguration required a single bean, but 2 were found:
- aConnectionFactory: defined by method 'aConnectionFactory' in package.Application
- bConnectionFactory: defined by method 'bConnectionFactory' in package.Application
Action:
Consider marking one of the beans as @Primary, updating the consumer to accept multiple beans, or using @Qualifier to identify the bean that should be consumed
Run Code Online (Sandbox Code Playgroud)
我有这个注释驱动配置:
@SpringBootApplication
@EnableIntegration
@IntegrationComponentScan
public class Application extends SpringBootServletInitializer implements
WebApplicationInitializer {
@Resource(name = "aConnectionFactory")
private ConnectionFactory aConnectionFactory;
@Resource(name …Run Code Online (Sandbox Code Playgroud) 我在Ubuntu下使用IntelliJ 11和Grails 2.0.0.当IntelliJ执行任何grails命令时,它会立即挂起.我无法将项目迁移到2.0.0(从1.3.7开始),甚至无法创建新的grails项目.
日志中没有异常,在使用grails单击create-app后挂起.
任何人都知道这里可能出现什么问题?
谢谢,