Posts

Showing posts from December, 2020

Add javascript and css file with spring mvc

  https://mkyong.com/spring-mvc/spring-mvc-how-to-include-js-or-css-files-in-a-jsp-page/ < mvc :resources mapping ="/resources/**" location ="/resources/" /> < mvc :annotation-driven /> This should be together otherwise resouce mapping will not function. it should be in spring-servlet.xml file

code 400, message Bad request syntax in ec2

 This is because of using https instead of http

flask_mysqldb error in aws

It is because the dependency is not fulfilled in elastic bean. So using ec2, i created my own ubuntu and install the dependency below:    sudo apt-get install python-dev default-libmysqlclient-dev libssl-dev then: pip install --user flask-mysqldb

Installing package with python env commandline

  python3 -m pip install --user virtualenv create virtual env: python3 -m venv env activate the env: source env/bin/activate check: which python install from requirements file pip install -r requirements.txt

Grant all priviledge to new user

enter into database with: sudo mysql -u root and type:   GRANT ALL PRIVILEGES ON *.* TO 'puri'@'%';