Send data from html to mySql Question

Asked 2 weeks ago, Updated 2 weeks ago, 1 views

What I want to make is a homepage that stores and prints the name and image in DB when I put it in the homepage.

DB Status

Killer dto (You can think of it as a user)

killer mapper

Input form

Controller

I don't care about the output, but I'm going to send data to mySql now

When I checked with the Get method, I confirmed that killerId was entered normally.

But if you type it and press write, it says killerId is null. If you know how to solve it, please tell me know.

html5 mysql mybatis

2022-09-20 11:05

1 Answers

It's too late at night, so if I answer as I know, I need to receive the data sent in multi-part. (Even if it's not a file!))

https://www.baeldung.com/sprint-boot-multipart-requests

Check it out here.


2022-09-20 11:05

If you have any answers or tips


© 2022 pinfo. All rights reserved.