com.alibaba.druid.pool.DruidDataSource.info {dataSource-1} inited

Tong_da~發表於2019-10-18

[http-nio-80-exec-3] com.alibaba.druid.pool.DruidDataSource.info {dataSource-1} inited

java小白一枚,在做登入案例時候,登入表單提交到servlet後出現如下錯誤:
[http-nio-80-exec-3] com.alibaba.druid.pool.DruidDataSource.info {dataSource-1} inited
求各位大佬看看那裡出了問題。
該servlet程式碼如下:


`
 		//1,設定編碼
        request.setCharacterEncoding("utf-8");
        //2,獲取請求引數
        String username = request.getParameter("username");
        String password = request.getParameter("password");
        //3,封裝User物件
        User loginUser = new User();
        loginUser.setUsername(username);
        loginUser.setPassword(password);
        //4,呼叫UserDao的login方法
        UserDao dao = new UserDao();
        User user = dao.login(loginUser);
        //5,判斷user
        if(user == null){
            //登入失敗
            request.getRequestDispatcher("/failServlet").forward(request,response);
        }else{
            //登入成功
            //儲存資料
            request.setAttribute("user",user);
            //轉發
            request.getRequestDispatcher("/successServlet").forward(request,response);
        }

看別人說的把duid.properties修改:

url=jdbc:mysql://127.0.0.1:3306/day05?useUnicode=true&characterEncoding=UTF-8 

還是出現如上錯誤。