我正在使用CDI开发JSF项目。我们使用SonarQube来管理代码质量。对我们的项目进行扫描后出现的其中一个问题是S3306:“Constructor injection should be used instead of field injection”。 它是由我们正在使用我们的豆内喷射触发,例如: @Named
@ViewScoped
public class AccountsCont
我遵循教程并在我的配方网站上创建了一个标记方法。我有以下型号: class Recipe < ActiveRecord::Base
has_many :taggings
has_many :tags, through: :taggings
end
class Tag < ActiveRecord::Base
has_many :taggings
has