1. 一直报错
ORA-12505, TNS:listener does not currently know of SID given in connect desc
但是 DB Browser 里面是可以连接的,SID什么的多没错。
后来就结了半天之后发现
datasource.url=jdbc\:oracle\:thin\:@127.0.0.1\:1521\:STUDENT?useUnicode\=true&characterEncoding\=UTF-8
问题出在红色部分,去掉之后就可以找到了
2. 另外比较好的参考资料有
http://anthon-lx.iteye.com/blog/811460
http://hi.baidu.com/ilyuwyuyntdkuyr/item/140dda9d47735fbbcc80e531