JavaWebError01(HTTP Status 500 - Write operations are not allowed in read-only mode)

style:

HTTP Status 500 - Write operations are not allowed in read-only mode (FlushMode.MANUAL): Turn your Session into FlushMode.COMMIT/AUTO or remove 'readOnly' marker from transaction definition

picture:

 

Solution: The service layer does not add transaction management, so add the @Transactional annotation to the service layer.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325137518&siteId=291194637