title: How to use Spring boot functions in Spring legacy project?
body: <p>How to use boot function in legacy project?</p>
  <p>My project is a spring legacy based project.</p>
  <p>I want to use the functions of spring boot.</p>
  <p>So I imported the following two lines:</p>
  <pre><code>import org.springframework.data.r2dbc.repository.R2dbcRepository;
  import reactor.core.publisher.Mono;
  </code></pre>
  <p>But intellij did not recognize the two packages.</p>
  <p><a href="https://i.stack.imgur.com/EgVKD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EgVKD.png" alt="enter image description here" /></a></p>
  <p>Just in case, I added Spring Data R2DBC dependencies in start.spring.io, but pom.xml cannot read them.</p>
  <p><a href="https://i.stack.imgur.com/83Itw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/83Itw.png" alt="enter image description here" /></a></p>
  <p>I want to use an interface like the code below.</p>
  <pre><code>@Repository
  public interface EventRepository extends R2dbcRepository&lt;TbEventInfo, String&gt;{
       Mono&lt;TbEventInfo&gt; findByEvtNo(int evtNo);
  
       Mono&lt;TbEventInfo&gt; save(TbEventInfo tbEventInfo);
  
  }
  </code></pre>
  <p>How can I use the above boot function in legacy project-based environment?</p>