实在不知道怎么办求大佬解决

Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.ssm.HelloSpring]: Is the constructor accessible?; nested exception is java.lang.IllegalAccessException: class org.springframework.beans.BeanUtils (in module spring.beans) cannot access class com.ssm.HelloSpring (in module spring_1) because module spring_1 does not export com.ssm to module spring.beans
	at spring.beans@5.0.4.RELEASE/org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:176)
	at spring.beans@5.0.4.RELEASE/org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)
	at spring.beans@5.0.4.RELEASE/org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1224)
	... 13 more
Caused by: java.lang.IllegalAccessException: class org.springframework.beans.BeanUtils (in module spring.beans) cannot access class com.ssm.HelloSpring (in module spring_1) because module spring_1 does not export com.ssm to module spring.beans
	at java.base/jdk.internal.reflect.Reflection.newIllegalAccessException(Reflection.java:361)
	at java.base/java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:591)
	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:481)
	at spring.beans@5.0.4.RELEASE/org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:170)
	... 15 more

哪里使用了该类,目录结构

<context:component-scan base-package="com.ssm"/>

加上这个试试

我这样写的没问题呀。。。你的那个module-info.java 是你写的还是自动生成的?