title: How to configure Spring Data JPA to only read the schema?
body: <p>I am writing a web service using Spring Boot to fetch some data from the database and perform some operations on it.</p>
  
  <p>The database is standalone which is linked to other web service, so I do not want  my web service to interfere with the schema and other data.
  I just want my service to connect to the database and only perform read operations.</p>
  
  <p>So what should be configurations, I do so that it does not interfere with the current database in any manner.</p>
  
  <pre><code>// Example Configuration :
  # Connection url for the database "test"
  spring.datasource.url = jdbc:mysql://localhost:3306/test?useSSL=false
  # Username and password
  spring.datasource.username = root
  spring.datasource.password = root
  # Hibernate ddl auto (create, create-drop, update): with "update" the database
  # schema will be automatically updated accordingly to java entities found in the project
  spring.jpa.hibernate.ddl-auto=validate
  </code></pre>
  
  <p>So how should I change my configuration to achieve read only mode? </p>