MultipartException: Current request is not a multipart request

When you are using Postman for multipart request then don’t specify a custom Content-Type in Header. So your Header tab in Postman should be empty. Postman will determine form-data boundary. In Body tab of Postman you should select form-data and select file type. You can find related discussion at https://github.com/postmanlabs/postman-app-support/issues/576

(Java) Tic-Tac-Toe game using 2 dimensional Array

First off: This will create a infinite loop because row and column shouldn’t change you should ask for new input! Also As soon you hit ‘O’ or ‘X’ you will exit the Method with a false (no winner) What you probably want to check is if every spot is occupied This would now check if there is a winner … Read more

Java TreeMap Comparator

You can not sort TreeMap on values. A Red-Black tree based NavigableMap implementation. The map is sorted according to the natural ordering of its keys, or by a Comparator provided at map creation time, depending on which constructor is used You will need to provide comparator for Comparator<? super K> so your comparator should compare on keys. To provide sort on … Read more

mongoDB, connection refused

By default MongoDB only binds to the loopback interface which makes it only accessible from localhost. To change that you need to edit this line in mongod.conf file; you can change it to bind_ip = 127.0.0.1,192.168.1.102 to allow LAN and local connections or you can remove or comment out that line to allow all connections. For more info : MongoDB … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)