How to add L2 regularization?

I have overfitting so how can I add L2 regularization?