如何使用正常的Spring Maven快速入门项目自动连接daoImpl类(@Autowired)中的数据源对象

时间:2019-05-28 11:49:30

标签: spring-jdbc

我正在尝试自动连接daoImpl类中的数据源对象,并在daoImple类中使用@Component。 library(shiny) library(datasets) library(shinyWidgets) statesDF <- data.frame(region = state.region, name = state.name, area = state.area, stringsAsFactors = FALSE) ui <- fluidPage( radioButtons(inputId = 'selected_group', label = 'group', choices = unique(statesDF$region)), pickerInput(inputId = 'selected_subgroup', label = 'subgroup', choices = NULL, selected = NULL, multiple = TRUE) ) server <- function(input, output, session) { filteredChoices <- reactive({ statesDF$name[statesDF$region == input$selected_group] }) observeEvent(filteredChoices(), { updatePickerInput(session, inputId = 'selected_subgroup', label = 'subgroup', choices = filteredChoices(), selected = filteredChoices()) }) } shinyApp(ui = ui, server = server)

出现错误

在DaoImpl类中

Caused by: java.lang.IllegalArgumentException: 'dataSource' or 'jdbcTemplate' is required

0 个答案:

没有答案