shimodatkh / memo

0 stars 0 forks source link

Spring徹底入門Ch14実施メモ #9

Open shimodatkh opened 8 years ago

shimodatkh commented 8 years ago

https://github.com/shimodatkh/springExGuideCh14

shimodatkh commented 8 years ago

C:\Program Files\PostgreSQL\9.4\bin psql.exe -U postgres

create role mrs login
encrypted password 'md586082399b5082acb54472ee195a57ce8'
nosuperuser inherit nocreatedb nocreaterole noreplication;

CREATE ROLE

create database mrs
with owner = mrs
encoding = 'UTF-8'
tablespace = pg_default
lc_collate = 'C'
lc_ctype = 'C'
template = 'template0'
connection limit = -1;

CREATE DATABASE
shimodatkh commented 8 years ago

spring.datasource.separator=/; が本にはない

User.javaがSerializableでない?

shimodatkh commented 8 years ago

pg9.6でSB実行時 Caused by: java.lang.ClassNotFoundException: org.hibernate.dialect.PostgreSQL95Dialect pg9.4にしたらこれ ERROR: syntax error at or near "'template0'" 行 7: template = 'template0' ^