![]() ![]() The spring-web dependency contains common web-specific utilities for both Servlet and Portlet environments, while spring. Choose Spring Web, Spring Boot DevTools, and Thymeleaf by clicking Add Dependencies. You can see the runnable example and some explanation in (see what you can try in README.txt)įirst you have to set application.properties like this #Databaseĭ=jdbc:mysql://localhost/testdbĭ-class-name=ĭ=jdbc:mysql://localhost/testdb2ĭ-class-name=. Spring Initializr offers a fast way to pull in all the dependencies you need for an application and does a lot of the setup for you. Moreover you should know how to commit/rollback transactions of both datasources at the same time. Most answers do not provide how to use them (as datasource itself and as transaction), only how to config them. Update with Spring Boot 1.5.8.RELEASE which should work with Spring Boot 2.x With Spring Boot I can instantiate a JdbcTemplate with the following: Code: Autowired private JdbcTemplate jdbcTemplate Properties: :postgresql://myurl:myport/myotherstuff. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |