java.sql.SQLException: No database selected
해결방법 : root-context.xml
<bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<property name="driverClassName" value="com.mysql.jdbc.Driver"></property>
<property name="url" value="jdbc:mysql://localhost:3306/이부분에 스키마 이름"></property>
<property name="username" value="유저명"></property>
<property name="password" value="비번"></property>
</bean>
반응형