10 2019 档案

摘要:MySQL Error: Incorrect string value: '\xF0\x9F\x90\xB1' for column ......这个问题,原因是UTF-8编码有可能是两个、三个、四个字节。Emoji表情或者某些特殊字符是4个字节,而Mysql的utf8编码最多3个字节,所以数据插不 阅读全文
posted @ 2019-10-15 14:09 无影- 阅读(2732) 评论(0) 推荐(0)
摘要:location /privateBlog { proxy_pass http://127.0.0.1:5617; #5617端口是doucker暴露在外部的端口 proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr 阅读全文
posted @ 2019-10-09 16:11 无影- 阅读(5683) 评论(0) 推荐(1)
摘要:@Autowired private EntityManagerFactory entityManagerFactory; @PersistenceContext private EntityManager em; public Session getSession() { return entityManagerFactory.unwrap(SessionFactory.class).openS 阅读全文
posted @ 2019-10-08 14:20 无影- 阅读(2144) 评论(0) 推荐(0)