简体   繁体   English

尝试从Mysql db获取数据(Spring Boot + Vaadin)

[英]Trying to get data from Mysql db (Spring Boot + Vaadin)

I'm trying to get and write data to Mysql Db using Spring Boot & Vaadin. 我正在尝试使用Spring Boot和Vaadin获取数据并将数据写入Mysql Db。 I'm new in Spring and it's too boringly to make simple web project with all of Spring's configurations. 我是Spring的新手,用Spring的所有配置制作简单的Web项目太无聊了。 So I decided to use Spring Boot. 所以我决定使用Spring Boot。 And now my headache is - getting and writing data to Mysql Db. 现在我头疼的是-获取数据并将数据写入Mysql Db。 I wrote in application.properties configuration for DB, also "spring.jpa.hibernate.ddl-auto=create" create new table in db (if it's not exists), but no data loaded and no data added to db table. 我在DB的application.properties配置中写道,“ spring.jpa.hibernate.ddl-auto = create”也在db中创建新表(如果不存在),但是没有加载数据,也没有向db表添加数据。 As I see from this doc https://docs.spring.io/spring-boot/docs/current/reference/html/howto-database-initialization.html there is no need to write from beginning some classes to connecting db and getting data... Please help. 正如我从这份文件https://docs.spring.io/spring-boot/docs/current/reference/html/howto-database-initialization.html所看到的,从开始一些类到连接数据库并获取数据...请帮助。 https://github.com/AntonKostyukewicz/VaadinCrud - here is my sources of project. https://github.com/AntonKostyukewicz/VaadinCrud-这是我的项目来源。

Have you looked at the Vaadin JPA Container add-on? 您是否看过Vaadin JPA容器插件? If you are willing to talk to the DB in JPA, that's an excellent option. 如果您愿意与JPA中的DB交谈,那是一个很好的选择。 https://vaadin.com/docs/-/part/framework/jpacontainer/jpacontainer-overview.html https://vaadin.com/docs/-/part/framework/jpacontainer/jpacontainer-overview.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 spring 启动、vaadin 和 mysql 服务器的先决条件 - prerequisites for a server of spring boot, vaadin and mysql 在vaadin中的mysql db表中显示表中的数据 - Show data in table from mysql db table in vaadin 使用 Vaadin 和 Spring (MySQL DB) 运行应用程序的问题 - Problem in running application with Vaadin and Spring (MySQL DB) Spring 启动微服务 - 从数据库中检索数据 - Spring boot microservices - retrieving data from DB 如何获得将数据传递给 mysql db 的 2 个单选按钮列表? Spring 开机 - How do I get 2 radiobutton list which pass data to mysql db? Spring Boot 无法使用 Spring 引导和 JPA 在 MySQL 8 DB 中插入数据 - Not able to insert data in MySQL 8 DB using Spring Boot and JPA Vaadin Spring 引导 - 尝试导航到“”时出现异常 - NoSuchBeanDefinitionException - Vaadin Spring Boot - There was an exception while trying to navigate to '' - NoSuchBeanDefinitionException 如何在vaadin 10中创建表并从mysql数据库获取数据 - how to create a table in vaadin 10 and get data from mysql database 我想在 spring 引导中动态地从数据库中获取数据 - I want to fetch the data from db dynamically in spring boot 使用 Spring boot JPA 从现有的 oracle db 获取数据 - Using Spring boot JPA getting data from existing oracle db
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM