其中
BufferedImage buffImages = ImageIO.read(input);
ImageIO.write(buffImages,"jpg",new File("你的路径"));
可以替代
File f = new File("你的路径");
OutputStream output = new FileOutputStream(f);
byte[] buff = new byte[input.available()];
input.read(buff);
output.write(buff);
input.close();
output.close();
BufferedImage buffImages = ImageIO.read(input);
ImageIO.write(buffImages,"jpg",new File("你的路径"));
可以替代
File f = new File("你的路径");
OutputStream output = new FileOutputStream(f);
byte[] buff = new byte[input.available()];
input.read(buff);
output.write(buff);
input.close();
output.close();
2017-07-16
问题:空指针异常,提示“Souce not found"
解决:改一下URL地址:jdbc:mysql://127.0.0.1:3306/hibernate?useUnicode=true&characterEncoding=UTF-8
解决:改一下URL地址:jdbc:mysql://127.0.0.1:3306/hibernate?useUnicode=true&characterEncoding=UTF-8
2017-07-15
<property name="show_sql">true</property>
<property name="format_sql">true</property>
<property name="hbm2ddl.auto">create</property>
<property name="format_sql">true</property>
<property name="hbm2ddl.auto">create</property>
2017-07-13
<property name="connection.url">jdbc:mysql://hibernateuseUnicode=true&amp;characterEncoding=UTF-8</property>
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
2017-07-13
<property name="connection.username">root</property>
<property name="connection.password"></property>
<property name="connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="connection.password"></property>
<property name="connection.driver_class">com.mysql.jdbc.Driver</property>
2017-07-13