Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server.address = localhost
- server.contextPath=/home/srv75429/
- spring.datasource.url = jdbc:mysql://xxxxxx/mysql
- spring.datasource.username = xxxxxxxxx
- spring.datasource.password = xxxxxxxxx
- spring.datasource.testWhileIdle = true
- spring.datasource.validationQuery = SELECT 1
- spring.jpa.show-sql = true
- spring.jpa.hibernate.ddl-auto = update
- spring.jpa.hibernate.naming-strategy = org.hibernate.cfg.ImprovedNamingStrategy
- spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect
- import org.springframework.stereotype.Controller;
- import org.springframework.web.bind.annotation.RequestMapping;
- import org.springframework.web.bind.annotation.ResponseBody;
- @Controller
- public class MainController {
- @RequestMapping("/")
- @ResponseBody
- public String index() {
- return "<iframe width="560" height="315" src="https://www.youtube.com/embed/xBd0qtGaNLY" frameborder="0" allowfullscreen></iframe>"; }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement