Home | 簡體中文 | 繁體中文 | 雜文 | 知乎專欄 | Github | OSChina 博客 | 雲社區 | 雲棲社區 | Facebook | Linkedin | 視頻教程 | 打賞(Donations) | About
知乎專欄多維度架構 | 微信號 netkiller-ebook | QQ群:128659835 請註明“讀者”

第 10 章 FAQ

目錄

10.1. org.hibernate.dialect.Oracle10gDialect does not support identity key generation
10.2. No identifier specified for entity
10.3. Could not read document: Invalid UTF-8 middle byte 0xd0
10.4. java.sql.SQLRecoverableException: IO Error: The Network Adapter could not establish the connection
10.5. Field javaMailSender in cn.netkiller.rest.EmailRestController required a bean of type 'org.springframework.mail.javamail.JavaMailSender' that could not be found.
10.6. org.postgresql.util.PSQLException: FATAL: no pg_hba.conf entry for host "172.16.0.3", user "test", database "test ", SSL off
10.7. Spring boot 怎樣顯示執行的SQL語句
10.8. Cannot determine embedded database driver class for database type NONE
10.9. Spring boot / Spring cloud 時區差8個小時
10.10. @Value 取不到值
10.11. Spring boot 2.1.0
10.12. Field authenticationManager in cn.netkiller.oauth2.config.AuthorizationServerConfigurer required a bean of type 'org.springframework.security.authentication.AuthenticationManager' that could not be found.
10.13. 打印 Bean 信息

10.1. org.hibernate.dialect.Oracle10gDialect does not support identity key generation

			
@GeneratedValue(strategy=GenerationType.IDENTITY)
換成
@GeneratedValue(strategy=GenerationType.AUTO)

or

@Id
@Column(name = "ID")
@GeneratedValue(strategy=GenerationType.SEQUENCE, generator = "id_Sequence")
@SequenceGenerator(name = "id_Sequence", sequenceName = "ID_SEQ")
private int id;