Spring如何加载类路径?

时间:2017-11-03 08:40:35

标签: spring spring-boot classpath

我有一个Spring Boot Web应用程序XX,它反过来使用的是使用Spring构建的库YY。我在XX的POM中声明了YY库的详细信息。

在我的YY库中,我有一个带有以下注释的Cinfig类:

declare
  v_indicator varchar2(100) := '';
begin
  -- read indicator from Table1
  select some_colmn into v_indicator 
    from Table1 
   where some_criterium='some_value' 
  ;
  -- check indicator value against some of your condition
  if v_indicator = 'condition_matched' then
    -- log information to server output
    dbms_output.put_line('condition_matched');
    -- generate records:
    insert into Table2 (col_t2) values ('r1');
    insert into Table2 (col_t2) values ('r2');
  else
    -- here it means condition was not matched
    dbms_output.put_line('condition NOT matched');
  end if;
end;

我在YY库的src / main / resources中声明了abc.properties。现在,当我运行Spring Boot应用程序XX时,我收到以下错误:

    @Configuration
    @PropertySource({ "classpath:abc.properties" })
    class YYLibraryConfig {

0 个答案:

没有答案