1

I am upgrading my application from springboot 2.** to springboot 3.07. I am aware that we have to jakarta package instead of javax but not sure what to do about javax.net.* and javax.sql.datasource imports. what is the replacement for these with respect to jakarta ee

not able to find the libraries for javax.net and javax.sql in jakarta ee

BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
Java_guy
  • 11
  • 1

1 Answers1

2

not able to find the libraries for javax.net and javax.sql in jakarta ee

These are not part of Jakarta EE.

These are part of Java SE. Open the package list and Ctrl+F on javax. You'll find the following javax.* packages being part of Java SE:

  • javax.accessibility
  • javax.annotation.processing
  • javax.crypto
  • javax.imageio
  • javax.lang
  • javax.management
  • javax.naming
  • javax.net
  • javax.print
  • javax.rmi
  • javax.script
  • javax.security.auth
  • javax.security.cert
  • javax.security.sasl
  • javax.smartcardio
  • javax.sound
  • javax.sql
  • javax.swing
  • javax.tools
  • javax.transaction.xa
  • javax.xml

You can keep them as-is. Just listen to the compiler.

BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555